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/0018_arb_self_types.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.txt | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.txt b/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.txt new file mode 100644 index 000000000..67d0de0f0 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.txt | |||
@@ -0,0 +1,72 @@ | |||
1 | SOURCE_FILE@[0; 69) | ||
2 | IMPL_BLOCK@[0; 68) | ||
3 | IMPL_KW@[0; 4) "impl" | ||
4 | WHITESPACE@[4; 5) " " | ||
5 | PATH_TYPE@[5; 6) | ||
6 | PATH@[5; 6) | ||
7 | PATH_SEGMENT@[5; 6) | ||
8 | NAME_REF@[5; 6) | ||
9 | IDENT@[5; 6) "S" | ||
10 | WHITESPACE@[6; 7) " " | ||
11 | ITEM_LIST@[7; 68) | ||
12 | L_CURLY@[7; 8) "{" | ||
13 | WHITESPACE@[8; 13) "\n " | ||
14 | FN_DEF@[13; 33) | ||
15 | FN_KW@[13; 15) "fn" | ||
16 | WHITESPACE@[15; 16) " " | ||
17 | NAME@[16; 17) | ||
18 | IDENT@[16; 17) "a" | ||
19 | PARAM_LIST@[17; 30) | ||
20 | L_PAREN@[17; 18) "(" | ||
21 | SELF_PARAM@[18; 29) | ||
22 | SELF_KW@[18; 22) "self" | ||
23 | COLON@[22; 23) ":" | ||
24 | WHITESPACE@[23; 24) " " | ||
25 | REFERENCE_TYPE@[24; 29) | ||
26 | AMP@[24; 25) "&" | ||
27 | PATH_TYPE@[25; 29) | ||
28 | PATH@[25; 29) | ||
29 | PATH_SEGMENT@[25; 29) | ||
30 | NAME_REF@[25; 29) | ||
31 | IDENT@[25; 29) "Self" | ||
32 | R_PAREN@[29; 30) ")" | ||
33 | WHITESPACE@[30; 31) " " | ||
34 | BLOCK@[31; 33) | ||
35 | L_CURLY@[31; 32) "{" | ||
36 | R_CURLY@[32; 33) "}" | ||
37 | WHITESPACE@[33; 38) "\n " | ||
38 | FN_DEF@[38; 66) | ||
39 | FN_KW@[38; 40) "fn" | ||
40 | WHITESPACE@[40; 41) " " | ||
41 | NAME@[41; 42) | ||
42 | IDENT@[41; 42) "b" | ||
43 | PARAM_LIST@[42; 63) | ||
44 | L_PAREN@[42; 43) "(" | ||
45 | SELF_PARAM@[43; 62) | ||
46 | MUT_KW@[43; 46) "mut" | ||
47 | WHITESPACE@[46; 47) " " | ||
48 | SELF_KW@[47; 51) "self" | ||
49 | COLON@[51; 52) ":" | ||
50 | WHITESPACE@[52; 53) " " | ||
51 | PATH_TYPE@[53; 62) | ||
52 | PATH@[53; 62) | ||
53 | PATH_SEGMENT@[53; 62) | ||
54 | NAME_REF@[53; 56) | ||
55 | IDENT@[53; 56) "Box" | ||
56 | TYPE_ARG_LIST@[56; 62) | ||
57 | L_ANGLE@[56; 57) "<" | ||
58 | TYPE_ARG@[57; 61) | ||
59 | PATH_TYPE@[57; 61) | ||
60 | PATH@[57; 61) | ||
61 | PATH_SEGMENT@[57; 61) | ||
62 | NAME_REF@[57; 61) | ||
63 | IDENT@[57; 61) "Self" | ||
64 | R_ANGLE@[61; 62) ">" | ||
65 | R_PAREN@[62; 63) ")" | ||
66 | WHITESPACE@[63; 64) " " | ||
67 | BLOCK@[64; 66) | ||
68 | L_CURLY@[64; 65) "{" | ||
69 | R_CURLY@[65; 66) "}" | ||
70 | WHITESPACE@[66; 67) "\n" | ||
71 | R_CURLY@[67; 68) "}" | ||
72 | WHITESPACE@[68; 69) "\n" | ||