File tree Expand file tree Collapse file tree 8 files changed +17
-29
lines changed
Sources/SwiftSyntaxParser Expand file tree Collapse file tree 8 files changed +17
-29
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ public enum SyntaxParser {
122
122
enableBareSlashRegexLiteral: Bool ? ,
123
123
diagnosticHandler: ( ( Diagnostic ) -> Void ) ?
124
124
) throws -> SourceFileSyntax {
125
- return try Parser . parse ( source: source, parseTransition: parseTransition)
125
+ return Parser . parse ( source: source, parseTransition: parseTransition)
126
126
}
127
127
}
128
128
Original file line number Diff line number Diff line change 1
1
// RUN: %lit-test-helper -classify-syntax -source-file %s | %FileCheck %s
2
2
3
+ // https://github.com/apple/swift-syntax/issues/829
4
+ // XFAIL: *
5
+
3
6
enum List < T> {
4
7
case Nil
5
8
// rdar://21927124
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ func emptyDocBlockComment3() {}
196
196
197
197
/**/
198
198
func malformedBlockComment( f : ( ) throws -> ( ) ) rethrows { }
199
- // CHECK: <doc- comment-block>/**/</doc- comment-block>
199
+ // CHECK: <comment-block>/**/</comment-block>
200
200
201
201
// CHECK: <kw>func</kw> <id>malformedBlockComment</id>(<id>f</id> : () <kw>throws</kw> -> ()) <kw>rethrows</kw> {}
202
202
Original file line number Diff line number Diff line change 1
1
// RUN: %lit-test-helper -classify-syntax -source-file %s | %FileCheck %s
2
2
3
+ // https://github.com/apple/swift-syntax/issues/1044
4
+ // XFAIL: *
5
+
3
6
// CHECK: <kw>var</kw> <id>f</id> : <type>Int</type>
4
7
var f : Int
5
8
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %validate-incrparse %s --test-case MULTI
3
3
4
+ // https://github.com/apple/swift-syntax/issues/1045
5
+ // XFAIL: *
6
+
4
7
let one : Int ;< reparse MULTI> let two: Int; let three : Int ; <<MULTI<||| >>>< < MULTI<||| >>> let found: Int;</ reparse MULTI> let five: Int;
Original file line number Diff line number Diff line change 4
4
// RUN: %validate-incrparse %s --test-case UNWRAP_CLASS
5
5
// RUN: %validate-incrparse %s --test-case NEXT_TOKEN_CALCULATION
6
6
7
+ // https://github.com/apple/swift-syntax/issues/1045
8
+ // XFAIL: *
9
+
7
10
func start( ) { }
8
11
9
12
< reparse ADD_PROPERTY> struct Foo { </ reparse ADD_PROPERTY>
Original file line number Diff line number Diff line change 15
15
// RUN: %validate-incrparse %s --test-case ADD_IF_OPEN_BRACE
16
16
// RUN: %validate-incrparse %s --test-case EXTEND_IDENTIFIER
17
17
18
+ // https://github.com/apple/swift-syntax/issues/1045
19
+ // XFAIL: *
20
+
18
21
func start( ) { }
19
22
20
23
< reparse REPLACE>
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments