File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/ASTGen/Sources/ASTGen Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ struct ASTGenVisitor: SyntaxTransformVisitor {
32
32
let base : UnsafePointer < CChar >
33
33
34
34
@Boxed var declContext : UnsafeMutableRawPointer
35
-
35
+
36
36
// TODO: this some how messes up the witness table when I uncomment it locally :/
37
37
// public func visit<T>(_ node: T?) -> [UnsafeMutableRawPointer]? {
38
38
// if let node = node { return visit(node) }
39
39
// return nil
40
40
// }
41
-
41
+
42
42
@_disfavoredOverload
43
43
public func visit( _ node: SourceFileSyntax ) -> UnsafeMutableRawPointer {
44
44
fatalError ( " Use other overload. " )
@@ -47,7 +47,7 @@ struct ASTGenVisitor: SyntaxTransformVisitor {
47
47
public func visitAny( _ node: Syntax ) -> UnsafeMutableRawPointer {
48
48
fatalError ( " Not implemented. " )
49
49
}
50
-
50
+
51
51
public func visit( _ node: SourceFileSyntax ) -> [ UnsafeMutableRawPointer ] {
52
52
let loc = self . base. advanced ( by: node. position. utf8Offset) . raw
53
53
var out = [ UnsafeMutableRawPointer] ( )
@@ -63,7 +63,7 @@ struct ASTGenVisitor: SyntaxTransformVisitor {
63
63
out. append ( swiftASTNodes)
64
64
}
65
65
}
66
-
66
+
67
67
return out
68
68
}
69
69
}
You can’t perform that action at this time.
0 commit comments