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/0032_fn_pointer_type.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0032_fn_pointer_type.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0032_fn_pointer_type.txt | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0032_fn_pointer_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0032_fn_pointer_type.txt new file mode 100644 index 000000000..a0a8aea76 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0032_fn_pointer_type.txt | |||
@@ -0,0 +1,97 @@ | |||
1 | SOURCE_FILE@[0; 113) | ||
2 | TYPE_ALIAS_DEF@[0; 14) | ||
3 | TYPE_KW@[0; 4) "type" | ||
4 | WHITESPACE@[4; 5) " " | ||
5 | NAME@[5; 6) | ||
6 | IDENT@[5; 6) "A" | ||
7 | WHITESPACE@[6; 7) " " | ||
8 | EQ@[7; 8) "=" | ||
9 | WHITESPACE@[8; 9) " " | ||
10 | FN_POINTER_TYPE@[9; 13) | ||
11 | FN_KW@[9; 11) "fn" | ||
12 | PARAM_LIST@[11; 13) | ||
13 | L_PAREN@[11; 12) "(" | ||
14 | R_PAREN@[12; 13) ")" | ||
15 | SEMI@[13; 14) ";" | ||
16 | WHITESPACE@[14; 15) "\n" | ||
17 | TYPE_ALIAS_DEF@[15; 36) | ||
18 | TYPE_KW@[15; 19) "type" | ||
19 | WHITESPACE@[19; 20) " " | ||
20 | NAME@[20; 21) | ||
21 | IDENT@[20; 21) "B" | ||
22 | WHITESPACE@[21; 22) " " | ||
23 | EQ@[22; 23) "=" | ||
24 | WHITESPACE@[23; 24) " " | ||
25 | FN_POINTER_TYPE@[24; 35) | ||
26 | UNSAFE_KW@[24; 30) "unsafe" | ||
27 | WHITESPACE@[30; 31) " " | ||
28 | FN_KW@[31; 33) "fn" | ||
29 | PARAM_LIST@[33; 35) | ||
30 | L_PAREN@[33; 34) "(" | ||
31 | R_PAREN@[34; 35) ")" | ||
32 | SEMI@[35; 36) ";" | ||
33 | WHITESPACE@[36; 37) "\n" | ||
34 | TYPE_ALIAS_DEF@[37; 69) | ||
35 | TYPE_KW@[37; 41) "type" | ||
36 | WHITESPACE@[41; 42) " " | ||
37 | NAME@[42; 43) | ||
38 | IDENT@[42; 43) "C" | ||
39 | WHITESPACE@[43; 44) " " | ||
40 | EQ@[44; 45) "=" | ||
41 | WHITESPACE@[45; 46) " " | ||
42 | FN_POINTER_TYPE@[46; 68) | ||
43 | UNSAFE_KW@[46; 52) "unsafe" | ||
44 | WHITESPACE@[52; 53) " " | ||
45 | ABI@[53; 63) | ||
46 | EXTERN_KW@[53; 59) "extern" | ||
47 | WHITESPACE@[59; 60) " " | ||
48 | STRING@[60; 63) "\"C\"" | ||
49 | WHITESPACE@[63; 64) " " | ||
50 | FN_KW@[64; 66) "fn" | ||
51 | PARAM_LIST@[66; 68) | ||
52 | L_PAREN@[66; 67) "(" | ||
53 | R_PAREN@[67; 68) ")" | ||
54 | SEMI@[68; 69) ";" | ||
55 | WHITESPACE@[69; 70) "\n" | ||
56 | TYPE_ALIAS_DEF@[70; 112) | ||
57 | TYPE_KW@[70; 74) "type" | ||
58 | WHITESPACE@[74; 75) " " | ||
59 | NAME@[75; 76) | ||
60 | IDENT@[75; 76) "D" | ||
61 | WHITESPACE@[76; 77) " " | ||
62 | EQ@[77; 78) "=" | ||
63 | WHITESPACE@[78; 79) " " | ||
64 | FN_POINTER_TYPE@[79; 111) | ||
65 | ABI@[79; 89) | ||
66 | EXTERN_KW@[79; 85) "extern" | ||
67 | WHITESPACE@[85; 86) " " | ||
68 | STRING@[86; 89) "\"C\"" | ||
69 | WHITESPACE@[89; 90) " " | ||
70 | FN_KW@[90; 92) "fn" | ||
71 | WHITESPACE@[92; 93) " " | ||
72 | PARAM_LIST@[93; 105) | ||
73 | L_PAREN@[93; 94) "(" | ||
74 | WHITESPACE@[94; 95) " " | ||
75 | PARAM@[95; 97) | ||
76 | PATH_TYPE@[95; 97) | ||
77 | PATH@[95; 97) | ||
78 | PATH_SEGMENT@[95; 97) | ||
79 | NAME_REF@[95; 97) | ||
80 | IDENT@[95; 97) "u8" | ||
81 | WHITESPACE@[97; 98) " " | ||
82 | COMMA@[98; 99) "," | ||
83 | WHITESPACE@[99; 100) " " | ||
84 | DOTDOTDOT@[100; 103) "..." | ||
85 | WHITESPACE@[103; 104) " " | ||
86 | R_PAREN@[104; 105) ")" | ||
87 | WHITESPACE@[105; 106) " " | ||
88 | RET_TYPE@[106; 111) | ||
89 | THIN_ARROW@[106; 108) "->" | ||
90 | WHITESPACE@[108; 109) " " | ||
91 | PATH_TYPE@[109; 111) | ||
92 | PATH@[109; 111) | ||
93 | PATH_SEGMENT@[109; 111) | ||
94 | NAME_REF@[109; 111) | ||
95 | IDENT@[109; 111) "u8" | ||
96 | SEMI@[111; 112) ";" | ||
97 | WHITESPACE@[112; 113) "\n" | ||