File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,31 @@ struct Foo {
13
13
// CHECK: "kind":"r_brace"
14
14
}
15
15
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
+
16
41
// CHECK: "leadingTrivia":[
17
42
// CHECK: "kind":"LineComment",
18
43
// CHECK: "value":"\/\/ Comment at the end of the file"
You can’t perform that action at this time.
0 commit comments