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/0120_match_arms_inner_attribute.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.txt | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.txt b/crates/ra_syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.txt new file mode 100644 index 000000000..17c296327 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.txt | |||
@@ -0,0 +1,74 @@ | |||
1 | SOURCE_FILE@[0; 139) | ||
2 | FN_DEF@[0; 138) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 8) | ||
8 | L_PAREN@[6; 7) "(" | ||
9 | R_PAREN@[7; 8) ")" | ||
10 | WHITESPACE@[8; 9) " " | ||
11 | BLOCK@[9; 138) | ||
12 | L_CURLY@[9; 10) "{" | ||
13 | WHITESPACE@[10; 15) "\n " | ||
14 | MATCH_EXPR@[15; 136) | ||
15 | MATCH_KW@[15; 20) "match" | ||
16 | WHITESPACE@[20; 21) " " | ||
17 | TUPLE_EXPR@[21; 23) | ||
18 | L_PAREN@[21; 22) "(" | ||
19 | R_PAREN@[22; 23) ")" | ||
20 | WHITESPACE@[23; 24) " " | ||
21 | MATCH_ARM_LIST@[24; 136) | ||
22 | L_CURLY@[24; 25) "{" | ||
23 | WHITESPACE@[25; 34) "\n " | ||
24 | ATTR@[34; 60) | ||
25 | POUND@[34; 35) "#" | ||
26 | EXCL@[35; 36) "!" | ||
27 | TOKEN_TREE@[36; 60) | ||
28 | L_BRACK@[36; 37) "[" | ||
29 | IDENT@[37; 40) "doc" | ||
30 | TOKEN_TREE@[40; 59) | ||
31 | L_PAREN@[40; 41) "(" | ||
32 | STRING@[41; 58) "\"Inner attribute\"" | ||
33 | R_PAREN@[58; 59) ")" | ||
34 | R_BRACK@[59; 60) "]" | ||
35 | WHITESPACE@[60; 69) "\n " | ||
36 | ATTR@[69; 86) | ||
37 | POUND@[69; 70) "#" | ||
38 | EXCL@[70; 71) "!" | ||
39 | TOKEN_TREE@[71; 86) | ||
40 | L_BRACK@[71; 72) "[" | ||
41 | IDENT@[72; 75) "doc" | ||
42 | TOKEN_TREE@[75; 85) | ||
43 | L_PAREN@[75; 76) "(" | ||
44 | STRING@[76; 84) "\"Can be\"" | ||
45 | R_PAREN@[84; 85) ")" | ||
46 | R_BRACK@[85; 86) "]" | ||
47 | WHITESPACE@[86; 95) "\n " | ||
48 | ATTR@[95; 113) | ||
49 | POUND@[95; 96) "#" | ||
50 | EXCL@[96; 97) "!" | ||
51 | TOKEN_TREE@[97; 113) | ||
52 | L_BRACK@[97; 98) "[" | ||
53 | IDENT@[98; 101) "doc" | ||
54 | TOKEN_TREE@[101; 112) | ||
55 | L_PAREN@[101; 102) "(" | ||
56 | STRING@[102; 111) "\"Stacked\"" | ||
57 | R_PAREN@[111; 112) ")" | ||
58 | R_BRACK@[112; 113) "]" | ||
59 | WHITESPACE@[113; 122) "\n " | ||
60 | MATCH_ARM@[122; 129) | ||
61 | PLACEHOLDER_PAT@[122; 123) | ||
62 | UNDERSCORE@[122; 123) "_" | ||
63 | WHITESPACE@[123; 124) " " | ||
64 | FAT_ARROW@[124; 126) "=>" | ||
65 | WHITESPACE@[126; 127) " " | ||
66 | TUPLE_EXPR@[127; 129) | ||
67 | L_PAREN@[127; 128) "(" | ||
68 | R_PAREN@[128; 129) ")" | ||
69 | COMMA@[129; 130) "," | ||
70 | WHITESPACE@[130; 135) "\n " | ||
71 | R_CURLY@[135; 136) "}" | ||
72 | WHITESPACE@[136; 137) "\n" | ||
73 | R_CURLY@[137; 138) "}" | ||
74 | WHITESPACE@[138; 139) "\n" | ||