diff options
Diffstat (limited to 'tests/data/parser')
-rw-r--r-- | tests/data/parser/ok/0023_static_items.txt | 10 | ||||
-rw-r--r-- | tests/data/parser/ok/0024_const_item.txt | 10 |
2 files changed, 12 insertions, 8 deletions
diff --git a/tests/data/parser/ok/0023_static_items.txt b/tests/data/parser/ok/0023_static_items.txt index 7cd2228fa..8872520c5 100644 --- a/tests/data/parser/ok/0023_static_items.txt +++ b/tests/data/parser/ok/0023_static_items.txt | |||
@@ -1,8 +1,9 @@ | |||
1 | FILE@[0; 47) | 1 | FILE@[0; 47) |
2 | STATIC_ITEM@[0; 21) | 2 | STATIC_ITEM@[0; 21) |
3 | STATIC_KW@[0; 6) | 3 | STATIC_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | NAME@[6; 10) |
5 | IDENT@[7; 10) "FOO" | 5 | WHITESPACE@[6; 7) |
6 | IDENT@[7; 10) "FOO" | ||
6 | COLON@[10; 11) | 7 | COLON@[10; 11) |
7 | WHITESPACE@[11; 12) | 8 | WHITESPACE@[11; 12) |
8 | IDENT@[12; 15) "u32" | 9 | IDENT@[12; 15) "u32" |
@@ -17,8 +18,9 @@ FILE@[0; 47) | |||
17 | STATIC_KW@[21; 27) | 18 | STATIC_KW@[21; 27) |
18 | WHITESPACE@[27; 28) | 19 | WHITESPACE@[27; 28) |
19 | MUT_KW@[28; 31) | 20 | MUT_KW@[28; 31) |
20 | WHITESPACE@[31; 32) | 21 | NAME@[31; 35) |
21 | IDENT@[32; 35) "BAR" | 22 | WHITESPACE@[31; 32) |
23 | IDENT@[32; 35) "BAR" | ||
22 | COLON@[35; 36) | 24 | COLON@[35; 36) |
23 | WHITESPACE@[36; 37) | 25 | WHITESPACE@[36; 37) |
24 | IDENT@[37; 40) "i32" | 26 | IDENT@[37; 40) "i32" |
diff --git a/tests/data/parser/ok/0024_const_item.txt b/tests/data/parser/ok/0024_const_item.txt index 588e001f5..0f31d19d3 100644 --- a/tests/data/parser/ok/0024_const_item.txt +++ b/tests/data/parser/ok/0024_const_item.txt | |||
@@ -1,8 +1,9 @@ | |||
1 | FILE@[0; 46) | 1 | FILE@[0; 46) |
2 | CONST_ITEM@[0; 21) | 2 | CONST_ITEM@[0; 21) |
3 | CONST_KW@[0; 5) | 3 | CONST_KW@[0; 5) |
4 | WHITESPACE@[5; 6) | 4 | NAME@[5; 9) |
5 | IDENT@[6; 9) "FOO" | 5 | WHITESPACE@[5; 6) |
6 | IDENT@[6; 9) "FOO" | ||
6 | COLON@[9; 10) | 7 | COLON@[9; 10) |
7 | WHITESPACE@[10; 11) | 8 | WHITESPACE@[10; 11) |
8 | IDENT@[11; 14) "u32" | 9 | IDENT@[11; 14) "u32" |
@@ -17,8 +18,9 @@ FILE@[0; 46) | |||
17 | CONST_KW@[21; 26) | 18 | CONST_KW@[21; 26) |
18 | WHITESPACE@[26; 27) | 19 | WHITESPACE@[26; 27) |
19 | MUT_KW@[27; 30) | 20 | MUT_KW@[27; 30) |
20 | WHITESPACE@[30; 31) | 21 | NAME@[30; 34) |
21 | IDENT@[31; 34) "BAR" | 22 | WHITESPACE@[30; 31) |
23 | IDENT@[31; 34) "BAR" | ||
22 | COLON@[34; 35) | 24 | COLON@[34; 35) |
23 | WHITESPACE@[35; 36) | 25 | WHITESPACE@[35; 36) |
24 | IDENT@[36; 39) "u32" | 26 | IDENT@[36; 39) "u32" |