diff options
author | Aleksey Kladov <[email protected]> | 2018-01-11 17:55:08 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-01-11 17:55:08 +0000 |
commit | 41bf98d2493138d09e8c127f0914b2cf034cfa34 (patch) | |
tree | b949c991876fe5a9f2c75919a450d66bdd610155 /tests/data/parser | |
parent | adb8378827f70b0eeb19922f80bedc59c58207dc (diff) |
G: multisegment paths
Diffstat (limited to 'tests/data/parser')
-rw-r--r-- | tests/data/parser/ok/0010_use_path_segments.rs | 2 | ||||
-rw-r--r-- | tests/data/parser/ok/0010_use_path_segments.txt | 34 |
2 files changed, 36 insertions, 0 deletions
diff --git a/tests/data/parser/ok/0010_use_path_segments.rs b/tests/data/parser/ok/0010_use_path_segments.rs new file mode 100644 index 000000000..1e71b7a6c --- /dev/null +++ b/tests/data/parser/ok/0010_use_path_segments.rs | |||
@@ -0,0 +1,2 @@ | |||
1 | use ::foo::bar::baz; | ||
2 | use foo::bar::baz; | ||
diff --git a/tests/data/parser/ok/0010_use_path_segments.txt b/tests/data/parser/ok/0010_use_path_segments.txt new file mode 100644 index 000000000..cad609087 --- /dev/null +++ b/tests/data/parser/ok/0010_use_path_segments.txt | |||
@@ -0,0 +1,34 @@ | |||
1 | FILE@[0; 40) | ||
2 | USE_ITEM@[0; 21) | ||
3 | USE_KW@[0; 3) | ||
4 | PATH@[3; 9) | ||
5 | WHITESPACE@[3; 4) | ||
6 | COLONCOLON@[4; 6) | ||
7 | PATH_SEGMENT@[6; 9) | ||
8 | IDENT@[6; 9) | ||
9 | PATH@[9; 14) | ||
10 | COLONCOLON@[9; 11) | ||
11 | PATH_SEGMENT@[11; 14) | ||
12 | IDENT@[11; 14) | ||
13 | PATH@[14; 19) | ||
14 | COLONCOLON@[14; 16) | ||
15 | PATH_SEGMENT@[16; 19) | ||
16 | IDENT@[16; 19) | ||
17 | SEMI@[19; 20) | ||
18 | WHITESPACE@[20; 21) | ||
19 | USE_ITEM@[21; 40) | ||
20 | USE_KW@[21; 24) | ||
21 | PATH@[24; 28) | ||
22 | PATH_SEGMENT@[24; 28) | ||
23 | WHITESPACE@[24; 25) | ||
24 | IDENT@[25; 28) | ||
25 | PATH@[28; 33) | ||
26 | COLONCOLON@[28; 30) | ||
27 | PATH_SEGMENT@[30; 33) | ||
28 | IDENT@[30; 33) | ||
29 | PATH@[33; 38) | ||
30 | COLONCOLON@[33; 35) | ||
31 | PATH_SEGMENT@[35; 38) | ||
32 | IDENT@[35; 38) | ||
33 | SEMI@[38; 39) | ||
34 | WHITESPACE@[39; 40) | ||