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/0062_mod_contents.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0062_mod_contents.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0062_mod_contents.txt | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0062_mod_contents.txt b/crates/ra_syntax/test_data/parser/inline/ok/0062_mod_contents.txt new file mode 100644 index 000000000..db2b9a582 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0062_mod_contents.txt | |||
@@ -0,0 +1,66 @@ | |||
1 | SOURCE_FILE@[0; 70) | ||
2 | FN_DEF@[0; 11) | ||
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; 11) | ||
12 | L_CURLY@[9; 10) "{" | ||
13 | R_CURLY@[10; 11) "}" | ||
14 | WHITESPACE@[11; 12) "\n" | ||
15 | MACRO_CALL@[12; 31) | ||
16 | PATH@[12; 23) | ||
17 | PATH_SEGMENT@[12; 23) | ||
18 | NAME_REF@[12; 23) | ||
19 | IDENT@[12; 23) "macro_rules" | ||
20 | EXCL@[23; 24) "!" | ||
21 | WHITESPACE@[24; 25) " " | ||
22 | NAME@[25; 28) | ||
23 | IDENT@[25; 28) "foo" | ||
24 | WHITESPACE@[28; 29) " " | ||
25 | TOKEN_TREE@[29; 31) | ||
26 | L_CURLY@[29; 30) "{" | ||
27 | R_CURLY@[30; 31) "}" | ||
28 | WHITESPACE@[31; 32) "\n" | ||
29 | MACRO_CALL@[32; 44) | ||
30 | PATH@[32; 40) | ||
31 | PATH@[32; 35) | ||
32 | PATH_SEGMENT@[32; 35) | ||
33 | NAME_REF@[32; 35) | ||
34 | IDENT@[32; 35) "foo" | ||
35 | COLONCOLON@[35; 37) "::" | ||
36 | PATH_SEGMENT@[37; 40) | ||
37 | NAME_REF@[37; 40) | ||
38 | IDENT@[37; 40) "bar" | ||
39 | EXCL@[40; 41) "!" | ||
40 | TOKEN_TREE@[41; 43) | ||
41 | L_PAREN@[41; 42) "(" | ||
42 | R_PAREN@[42; 43) ")" | ||
43 | SEMI@[43; 44) ";" | ||
44 | WHITESPACE@[44; 45) "\n" | ||
45 | MACRO_CALL@[45; 59) | ||
46 | PATH@[45; 55) | ||
47 | PATH@[45; 50) | ||
48 | PATH_SEGMENT@[45; 50) | ||
49 | SUPER_KW@[45; 50) "super" | ||
50 | COLONCOLON@[50; 52) "::" | ||
51 | PATH_SEGMENT@[52; 55) | ||
52 | NAME_REF@[52; 55) | ||
53 | IDENT@[52; 55) "baz" | ||
54 | EXCL@[55; 56) "!" | ||
55 | WHITESPACE@[56; 57) " " | ||
56 | TOKEN_TREE@[57; 59) | ||
57 | L_CURLY@[57; 58) "{" | ||
58 | R_CURLY@[58; 59) "}" | ||
59 | WHITESPACE@[59; 60) "\n" | ||
60 | STRUCT_DEF@[60; 69) | ||
61 | STRUCT_KW@[60; 66) "struct" | ||
62 | WHITESPACE@[66; 67) " " | ||
63 | NAME@[67; 68) | ||
64 | IDENT@[67; 68) "S" | ||
65 | SEMI@[68; 69) ";" | ||
66 | WHITESPACE@[69; 70) "\n" | ||