diff options
author | Aleksey Kladov <[email protected]> | 2018-08-13 21:54:00 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-13 21:54:00 +0100 |
commit | 49ab44102496ac8c4a05b00c584adecf583f4d87 (patch) | |
tree | 853718de93f4c713a084fe728ee5035e57be2a40 /crates/libsyntax2/tests/data | |
parent | d9e86e574ad936f03a64c38dc7b7f39ddcc4eebd (diff) |
Qualified paths
Diffstat (limited to 'crates/libsyntax2/tests/data')
-rw-r--r-- | crates/libsyntax2/tests/data/parser/inline/0101_qual_paths.rs | 2 | ||||
-rw-r--r-- | crates/libsyntax2/tests/data/parser/inline/0101_qual_paths.txt | 78 |
2 files changed, 80 insertions, 0 deletions
diff --git a/crates/libsyntax2/tests/data/parser/inline/0101_qual_paths.rs b/crates/libsyntax2/tests/data/parser/inline/0101_qual_paths.rs new file mode 100644 index 000000000..d140692e2 --- /dev/null +++ b/crates/libsyntax2/tests/data/parser/inline/0101_qual_paths.rs | |||
@@ -0,0 +1,2 @@ | |||
1 | type X = <A as B>::Output; | ||
2 | fn foo() { <usize as Default>::default(); } | ||
diff --git a/crates/libsyntax2/tests/data/parser/inline/0101_qual_paths.txt b/crates/libsyntax2/tests/data/parser/inline/0101_qual_paths.txt new file mode 100644 index 000000000..58b545bdd --- /dev/null +++ b/crates/libsyntax2/tests/data/parser/inline/0101_qual_paths.txt | |||
@@ -0,0 +1,78 @@ | |||
1 | FILE@[0; 71) | ||
2 | TYPE_DEF@[0; 26) | ||
3 | TYPE_KW@[0; 4) | ||
4 | WHITESPACE@[4; 5) | ||
5 | NAME@[5; 6) | ||
6 | IDENT@[5; 6) "X" | ||
7 | WHITESPACE@[6; 7) | ||
8 | EQ@[7; 8) | ||
9 | WHITESPACE@[8; 9) | ||
10 | PATH_TYPE@[9; 25) | ||
11 | PATH@[9; 25) | ||
12 | PATH@[9; 17) | ||
13 | PATH_SEGMENT@[9; 17) | ||
14 | L_ANGLE@[9; 10) | ||
15 | PATH_TYPE@[10; 11) | ||
16 | PATH@[10; 11) | ||
17 | PATH_SEGMENT@[10; 11) | ||
18 | NAME_REF@[10; 11) | ||
19 | IDENT@[10; 11) "A" | ||
20 | WHITESPACE@[11; 12) | ||
21 | AS_KW@[12; 14) | ||
22 | WHITESPACE@[14; 15) | ||
23 | PATH_TYPE@[15; 16) | ||
24 | PATH@[15; 16) | ||
25 | PATH_SEGMENT@[15; 16) | ||
26 | NAME_REF@[15; 16) | ||
27 | IDENT@[15; 16) "B" | ||
28 | R_ANGLE@[16; 17) | ||
29 | COLONCOLON@[17; 19) | ||
30 | PATH_SEGMENT@[19; 25) | ||
31 | NAME_REF@[19; 25) | ||
32 | IDENT@[19; 25) "Output" | ||
33 | SEMI@[25; 26) | ||
34 | WHITESPACE@[26; 27) | ||
35 | FN_DEF@[27; 70) | ||
36 | FN_KW@[27; 29) | ||
37 | WHITESPACE@[29; 30) | ||
38 | NAME@[30; 33) | ||
39 | IDENT@[30; 33) "foo" | ||
40 | PARAM_LIST@[33; 35) | ||
41 | L_PAREN@[33; 34) | ||
42 | R_PAREN@[34; 35) | ||
43 | WHITESPACE@[35; 36) | ||
44 | BLOCK_EXPR@[36; 70) | ||
45 | L_CURLY@[36; 37) | ||
46 | WHITESPACE@[37; 38) | ||
47 | EXPR_STMT@[38; 68) | ||
48 | CALL_EXPR@[38; 67) | ||
49 | PATH_EXPR@[38; 65) | ||
50 | PATH@[38; 65) | ||
51 | PATH@[38; 56) | ||
52 | PATH_SEGMENT@[38; 56) | ||
53 | L_ANGLE@[38; 39) | ||
54 | PATH_TYPE@[39; 44) | ||
55 | PATH@[39; 44) | ||
56 | PATH_SEGMENT@[39; 44) | ||
57 | NAME_REF@[39; 44) | ||
58 | IDENT@[39; 44) "usize" | ||
59 | WHITESPACE@[44; 45) | ||
60 | AS_KW@[45; 47) | ||
61 | WHITESPACE@[47; 48) | ||
62 | PATH_TYPE@[48; 55) | ||
63 | PATH@[48; 55) | ||
64 | PATH_SEGMENT@[48; 55) | ||
65 | NAME_REF@[48; 55) | ||
66 | IDENT@[48; 55) "Default" | ||
67 | R_ANGLE@[55; 56) | ||
68 | COLONCOLON@[56; 58) | ||
69 | PATH_SEGMENT@[58; 65) | ||
70 | NAME_REF@[58; 65) | ||
71 | IDENT@[58; 65) "default" | ||
72 | ARG_LIST@[65; 67) | ||
73 | L_PAREN@[65; 66) | ||
74 | R_PAREN@[66; 67) | ||
75 | SEMI@[67; 68) | ||
76 | WHITESPACE@[68; 69) | ||
77 | R_CURLY@[69; 70) | ||
78 | WHITESPACE@[70; 71) | ||