diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0042_call_expr.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0042_call_expr.rast | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0042_call_expr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0042_call_expr.rast new file mode 100644 index 000000000..e8003bf91 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0042_call_expr.rast | |||
@@ -0,0 +1,148 @@ | |||
1 | SOURCE_FILE@[0; 118) | ||
2 | FN_DEF@[0; 117) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 8) | ||
8 | L_PAREN@[6; 7) "(" | ||
9 | R_PAREN@[7; 8) ")" | ||
10 | WHITESPACE@[8; 9) " " | ||
11 | BLOCK_EXPR@[9; 117) | ||
12 | BLOCK@[9; 117) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 15) "\n " | ||
15 | LET_STMT@[15; 27) | ||
16 | LET_KW@[15; 18) "let" | ||
17 | WHITESPACE@[18; 19) " " | ||
18 | PLACEHOLDER_PAT@[19; 20) | ||
19 | UNDERSCORE@[19; 20) "_" | ||
20 | WHITESPACE@[20; 21) " " | ||
21 | EQ@[21; 22) "=" | ||
22 | WHITESPACE@[22; 23) " " | ||
23 | CALL_EXPR@[23; 26) | ||
24 | PATH_EXPR@[23; 24) | ||
25 | PATH@[23; 24) | ||
26 | PATH_SEGMENT@[23; 24) | ||
27 | NAME_REF@[23; 24) | ||
28 | IDENT@[23; 24) "f" | ||
29 | ARG_LIST@[24; 26) | ||
30 | L_PAREN@[24; 25) "(" | ||
31 | R_PAREN@[25; 26) ")" | ||
32 | SEMI@[26; 27) ";" | ||
33 | WHITESPACE@[27; 32) "\n " | ||
34 | LET_STMT@[32; 54) | ||
35 | LET_KW@[32; 35) "let" | ||
36 | WHITESPACE@[35; 36) " " | ||
37 | PLACEHOLDER_PAT@[36; 37) | ||
38 | UNDERSCORE@[36; 37) "_" | ||
39 | WHITESPACE@[37; 38) " " | ||
40 | EQ@[38; 39) "=" | ||
41 | WHITESPACE@[39; 40) " " | ||
42 | CALL_EXPR@[40; 53) | ||
43 | CALL_EXPR@[40; 46) | ||
44 | CALL_EXPR@[40; 43) | ||
45 | PATH_EXPR@[40; 41) | ||
46 | PATH@[40; 41) | ||
47 | PATH_SEGMENT@[40; 41) | ||
48 | NAME_REF@[40; 41) | ||
49 | IDENT@[40; 41) "f" | ||
50 | ARG_LIST@[41; 43) | ||
51 | L_PAREN@[41; 42) "(" | ||
52 | R_PAREN@[42; 43) ")" | ||
53 | ARG_LIST@[43; 46) | ||
54 | L_PAREN@[43; 44) "(" | ||
55 | LITERAL@[44; 45) | ||
56 | INT_NUMBER@[44; 45) "1" | ||
57 | R_PAREN@[45; 46) ")" | ||
58 | ARG_LIST@[46; 53) | ||
59 | L_PAREN@[46; 47) "(" | ||
60 | LITERAL@[47; 48) | ||
61 | INT_NUMBER@[47; 48) "1" | ||
62 | COMMA@[48; 49) "," | ||
63 | WHITESPACE@[49; 50) " " | ||
64 | LITERAL@[50; 51) | ||
65 | INT_NUMBER@[50; 51) "2" | ||
66 | COMMA@[51; 52) "," | ||
67 | R_PAREN@[52; 53) ")" | ||
68 | SEMI@[53; 54) ";" | ||
69 | WHITESPACE@[54; 59) "\n " | ||
70 | LET_STMT@[59; 84) | ||
71 | LET_KW@[59; 62) "let" | ||
72 | WHITESPACE@[62; 63) " " | ||
73 | PLACEHOLDER_PAT@[63; 64) | ||
74 | UNDERSCORE@[63; 64) "_" | ||
75 | WHITESPACE@[64; 65) " " | ||
76 | EQ@[65; 66) "=" | ||
77 | WHITESPACE@[66; 67) " " | ||
78 | CALL_EXPR@[67; 83) | ||
79 | PATH_EXPR@[67; 68) | ||
80 | PATH@[67; 68) | ||
81 | PATH_SEGMENT@[67; 68) | ||
82 | NAME_REF@[67; 68) | ||
83 | IDENT@[67; 68) "f" | ||
84 | ARG_LIST@[68; 83) | ||
85 | L_PAREN@[68; 69) "(" | ||
86 | CALL_EXPR@[69; 82) | ||
87 | PATH_EXPR@[69; 80) | ||
88 | PATH@[69; 80) | ||
89 | PATH@[69; 74) | ||
90 | PATH_SEGMENT@[69; 74) | ||
91 | L_ANGLE@[69; 70) "<" | ||
92 | PATH_TYPE@[70; 73) | ||
93 | PATH@[70; 73) | ||
94 | PATH_SEGMENT@[70; 73) | ||
95 | NAME_REF@[70; 73) | ||
96 | IDENT@[70; 73) "Foo" | ||
97 | R_ANGLE@[73; 74) ">" | ||
98 | COLONCOLON@[74; 76) "::" | ||
99 | PATH_SEGMENT@[76; 80) | ||
100 | NAME_REF@[76; 80) | ||
101 | IDENT@[76; 80) "func" | ||
102 | ARG_LIST@[80; 82) | ||
103 | L_PAREN@[80; 81) "(" | ||
104 | R_PAREN@[81; 82) ")" | ||
105 | R_PAREN@[82; 83) ")" | ||
106 | SEMI@[83; 84) ";" | ||
107 | WHITESPACE@[84; 89) "\n " | ||
108 | EXPR_STMT@[89; 115) | ||
109 | CALL_EXPR@[89; 114) | ||
110 | PATH_EXPR@[89; 90) | ||
111 | PATH@[89; 90) | ||
112 | PATH_SEGMENT@[89; 90) | ||
113 | NAME_REF@[89; 90) | ||
114 | IDENT@[89; 90) "f" | ||
115 | ARG_LIST@[90; 114) | ||
116 | L_PAREN@[90; 91) "(" | ||
117 | CALL_EXPR@[91; 113) | ||
118 | PATH_EXPR@[91; 111) | ||
119 | PATH@[91; 111) | ||
120 | PATH@[91; 105) | ||
121 | PATH_SEGMENT@[91; 105) | ||
122 | L_ANGLE@[91; 92) "<" | ||
123 | PATH_TYPE@[92; 95) | ||
124 | PATH@[92; 95) | ||
125 | PATH_SEGMENT@[92; 95) | ||
126 | NAME_REF@[92; 95) | ||
127 | IDENT@[92; 95) "Foo" | ||
128 | WHITESPACE@[95; 96) " " | ||
129 | AS_KW@[96; 98) "as" | ||
130 | WHITESPACE@[98; 99) " " | ||
131 | PATH_TYPE@[99; 104) | ||
132 | PATH@[99; 104) | ||
133 | PATH_SEGMENT@[99; 104) | ||
134 | NAME_REF@[99; 104) | ||
135 | IDENT@[99; 104) "Trait" | ||
136 | R_ANGLE@[104; 105) ">" | ||
137 | COLONCOLON@[105; 107) "::" | ||
138 | PATH_SEGMENT@[107; 111) | ||
139 | NAME_REF@[107; 111) | ||
140 | IDENT@[107; 111) "func" | ||
141 | ARG_LIST@[111; 113) | ||
142 | L_PAREN@[111; 112) "(" | ||
143 | R_PAREN@[112; 113) ")" | ||
144 | R_PAREN@[113; 114) ")" | ||
145 | SEMI@[114; 115) ";" | ||
146 | WHITESPACE@[115; 116) "\n" | ||
147 | R_CURLY@[116; 117) "}" | ||
148 | WHITESPACE@[117; 118) "\n" | ||