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