@@ -84,7 +84,7 @@ let rawSyntaxValidationFile = try! SourceFileSyntax(leadingTrivia: copyrightHead
84
84
85
85
DeclSyntax (
86
86
"""
87
- func verify<Node: RawSyntaxNodeProtocol>(_ raw: RawSyntax?, as _: Node.Type, file: StaticString = #filePath , line: UInt = #line) -> ValidationError? {
87
+ func verify<Node: RawSyntaxNodeProtocol>(_ raw: RawSyntax?, as _: Node.Type, file: StaticString = #fileID , line: UInt = #line) -> ValidationError? {
88
88
guard let raw = raw else {
89
89
return .expectedNonNil(expectedKind: Node.self, file: file, line: line)
90
90
}
@@ -98,7 +98,7 @@ let rawSyntaxValidationFile = try! SourceFileSyntax(leadingTrivia: copyrightHead
98
98
99
99
DeclSyntax (
100
100
"""
101
- func verify<Node: RawSyntaxNodeProtocol>(_ raw: RawSyntax?, as _: Node?.Type, file: StaticString = #filePath , line: UInt = #line) -> ValidationError? {
101
+ func verify<Node: RawSyntaxNodeProtocol>(_ raw: RawSyntax?, as _: Node?.Type, file: StaticString = #fileID , line: UInt = #line) -> ValidationError? {
102
102
if raw != nil {
103
103
return verify(raw, as: Node.self, file: file, line: line)
104
104
}
@@ -109,7 +109,7 @@ let rawSyntaxValidationFile = try! SourceFileSyntax(leadingTrivia: copyrightHead
109
109
110
110
DeclSyntax (
111
111
"""
112
- func verify(_ raw: RawSyntax?, as _: RawTokenSyntax?.Type, tokenChoices: [TokenChoice], file: StaticString = #filePath , line: UInt = #line) -> ValidationError? {
112
+ func verify(_ raw: RawSyntax?, as _: RawTokenSyntax?.Type, tokenChoices: [TokenChoice], file: StaticString = #fileID , line: UInt = #line) -> ValidationError? {
113
113
// Validation of token choice is currently causing assertion failures where
114
114
// the list of expected token choices in the syntax tree doesn't match those
115
115
// the parser generates. Disable the verification for now until all issues
@@ -124,7 +124,7 @@ let rawSyntaxValidationFile = try! SourceFileSyntax(leadingTrivia: copyrightHead
124
124
125
125
DeclSyntax (
126
126
"""
127
- func verify(_ raw: RawSyntax?, as _: RawTokenSyntax.Type, tokenChoices: [TokenChoice], file: StaticString = #filePath , line: UInt = #line) -> ValidationError? {
127
+ func verify(_ raw: RawSyntax?, as _: RawTokenSyntax.Type, tokenChoices: [TokenChoice], file: StaticString = #fileID , line: UInt = #line) -> ValidationError? {
128
128
// Validation of token choice is currently causing assertion failures where
129
129
// the list of expected token choices in the syntax tree doesn't match those
130
130
// the parser generates. Disable the verification for now until all issues
0 commit comments