Skip to content

Commit 7389afd

Browse files
committed
Add successfully test pattern for missing parse ellipsis of function
1 parent b1ae4c3 commit 7389afd

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

test/Frontend/emit-syntax.swift

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,31 @@ struct Foo {
1313
// CHECK: "kind":"r_brace"
1414
}
1515

16+
// CHECK: "kind":"kw_func"
17+
// CHECK: "kind":"identifier"
18+
// CHECK: "text":"Bar"
19+
// CHECK: "kind":"l_paren"
20+
// CHECK: "kind":"FunctionParameterList"
21+
// CHECK: "kind":"FunctionParameter"
22+
// CHECK: "kind":"identifier"
23+
// CHECK: "text":"arg1"
24+
// CHECK: "kind":"colon"
25+
// CHECK: "kind":"identifier"
26+
// CHECK: "text":"String"
27+
// CHECK: "kind":"comma"
28+
// CHECK: "null"
29+
// CHECK: "kind":"identifier"
30+
// CHECK: "text":"arg2"
31+
// CHECK-NEXT: "null"
32+
// CHECK: "kind":"colon"
33+
// CHECK: "kind":"identifier"
34+
// CHECK: "text":"Int"
35+
// CHECK: "kind":"r_paren"
36+
// CHECK: "kind":"l_brace"
37+
func Bar(arg1: String, arg2: Int) {
38+
// CHECK: "kind":"r_brace"
39+
}
40+
1641
// CHECK: "leadingTrivia":[
1742
// CHECK: "kind":"LineComment",
1843
// CHECK: "value":"\/\/ Comment at the end of the file"

0 commit comments

Comments
 (0)