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/ok/0015_use_tree.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0015_use_tree.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0015_use_tree.txt | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0015_use_tree.txt b/crates/ra_syntax/test_data/parser/ok/0015_use_tree.txt new file mode 100644 index 000000000..e63f14253 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/ok/0015_use_tree.txt | |||
@@ -0,0 +1,65 @@ | |||
1 | SOURCE_FILE@[0; 55) | ||
2 | USE_ITEM@[0; 15) | ||
3 | USE_KW@[0; 3) "use" | ||
4 | WHITESPACE@[3; 4) " " | ||
5 | USE_TREE@[4; 14) | ||
6 | PATH@[4; 7) | ||
7 | PATH_SEGMENT@[4; 7) | ||
8 | NAME_REF@[4; 7) | ||
9 | IDENT@[4; 7) "foo" | ||
10 | WHITESPACE@[7; 8) " " | ||
11 | ALIAS@[8; 14) | ||
12 | AS_KW@[8; 10) "as" | ||
13 | WHITESPACE@[10; 11) " " | ||
14 | NAME@[11; 14) | ||
15 | IDENT@[11; 14) "bar" | ||
16 | SEMI@[14; 15) ";" | ||
17 | WHITESPACE@[15; 16) "\n" | ||
18 | USE_ITEM@[16; 54) | ||
19 | USE_KW@[16; 19) "use" | ||
20 | WHITESPACE@[19; 20) " " | ||
21 | USE_TREE@[20; 53) | ||
22 | PATH@[20; 23) | ||
23 | PATH_SEGMENT@[20; 23) | ||
24 | NAME_REF@[20; 23) | ||
25 | IDENT@[20; 23) "foo" | ||
26 | COLONCOLON@[23; 25) "::" | ||
27 | USE_TREE_LIST@[25; 53) | ||
28 | L_CURLY@[25; 26) "{" | ||
29 | USE_TREE@[26; 32) | ||
30 | PATH@[26; 27) | ||
31 | PATH_SEGMENT@[26; 27) | ||
32 | NAME_REF@[26; 27) | ||
33 | IDENT@[26; 27) "a" | ||
34 | WHITESPACE@[27; 28) " " | ||
35 | ALIAS@[28; 32) | ||
36 | AS_KW@[28; 30) "as" | ||
37 | WHITESPACE@[30; 31) " " | ||
38 | NAME@[31; 32) | ||
39 | IDENT@[31; 32) "b" | ||
40 | COMMA@[32; 33) "," | ||
41 | WHITESPACE@[33; 34) " " | ||
42 | USE_TREE@[34; 35) | ||
43 | STAR@[34; 35) "*" | ||
44 | COMMA@[35; 36) "," | ||
45 | WHITESPACE@[36; 37) " " | ||
46 | USE_TREE@[37; 40) | ||
47 | COLONCOLON@[37; 39) "::" | ||
48 | STAR@[39; 40) "*" | ||
49 | COMMA@[40; 41) "," | ||
50 | WHITESPACE@[41; 42) " " | ||
51 | USE_TREE@[42; 52) | ||
52 | PATH@[42; 47) | ||
53 | PATH_SEGMENT@[42; 47) | ||
54 | COLONCOLON@[42; 44) "::" | ||
55 | NAME_REF@[44; 47) | ||
56 | IDENT@[44; 47) "foo" | ||
57 | WHITESPACE@[47; 48) " " | ||
58 | ALIAS@[48; 52) | ||
59 | AS_KW@[48; 50) "as" | ||
60 | WHITESPACE@[50; 51) " " | ||
61 | NAME@[51; 52) | ||
62 | IDENT@[51; 52) "x" | ||
63 | R_CURLY@[52; 53) "}" | ||
64 | SEMI@[53; 54) ";" | ||
65 | WHITESPACE@[54; 55) "\n" | ||