Skip to content

Commit 9126a12

Browse files
committed
Add test case of function parameter list
1 parent 20d73f8 commit 9126a12

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/Frontend/emit-syntax.swift

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,23 @@ func Bar(arg1: String, arg2: Int) {
3737
// CHECK: "kind":"r_brace"
3838
}
3939

40+
// CHECK: "kind":"kw_func"
41+
// CHECK: "text":"CheckParameterList"
42+
// CHECK: "kind":"l_paren"
43+
// CHECK: "text":"arg1"
44+
// CHECK: "text":"String"
45+
// CHECK: "kind":"ellipsis"
46+
// CHECK: "presence":"Present"}
47+
// CHECK: null
48+
// CHECK: "kind":"comma"
49+
// CHECK: "text":"arg2"
50+
// CHECK: "text":"Int"
51+
// CHECK: "kind":"r_paren"
52+
// CHECK: "kind":"l_brace"
53+
func CheckParameterList(arg1: String..., arg2: Int) {
54+
// CHECK: "kind":"r_brace"
55+
}
56+
4057
// CHECK: "leadingTrivia":[
4158
// CHECK: "kind":"LineComment",
4259
// CHECK: "value":"\/\/ Comment at the end of the file"

0 commit comments

Comments
 (0)