diff options
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/parser/inline/0050_let_stmt;.rs | 6 | ||||
-rw-r--r-- | tests/data/parser/inline/0050_let_stmt;.txt | 71 |
2 files changed, 77 insertions, 0 deletions
diff --git a/tests/data/parser/inline/0050_let_stmt;.rs b/tests/data/parser/inline/0050_let_stmt;.rs new file mode 100644 index 000000000..0a9af907f --- /dev/null +++ b/tests/data/parser/inline/0050_let_stmt;.rs | |||
@@ -0,0 +1,6 @@ | |||
1 | fn foo() { | ||
2 | let a; | ||
3 | let b: i32; | ||
4 | let c = 92; | ||
5 | let d: i32 = 92; | ||
6 | } | ||
diff --git a/tests/data/parser/inline/0050_let_stmt;.txt b/tests/data/parser/inline/0050_let_stmt;.txt new file mode 100644 index 000000000..b7acf8744 --- /dev/null +++ b/tests/data/parser/inline/0050_let_stmt;.txt | |||
@@ -0,0 +1,71 @@ | |||
1 | FILE@[0; 77) | ||
2 | FN_ITEM@[0; 77) | ||
3 | FN_KW@[0; 2) | ||
4 | NAME@[2; 6) | ||
5 | WHITESPACE@[2; 3) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 9) | ||
8 | L_PAREN@[6; 7) | ||
9 | R_PAREN@[7; 8) | ||
10 | WHITESPACE@[8; 9) | ||
11 | BLOCK@[9; 77) | ||
12 | L_CURLY@[9; 10) | ||
13 | LET_STMT@[10; 26) | ||
14 | WHITESPACE@[10; 15) | ||
15 | LET_KW@[15; 18) | ||
16 | BIND_PAT@[18; 20) | ||
17 | NAME@[18; 20) | ||
18 | WHITESPACE@[18; 19) | ||
19 | IDENT@[19; 20) "a" | ||
20 | SEMI@[20; 21) | ||
21 | WHITESPACE@[21; 26) | ||
22 | LET_STMT@[26; 42) | ||
23 | LET_KW@[26; 29) | ||
24 | BIND_PAT@[29; 31) | ||
25 | NAME@[29; 31) | ||
26 | WHITESPACE@[29; 30) | ||
27 | IDENT@[30; 31) "b" | ||
28 | COLON@[31; 32) | ||
29 | PATH_TYPE@[32; 36) | ||
30 | PATH@[32; 36) | ||
31 | PATH_SEGMENT@[32; 36) | ||
32 | NAME_REF@[32; 36) | ||
33 | WHITESPACE@[32; 33) | ||
34 | IDENT@[33; 36) "i32" | ||
35 | SEMI@[36; 37) | ||
36 | WHITESPACE@[37; 42) | ||
37 | LET_STMT@[42; 58) | ||
38 | LET_KW@[42; 45) | ||
39 | BIND_PAT@[45; 48) | ||
40 | NAME@[45; 48) | ||
41 | WHITESPACE@[45; 46) | ||
42 | IDENT@[46; 47) "c" | ||
43 | WHITESPACE@[47; 48) | ||
44 | EQ@[48; 49) | ||
45 | LITERAL@[49; 52) | ||
46 | WHITESPACE@[49; 50) | ||
47 | INT_NUMBER@[50; 52) | ||
48 | SEMI@[52; 53) | ||
49 | WHITESPACE@[53; 58) | ||
50 | LET_STMT@[58; 75) | ||
51 | LET_KW@[58; 61) | ||
52 | BIND_PAT@[61; 63) | ||
53 | NAME@[61; 63) | ||
54 | WHITESPACE@[61; 62) | ||
55 | IDENT@[62; 63) "d" | ||
56 | COLON@[63; 64) | ||
57 | PATH_TYPE@[64; 69) | ||
58 | PATH@[64; 69) | ||
59 | PATH_SEGMENT@[64; 69) | ||
60 | NAME_REF@[64; 69) | ||
61 | WHITESPACE@[64; 65) | ||
62 | IDENT@[65; 68) "i32" | ||
63 | WHITESPACE@[68; 69) | ||
64 | EQ@[69; 70) | ||
65 | LITERAL@[70; 73) | ||
66 | WHITESPACE@[70; 71) | ||
67 | INT_NUMBER@[71; 73) | ||
68 | SEMI@[73; 74) | ||
69 | WHITESPACE@[74; 75) | ||
70 | R_CURLY@[75; 76) | ||
71 | WHITESPACE@[76; 77) | ||