diff options
author | Aleksey Kladov <[email protected]> | 2018-02-10 11:04:31 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-02-10 11:04:31 +0000 |
commit | 3c9d8ff42357711775c3aeb3af03f528ee779932 (patch) | |
tree | 57266f107334bde65ccc0e9902fb7cffdec6990e /tests/data/parser/inline | |
parent | fc0a9e266b9d663b1eeca3963495c68ca3384be2 (diff) |
G: names for fns
Diffstat (limited to 'tests/data/parser/inline')
-rw-r--r-- | tests/data/parser/inline/0001_const_unsafe_fn.txt | 5 | ||||
-rw-r--r-- | tests/data/parser/inline/0002_const_fn.txt | 5 | ||||
-rw-r--r-- | tests/data/parser/inline/0004_extern_fn.txt | 5 | ||||
-rw-r--r-- | tests/data/parser/inline/0011_unsafe_fn.txt | 5 | ||||
-rw-r--r-- | tests/data/parser/inline/0012_unsafe_extern_fn.txt | 5 | ||||
-rw-r--r-- | tests/data/parser/inline/0013_unsafe_block_in_mod.txt | 10 |
6 files changed, 21 insertions, 14 deletions
diff --git a/tests/data/parser/inline/0001_const_unsafe_fn.txt b/tests/data/parser/inline/0001_const_unsafe_fn.txt index 1f0865cb0..59bf89ddb 100644 --- a/tests/data/parser/inline/0001_const_unsafe_fn.txt +++ b/tests/data/parser/inline/0001_const_unsafe_fn.txt | |||
@@ -5,8 +5,9 @@ FILE@[0; 25) | |||
5 | UNSAFE_KW@[6; 12) | 5 | UNSAFE_KW@[6; 12) |
6 | WHITESPACE@[12; 13) | 6 | WHITESPACE@[12; 13) |
7 | FN_KW@[13; 15) | 7 | FN_KW@[13; 15) |
8 | WHITESPACE@[15; 16) | 8 | NAME@[15; 19) |
9 | IDENT@[16; 19) "foo" | 9 | WHITESPACE@[15; 16) |
10 | IDENT@[16; 19) "foo" | ||
10 | L_PAREN@[19; 20) | 11 | L_PAREN@[19; 20) |
11 | R_PAREN@[20; 21) | 12 | R_PAREN@[20; 21) |
12 | WHITESPACE@[21; 22) | 13 | WHITESPACE@[21; 22) |
diff --git a/tests/data/parser/inline/0002_const_fn.txt b/tests/data/parser/inline/0002_const_fn.txt index 2d360d78b..2e9d18f7f 100644 --- a/tests/data/parser/inline/0002_const_fn.txt +++ b/tests/data/parser/inline/0002_const_fn.txt | |||
@@ -3,8 +3,9 @@ FILE@[0; 18) | |||
3 | CONST_KW@[0; 5) | 3 | CONST_KW@[0; 5) |
4 | WHITESPACE@[5; 6) | 4 | WHITESPACE@[5; 6) |
5 | FN_KW@[6; 8) | 5 | FN_KW@[6; 8) |
6 | WHITESPACE@[8; 9) | 6 | NAME@[8; 12) |
7 | IDENT@[9; 12) "foo" | 7 | WHITESPACE@[8; 9) |
8 | IDENT@[9; 12) "foo" | ||
8 | L_PAREN@[12; 13) | 9 | L_PAREN@[12; 13) |
9 | R_PAREN@[13; 14) | 10 | R_PAREN@[13; 14) |
10 | WHITESPACE@[14; 15) | 11 | WHITESPACE@[14; 15) |
diff --git a/tests/data/parser/inline/0004_extern_fn.txt b/tests/data/parser/inline/0004_extern_fn.txt index 096c3bf4f..70a909ccf 100644 --- a/tests/data/parser/inline/0004_extern_fn.txt +++ b/tests/data/parser/inline/0004_extern_fn.txt | |||
@@ -4,8 +4,9 @@ FILE@[0; 19) | |||
4 | EXTERN_KW@[0; 6) | 4 | EXTERN_KW@[0; 6) |
5 | WHITESPACE@[6; 7) | 5 | WHITESPACE@[6; 7) |
6 | FN_KW@[7; 9) | 6 | FN_KW@[7; 9) |
7 | WHITESPACE@[9; 10) | 7 | NAME@[9; 13) |
8 | IDENT@[10; 13) "foo" | 8 | WHITESPACE@[9; 10) |
9 | IDENT@[10; 13) "foo" | ||
9 | L_PAREN@[13; 14) | 10 | L_PAREN@[13; 14) |
10 | R_PAREN@[14; 15) | 11 | R_PAREN@[14; 15) |
11 | WHITESPACE@[15; 16) | 12 | WHITESPACE@[15; 16) |
diff --git a/tests/data/parser/inline/0011_unsafe_fn.txt b/tests/data/parser/inline/0011_unsafe_fn.txt index 23eca1d65..ed790fe22 100644 --- a/tests/data/parser/inline/0011_unsafe_fn.txt +++ b/tests/data/parser/inline/0011_unsafe_fn.txt | |||
@@ -3,8 +3,9 @@ FILE@[0; 19) | |||
3 | UNSAFE_KW@[0; 6) | 3 | UNSAFE_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
5 | FN_KW@[7; 9) | 5 | FN_KW@[7; 9) |
6 | WHITESPACE@[9; 10) | 6 | NAME@[9; 13) |
7 | IDENT@[10; 13) "foo" | 7 | WHITESPACE@[9; 10) |
8 | IDENT@[10; 13) "foo" | ||
8 | L_PAREN@[13; 14) | 9 | L_PAREN@[13; 14) |
9 | R_PAREN@[14; 15) | 10 | R_PAREN@[14; 15) |
10 | WHITESPACE@[15; 16) | 11 | WHITESPACE@[15; 16) |
diff --git a/tests/data/parser/inline/0012_unsafe_extern_fn.txt b/tests/data/parser/inline/0012_unsafe_extern_fn.txt index 547cb499d..3c8a15d12 100644 --- a/tests/data/parser/inline/0012_unsafe_extern_fn.txt +++ b/tests/data/parser/inline/0012_unsafe_extern_fn.txt | |||
@@ -8,8 +8,9 @@ FILE@[0; 30) | |||
8 | STRING@[14; 17) | 8 | STRING@[14; 17) |
9 | WHITESPACE@[17; 18) | 9 | WHITESPACE@[17; 18) |
10 | FN_KW@[18; 20) | 10 | FN_KW@[18; 20) |
11 | WHITESPACE@[20; 21) | 11 | NAME@[20; 24) |
12 | IDENT@[21; 24) "foo" | 12 | WHITESPACE@[20; 21) |
13 | IDENT@[21; 24) "foo" | ||
13 | L_PAREN@[24; 25) | 14 | L_PAREN@[24; 25) |
14 | R_PAREN@[25; 26) | 15 | R_PAREN@[25; 26) |
15 | WHITESPACE@[26; 27) | 16 | WHITESPACE@[26; 27) |
diff --git a/tests/data/parser/inline/0013_unsafe_block_in_mod.txt b/tests/data/parser/inline/0013_unsafe_block_in_mod.txt index 2e319be73..305e3058d 100644 --- a/tests/data/parser/inline/0013_unsafe_block_in_mod.txt +++ b/tests/data/parser/inline/0013_unsafe_block_in_mod.txt | |||
@@ -1,8 +1,9 @@ | |||
1 | FILE@[0; 33) | 1 | FILE@[0; 33) |
2 | FN_ITEM@[0; 11) | 2 | FN_ITEM@[0; 11) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | NAME@[2; 6) |
5 | IDENT@[3; 6) "foo" | 5 | WHITESPACE@[2; 3) |
6 | IDENT@[3; 6) "foo" | ||
6 | L_PAREN@[6; 7) | 7 | L_PAREN@[6; 7) |
7 | R_PAREN@[7; 8) | 8 | R_PAREN@[7; 8) |
8 | L_CURLY@[8; 9) | 9 | L_CURLY@[8; 9) |
@@ -18,8 +19,9 @@ FILE@[0; 33) | |||
18 | WHITESPACE@[21; 22) | 19 | WHITESPACE@[21; 22) |
19 | FN_ITEM@[22; 33) | 20 | FN_ITEM@[22; 33) |
20 | FN_KW@[22; 24) | 21 | FN_KW@[22; 24) |
21 | WHITESPACE@[24; 25) | 22 | NAME@[24; 28) |
22 | IDENT@[25; 28) "bar" | 23 | WHITESPACE@[24; 25) |
24 | IDENT@[25; 28) "bar" | ||
23 | L_PAREN@[28; 29) | 25 | L_PAREN@[28; 29) |
24 | R_PAREN@[29; 30) | 26 | R_PAREN@[29; 30) |
25 | L_CURLY@[30; 31) | 27 | L_CURLY@[30; 31) |