You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've attached the generated interface that I'm trying to visit. Since it's the generated interface, it doesn't have definitions for any of the functions. That might be what's causing problems.
But I think this should still work and it definitely shouldn't crash.
The text was updated successfully, but these errors were encountered:
The reduced example no longer crashes when parsed as SwiftSyntax.
import SwiftSyntax
import SwiftSyntaxParser
letcontent="""protocol C { subscript(bounds: Range<Array<Int>.Index>) -> Int { get }}"""letsourceFile=trySyntaxParser.parse(source: content)print(sourceFile)
Sorry for only now getting to this, we missed the issue in JIRA and I only now found it after the migration to GitHub issues.
Attachment: Download
Environment
Xcode 10.0.0 beta 6
Apple Swift version 4.2 (swiftlang-1000.0.36 clang-1000.10.44)
Target: x86_64-apple-darwin17.7.0
SwiftSyntax 26b6ef6
Additional Detail from JIRA
md5: cc35c21c959ded0f5ad3a888ff9377d7
Issue Description:
I created a bare-bones
Visitor
and fed it the generated interface that Xcode shows from the Swift stdlib. It crashes here on the last line:I've attached the generated interface that I'm trying to visit. Since it's the generated interface, it doesn't have definitions for any of the functions. That might be what's causing problems.
But I think this should still work and it definitely shouldn't crash.
The text was updated successfully, but these errors were encountered: