File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/ASTGen/Sources/ASTGen Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -124,10 +124,10 @@ func emitDiagnostic(
124
124
}
125
125
126
126
extension SourceManager {
127
- private func diagnoseSingle(
127
+ private func diagnoseSingle< Node : SyntaxProtocol > (
128
128
message: String ,
129
129
severity: DiagnosticSeverity ,
130
- node: some SyntaxProtocol ,
130
+ node: Node ,
131
131
position: AbsolutePosition ,
132
132
highlights: [ Syntax ] = [ ] ,
133
133
fixItChanges: [ FixIt . Change ] = [ ]
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ extension SourceManager {
136
136
137
137
var detached = context. detach ( node)
138
138
139
- if let operatorTable {
139
+ if let operatorTable = operatorTable {
140
140
detached = operatorTable. foldAll ( node) { _ in } . as ( Node . self) !
141
141
}
142
142
You can’t perform that action at this time.
0 commit comments