diff options
author | Aleksey Kladov <[email protected]> | 2018-02-10 21:46:17 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-02-10 21:46:28 +0000 |
commit | b097090690f5edbe03f4aa9d042ba26c123699e4 (patch) | |
tree | 5bac76244148ce5b368bc8cb83a05cc184c452a7 /tests/data/parser/inline | |
parent | b814d931514cdc250f9156dabd874edf685569d0 (diff) |
G: more types
Diffstat (limited to 'tests/data/parser/inline')
-rw-r--r-- | tests/data/parser/inline/0014_type_item_type_params.txt | 7 | ||||
-rw-r--r-- | tests/data/parser/inline/0015_type_item.txt | 8 | ||||
-rw-r--r-- | tests/data/parser/inline/0016_type_item_where_clause.txt | 7 | ||||
-rw-r--r-- | tests/data/parser/inline/0017_paren_type.rs | 1 | ||||
-rw-r--r-- | tests/data/parser/inline/0017_paren_type.txt | 19 | ||||
-rw-r--r-- | tests/data/parser/inline/0018_unit_type.rs | 1 | ||||
-rw-r--r-- | tests/data/parser/inline/0018_unit_type.txt | 14 | ||||
-rw-r--r-- | tests/data/parser/inline/0019_singleton_tuple_type.rs | 1 | ||||
-rw-r--r-- | tests/data/parser/inline/0019_singleton_tuple_type.txt | 20 |
9 files changed, 70 insertions, 8 deletions
diff --git a/tests/data/parser/inline/0014_type_item_type_params.txt b/tests/data/parser/inline/0014_type_item_type_params.txt index ca32faa42..98a71414e 100644 --- a/tests/data/parser/inline/0014_type_item_type_params.txt +++ b/tests/data/parser/inline/0014_type_item_type_params.txt | |||
@@ -11,8 +11,9 @@ FILE@[0; 21) | |||
11 | R_ANGLE@[13; 14) | 11 | R_ANGLE@[13; 14) |
12 | WHITESPACE@[14; 15) | 12 | WHITESPACE@[14; 15) |
13 | EQ@[15; 16) | 13 | EQ@[15; 16) |
14 | WHITESPACE@[16; 17) | 14 | TUPLE_TYPE@[16; 19) |
15 | L_PAREN@[17; 18) | 15 | WHITESPACE@[16; 17) |
16 | R_PAREN@[18; 19) | 16 | L_PAREN@[17; 18) |
17 | R_PAREN@[18; 19) | ||
17 | SEMI@[19; 20) | 18 | SEMI@[19; 20) |
18 | WHITESPACE@[20; 21) | 19 | WHITESPACE@[20; 21) |
diff --git a/tests/data/parser/inline/0015_type_item.txt b/tests/data/parser/inline/0015_type_item.txt index 3818fe25d..602298546 100644 --- a/tests/data/parser/inline/0015_type_item.txt +++ b/tests/data/parser/inline/0015_type_item.txt | |||
@@ -6,7 +6,11 @@ FILE@[0; 16) | |||
6 | IDENT@[5; 8) "Foo" | 6 | IDENT@[5; 8) "Foo" |
7 | WHITESPACE@[8; 9) | 7 | WHITESPACE@[8; 9) |
8 | EQ@[9; 10) | 8 | EQ@[9; 10) |
9 | WHITESPACE@[10; 11) | 9 | PATH_TYPE@[10; 14) |
10 | IDENT@[11; 14) "Bar" | 10 | PATH@[10; 14) |
11 | PATH_SEGMENT@[10; 14) | ||
12 | NAME_REF@[10; 14) | ||
13 | WHITESPACE@[10; 11) | ||
14 | IDENT@[11; 14) "Bar" | ||
11 | SEMI@[14; 15) | 15 | SEMI@[14; 15) |
12 | WHITESPACE@[15; 16) | 16 | WHITESPACE@[15; 16) |
diff --git a/tests/data/parser/inline/0016_type_item_where_clause.txt b/tests/data/parser/inline/0016_type_item_where_clause.txt index 12bbc752a..ff20c6255 100644 --- a/tests/data/parser/inline/0016_type_item_where_clause.txt +++ b/tests/data/parser/inline/0016_type_item_where_clause.txt | |||
@@ -14,8 +14,9 @@ FILE@[0; 31) | |||
14 | IDENT@[20; 24) "Copy" | 14 | IDENT@[20; 24) "Copy" |
15 | WHITESPACE@[24; 25) | 15 | WHITESPACE@[24; 25) |
16 | EQ@[25; 26) | 16 | EQ@[25; 26) |
17 | WHITESPACE@[26; 27) | 17 | TUPLE_TYPE@[26; 29) |
18 | L_PAREN@[27; 28) | 18 | WHITESPACE@[26; 27) |
19 | R_PAREN@[28; 29) | 19 | L_PAREN@[27; 28) |
20 | R_PAREN@[28; 29) | ||
20 | SEMI@[29; 30) | 21 | SEMI@[29; 30) |
21 | WHITESPACE@[30; 31) | 22 | WHITESPACE@[30; 31) |
diff --git a/tests/data/parser/inline/0017_paren_type.rs b/tests/data/parser/inline/0017_paren_type.rs new file mode 100644 index 000000000..6e1b25101 --- /dev/null +++ b/tests/data/parser/inline/0017_paren_type.rs | |||
@@ -0,0 +1 @@ | |||
type T = (i32); | |||
diff --git a/tests/data/parser/inline/0017_paren_type.txt b/tests/data/parser/inline/0017_paren_type.txt new file mode 100644 index 000000000..6ef9c9190 --- /dev/null +++ b/tests/data/parser/inline/0017_paren_type.txt | |||
@@ -0,0 +1,19 @@ | |||
1 | FILE@[0; 16) | ||
2 | TYPE_ITEM@[0; 16) | ||
3 | TYPE_KW@[0; 4) | ||
4 | NAME@[4; 7) | ||
5 | WHITESPACE@[4; 5) | ||
6 | IDENT@[5; 6) "T" | ||
7 | WHITESPACE@[6; 7) | ||
8 | EQ@[7; 8) | ||
9 | PAREN_TYPE@[8; 14) | ||
10 | WHITESPACE@[8; 9) | ||
11 | L_PAREN@[9; 10) | ||
12 | PATH_TYPE@[10; 13) | ||
13 | PATH@[10; 13) | ||
14 | PATH_SEGMENT@[10; 13) | ||
15 | NAME_REF@[10; 13) | ||
16 | IDENT@[10; 13) "i32" | ||
17 | R_PAREN@[13; 14) | ||
18 | SEMI@[14; 15) | ||
19 | WHITESPACE@[15; 16) | ||
diff --git a/tests/data/parser/inline/0018_unit_type.rs b/tests/data/parser/inline/0018_unit_type.rs new file mode 100644 index 000000000..c039cf7d3 --- /dev/null +++ b/tests/data/parser/inline/0018_unit_type.rs | |||
@@ -0,0 +1 @@ | |||
type T = (); | |||
diff --git a/tests/data/parser/inline/0018_unit_type.txt b/tests/data/parser/inline/0018_unit_type.txt new file mode 100644 index 000000000..707b6e53e --- /dev/null +++ b/tests/data/parser/inline/0018_unit_type.txt | |||
@@ -0,0 +1,14 @@ | |||
1 | FILE@[0; 13) | ||
2 | TYPE_ITEM@[0; 13) | ||
3 | TYPE_KW@[0; 4) | ||
4 | NAME@[4; 7) | ||
5 | WHITESPACE@[4; 5) | ||
6 | IDENT@[5; 6) "T" | ||
7 | WHITESPACE@[6; 7) | ||
8 | EQ@[7; 8) | ||
9 | TUPLE_TYPE@[8; 11) | ||
10 | WHITESPACE@[8; 9) | ||
11 | L_PAREN@[9; 10) | ||
12 | R_PAREN@[10; 11) | ||
13 | SEMI@[11; 12) | ||
14 | WHITESPACE@[12; 13) | ||
diff --git a/tests/data/parser/inline/0019_singleton_tuple_type.rs b/tests/data/parser/inline/0019_singleton_tuple_type.rs new file mode 100644 index 000000000..cb66bad24 --- /dev/null +++ b/tests/data/parser/inline/0019_singleton_tuple_type.rs | |||
@@ -0,0 +1 @@ | |||
type T = (i32,); | |||
diff --git a/tests/data/parser/inline/0019_singleton_tuple_type.txt b/tests/data/parser/inline/0019_singleton_tuple_type.txt new file mode 100644 index 000000000..cca96e7ea --- /dev/null +++ b/tests/data/parser/inline/0019_singleton_tuple_type.txt | |||
@@ -0,0 +1,20 @@ | |||
1 | FILE@[0; 17) | ||
2 | TYPE_ITEM@[0; 17) | ||
3 | TYPE_KW@[0; 4) | ||
4 | NAME@[4; 7) | ||
5 | WHITESPACE@[4; 5) | ||
6 | IDENT@[5; 6) "T" | ||
7 | WHITESPACE@[6; 7) | ||
8 | EQ@[7; 8) | ||
9 | TUPLE_TYPE@[8; 15) | ||
10 | WHITESPACE@[8; 9) | ||
11 | L_PAREN@[9; 10) | ||
12 | PATH_TYPE@[10; 13) | ||
13 | PATH@[10; 13) | ||
14 | PATH_SEGMENT@[10; 13) | ||
15 | NAME_REF@[10; 13) | ||
16 | IDENT@[10; 13) "i32" | ||
17 | COMMA@[13; 14) | ||
18 | R_PAREN@[14; 15) | ||
19 | SEMI@[15; 16) | ||
20 | WHITESPACE@[16; 17) | ||