Hi,
I tried to parse the following file Signal-iOS/ProfileFetcherJob.swift at main · signalapp/Signal-iOS · GitHub with SwiftSyntax and received multiple errors about unresolved syntax (especially in value bindings)
E.g. the highlighted snippet on the code was marked as UnresolvedPatternExprSyntax
. It can be reproduced using code:
let sourceSyntax: SourceFileSyntax = try SyntaxParser.parse(URL(fileURLWithPath: source))
class UnresolvedSyntaxVisitor: SyntaxVisitor {
override func visit(_ node: UnresolvedPatternExprSyntax) -> SyntaxVisitorContinueKind {
print(node)
return .skipChildren
}
}
UnresolvedSyntaxVisitor().walk(sourceSyntax)
I believe it's an error in the library. But what to do with that?
Thanks!