diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.rast | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.rast b/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.rast new file mode 100644 index 000000000..3812adc9e --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.rast | |||
@@ -0,0 +1,97 @@ | |||
1 | SOURCE_FILE@[0; 103) | ||
2 | FN_DEF@[0; 102) | ||
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; 102) | ||
12 | BLOCK@[9; 102) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 15) "\n " | ||
15 | LET_STMT@[15; 33) | ||
16 | LET_KW@[15; 18) "let" | ||
17 | WHITESPACE@[18; 19) " " | ||
18 | PATH_PAT@[19; 27) | ||
19 | PATH@[19; 27) | ||
20 | PATH@[19; 22) | ||
21 | PATH_SEGMENT@[19; 22) | ||
22 | NAME_REF@[19; 22) | ||
23 | IDENT@[19; 22) "foo" | ||
24 | COLONCOLON@[22; 24) "::" | ||
25 | PATH_SEGMENT@[24; 27) | ||
26 | NAME_REF@[24; 27) | ||
27 | IDENT@[24; 27) "Bar" | ||
28 | WHITESPACE@[27; 28) " " | ||
29 | EQ@[28; 29) "=" | ||
30 | WHITESPACE@[29; 30) " " | ||
31 | TUPLE_EXPR@[30; 32) | ||
32 | L_PAREN@[30; 31) "(" | ||
33 | R_PAREN@[31; 32) ")" | ||
34 | SEMI@[32; 33) ";" | ||
35 | WHITESPACE@[33; 38) "\n " | ||
36 | LET_STMT@[38; 53) | ||
37 | LET_KW@[38; 41) "let" | ||
38 | WHITESPACE@[41; 42) " " | ||
39 | PATH_PAT@[42; 47) | ||
40 | PATH@[42; 47) | ||
41 | PATH_SEGMENT@[42; 47) | ||
42 | COLONCOLON@[42; 44) "::" | ||
43 | NAME_REF@[44; 47) | ||
44 | IDENT@[44; 47) "Bar" | ||
45 | WHITESPACE@[47; 48) " " | ||
46 | EQ@[48; 49) "=" | ||
47 | WHITESPACE@[49; 50) " " | ||
48 | TUPLE_EXPR@[50; 52) | ||
49 | L_PAREN@[50; 51) "(" | ||
50 | R_PAREN@[51; 52) ")" | ||
51 | SEMI@[52; 53) ";" | ||
52 | WHITESPACE@[53; 58) "\n " | ||
53 | LET_STMT@[58; 78) | ||
54 | LET_KW@[58; 61) "let" | ||
55 | WHITESPACE@[61; 62) " " | ||
56 | RECORD_PAT@[62; 72) | ||
57 | PATH@[62; 65) | ||
58 | PATH_SEGMENT@[62; 65) | ||
59 | NAME_REF@[62; 65) | ||
60 | IDENT@[62; 65) "Bar" | ||
61 | WHITESPACE@[65; 66) " " | ||
62 | RECORD_FIELD_PAT_LIST@[66; 72) | ||
63 | L_CURLY@[66; 67) "{" | ||
64 | WHITESPACE@[67; 68) " " | ||
65 | DOTDOT@[68; 70) ".." | ||
66 | WHITESPACE@[70; 71) " " | ||
67 | R_CURLY@[71; 72) "}" | ||
68 | WHITESPACE@[72; 73) " " | ||
69 | EQ@[73; 74) "=" | ||
70 | WHITESPACE@[74; 75) " " | ||
71 | TUPLE_EXPR@[75; 77) | ||
72 | L_PAREN@[75; 76) "(" | ||
73 | R_PAREN@[76; 77) ")" | ||
74 | SEMI@[77; 78) ";" | ||
75 | WHITESPACE@[78; 83) "\n " | ||
76 | LET_STMT@[83; 100) | ||
77 | LET_KW@[83; 86) "let" | ||
78 | WHITESPACE@[86; 87) " " | ||
79 | TUPLE_STRUCT_PAT@[87; 94) | ||
80 | PATH@[87; 90) | ||
81 | PATH_SEGMENT@[87; 90) | ||
82 | NAME_REF@[87; 90) | ||
83 | IDENT@[87; 90) "Bar" | ||
84 | L_PAREN@[90; 91) "(" | ||
85 | DOT_DOT_PAT@[91; 93) | ||
86 | DOTDOT@[91; 93) ".." | ||
87 | R_PAREN@[93; 94) ")" | ||
88 | WHITESPACE@[94; 95) " " | ||
89 | EQ@[95; 96) "=" | ||
90 | WHITESPACE@[96; 97) " " | ||
91 | TUPLE_EXPR@[97; 99) | ||
92 | L_PAREN@[97; 98) "(" | ||
93 | R_PAREN@[98; 99) ")" | ||
94 | SEMI@[99; 100) ";" | ||
95 | WHITESPACE@[100; 101) "\n" | ||
96 | R_CURLY@[101; 102) "}" | ||
97 | WHITESPACE@[102; 103) "\n" | ||