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/tests/data/parser/ok/0030_traits.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/ok/0030_traits.txt')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/ok/0030_traits.txt | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/crates/ra_syntax/tests/data/parser/ok/0030_traits.txt b/crates/ra_syntax/tests/data/parser/ok/0030_traits.txt deleted file mode 100644 index b656c1a81..000000000 --- a/crates/ra_syntax/tests/data/parser/ok/0030_traits.txt +++ /dev/null | |||
@@ -1,93 +0,0 @@ | |||
1 | SOURCE_FILE@[0; 164) | ||
2 | TRAIT_DEF@[0; 66) | ||
3 | VISIBILITY@[0; 3) | ||
4 | PUB_KW@[0; 3) "pub" | ||
5 | WHITESPACE@[3; 4) " " | ||
6 | TRAIT_KW@[4; 9) "trait" | ||
7 | WHITESPACE@[9; 10) " " | ||
8 | NAME@[10; 22) | ||
9 | IDENT@[10; 22) "WriteMessage" | ||
10 | WHITESPACE@[22; 23) " " | ||
11 | ITEM_LIST@[23; 66) | ||
12 | L_CURLY@[23; 24) "{" | ||
13 | WHITESPACE@[24; 29) "\n " | ||
14 | FN_DEF@[29; 64) | ||
15 | FN_KW@[29; 31) "fn" | ||
16 | WHITESPACE@[31; 32) " " | ||
17 | NAME@[32; 45) | ||
18 | IDENT@[32; 45) "write_message" | ||
19 | PARAM_LIST@[45; 63) | ||
20 | L_PAREN@[45; 46) "(" | ||
21 | PARAM@[46; 62) | ||
22 | REFERENCE_TYPE@[46; 62) | ||
23 | AMP@[46; 47) "&" | ||
24 | PATH_TYPE@[47; 62) | ||
25 | PATH@[47; 62) | ||
26 | PATH_SEGMENT@[47; 62) | ||
27 | NAME_REF@[47; 62) | ||
28 | IDENT@[47; 62) "FrontendMessage" | ||
29 | R_PAREN@[62; 63) ")" | ||
30 | SEMI@[63; 64) ";" | ||
31 | WHITESPACE@[64; 65) "\n" | ||
32 | R_CURLY@[65; 66) "}" | ||
33 | WHITESPACE@[66; 68) "\n\n" | ||
34 | TRAIT_DEF@[68; 104) | ||
35 | TRAIT_KW@[68; 73) "trait" | ||
36 | WHITESPACE@[73; 74) " " | ||
37 | NAME@[74; 82) | ||
38 | IDENT@[74; 82) "Runnable" | ||
39 | WHITESPACE@[82; 83) " " | ||
40 | ITEM_LIST@[83; 104) | ||
41 | L_CURLY@[83; 84) "{" | ||
42 | WHITESPACE@[84; 89) "\n " | ||
43 | FN_DEF@[89; 102) | ||
44 | FN_KW@[89; 91) "fn" | ||
45 | WHITESPACE@[91; 92) " " | ||
46 | NAME@[92; 99) | ||
47 | IDENT@[92; 99) "handler" | ||
48 | PARAM_LIST@[99; 101) | ||
49 | L_PAREN@[99; 100) "(" | ||
50 | R_PAREN@[100; 101) ")" | ||
51 | SEMI@[101; 102) ";" | ||
52 | WHITESPACE@[102; 103) "\n" | ||
53 | R_CURLY@[103; 104) "}" | ||
54 | WHITESPACE@[104; 106) "\n\n" | ||
55 | TRAIT_DEF@[106; 163) | ||
56 | TRAIT_KW@[106; 111) "trait" | ||
57 | WHITESPACE@[111; 112) " " | ||
58 | NAME@[112; 125) | ||
59 | IDENT@[112; 125) "TraitWithExpr" | ||
60 | WHITESPACE@[125; 126) " " | ||
61 | ITEM_LIST@[126; 163) | ||
62 | L_CURLY@[126; 127) "{" | ||
63 | WHITESPACE@[127; 132) "\n " | ||
64 | FN_DEF@[132; 161) | ||
65 | FN_KW@[132; 134) "fn" | ||
66 | WHITESPACE@[134; 135) " " | ||
67 | NAME@[135; 147) | ||
68 | IDENT@[135; 147) "fn_with_expr" | ||
69 | PARAM_LIST@[147; 160) | ||
70 | L_PAREN@[147; 148) "(" | ||
71 | PARAM@[148; 159) | ||
72 | BIND_PAT@[148; 149) | ||
73 | NAME@[148; 149) | ||
74 | IDENT@[148; 149) "x" | ||
75 | COLON@[149; 150) ":" | ||
76 | WHITESPACE@[150; 151) " " | ||
77 | ARRAY_TYPE@[151; 159) | ||
78 | L_BRACK@[151; 152) "[" | ||
79 | PATH_TYPE@[152; 155) | ||
80 | PATH@[152; 155) | ||
81 | PATH_SEGMENT@[152; 155) | ||
82 | NAME_REF@[152; 155) | ||
83 | IDENT@[152; 155) "i32" | ||
84 | SEMI@[155; 156) ";" | ||
85 | WHITESPACE@[156; 157) " " | ||
86 | LITERAL@[157; 158) | ||
87 | INT_NUMBER@[157; 158) "1" | ||
88 | R_BRACK@[158; 159) "]" | ||
89 | R_PAREN@[159; 160) ")" | ||
90 | SEMI@[160; 161) ";" | ||
91 | WHITESPACE@[161; 162) "\n" | ||
92 | R_CURLY@[162; 163) "}" | ||
93 | WHITESPACE@[163; 164) "\n" | ||