diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.rast | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.rast new file mode 100644 index 000000000..f1018fcab --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.rast | |||
@@ -0,0 +1,96 @@ | |||
1 | SOURCE_FILE@[0; 91) | ||
2 | FN_DEF@[0; 90) | ||
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; 90) | ||
12 | BLOCK@[9; 90) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 15) "\n " | ||
15 | LET_STMT@[15; 25) | ||
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 | PATH_EXPR@[23; 24) | ||
24 | PATH@[23; 24) | ||
25 | PATH_SEGMENT@[23; 24) | ||
26 | NAME_REF@[23; 24) | ||
27 | IDENT@[23; 24) "a" | ||
28 | SEMI@[24; 25) ";" | ||
29 | WHITESPACE@[25; 30) "\n " | ||
30 | LET_STMT@[30; 43) | ||
31 | LET_KW@[30; 33) "let" | ||
32 | WHITESPACE@[33; 34) " " | ||
33 | PLACEHOLDER_PAT@[34; 35) | ||
34 | UNDERSCORE@[34; 35) "_" | ||
35 | WHITESPACE@[35; 36) " " | ||
36 | EQ@[36; 37) "=" | ||
37 | WHITESPACE@[37; 38) " " | ||
38 | PATH_EXPR@[38; 42) | ||
39 | PATH@[38; 42) | ||
40 | PATH@[38; 39) | ||
41 | PATH_SEGMENT@[38; 39) | ||
42 | NAME_REF@[38; 39) | ||
43 | IDENT@[38; 39) "a" | ||
44 | COLONCOLON@[39; 41) "::" | ||
45 | PATH_SEGMENT@[41; 42) | ||
46 | NAME_REF@[41; 42) | ||
47 | IDENT@[41; 42) "b" | ||
48 | SEMI@[42; 43) ";" | ||
49 | WHITESPACE@[43; 48) "\n " | ||
50 | LET_STMT@[48; 65) | ||
51 | LET_KW@[48; 51) "let" | ||
52 | WHITESPACE@[51; 52) " " | ||
53 | PLACEHOLDER_PAT@[52; 53) | ||
54 | UNDERSCORE@[52; 53) "_" | ||
55 | WHITESPACE@[53; 54) " " | ||
56 | EQ@[54; 55) "=" | ||
57 | WHITESPACE@[55; 56) " " | ||
58 | PATH_EXPR@[56; 64) | ||
59 | PATH@[56; 64) | ||
60 | PATH_SEGMENT@[56; 64) | ||
61 | COLONCOLON@[56; 58) "::" | ||
62 | NAME_REF@[58; 59) | ||
63 | IDENT@[58; 59) "a" | ||
64 | TYPE_ARG_LIST@[59; 64) | ||
65 | COLONCOLON@[59; 61) "::" | ||
66 | L_ANGLE@[61; 62) "<" | ||
67 | TYPE_ARG@[62; 63) | ||
68 | PATH_TYPE@[62; 63) | ||
69 | PATH@[62; 63) | ||
70 | PATH_SEGMENT@[62; 63) | ||
71 | NAME_REF@[62; 63) | ||
72 | IDENT@[62; 63) "b" | ||
73 | R_ANGLE@[63; 64) ">" | ||
74 | SEMI@[64; 65) ";" | ||
75 | WHITESPACE@[65; 70) "\n " | ||
76 | LET_STMT@[70; 88) | ||
77 | LET_KW@[70; 73) "let" | ||
78 | WHITESPACE@[73; 74) " " | ||
79 | PLACEHOLDER_PAT@[74; 75) | ||
80 | UNDERSCORE@[74; 75) "_" | ||
81 | WHITESPACE@[75; 76) " " | ||
82 | EQ@[76; 77) "=" | ||
83 | WHITESPACE@[77; 78) " " | ||
84 | MACRO_CALL@[78; 87) | ||
85 | PATH@[78; 84) | ||
86 | PATH_SEGMENT@[78; 84) | ||
87 | NAME_REF@[78; 84) | ||
88 | IDENT@[78; 84) "format" | ||
89 | EXCL@[84; 85) "!" | ||
90 | TOKEN_TREE@[85; 87) | ||
91 | L_PAREN@[85; 86) "(" | ||
92 | R_PAREN@[86; 87) ")" | ||
93 | SEMI@[87; 88) ";" | ||
94 | WHITESPACE@[88; 89) "\n" | ||
95 | R_CURLY@[89; 90) "}" | ||
96 | WHITESPACE@[90; 91) "\n" | ||