aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/tests/data/parser/ok
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-22 14:46:42 +0100
committerAleksey Kladov <[email protected]>2018-08-22 14:46:42 +0100
commit8e3bec11ebd1fce78701670cf9189b5a9d0d68f8 (patch)
tree16066a9bed666d0176bfa656a310fe9a264af53c /crates/libsyntax2/tests/data/parser/ok
parent55896aedb16e9eae6309bf129d04a75e6d26530d (diff)
TypeParamList Owner
Diffstat (limited to 'crates/libsyntax2/tests/data/parser/ok')
-rw-r--r--crates/libsyntax2/tests/data/parser/ok/0001_struct_item.rs6
-rw-r--r--crates/libsyntax2/tests/data/parser/ok/0001_struct_item.txt37
2 files changed, 34 insertions, 9 deletions
diff --git a/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.rs b/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.rs
index d3a8c1d23..512aeb3e7 100644
--- a/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.rs
+++ b/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.rs
@@ -1,3 +1,3 @@
1struct S { 1struct S<T: Copy> {
2 2 f: T,
3} \ No newline at end of file 3}
diff --git a/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.txt b/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.txt
index 798c8fd37..cfe128971 100644
--- a/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.txt
+++ b/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.txt
@@ -1,10 +1,35 @@
1FILE@[0; 13) 1FILE@[0; 32)
2 STRUCT_DEF@[0; 13) 2 STRUCT_DEF@[0; 31)
3 STRUCT_KW@[0; 6) 3 STRUCT_KW@[0; 6)
4 WHITESPACE@[6; 7) 4 WHITESPACE@[6; 7)
5 NAME@[7; 8) 5 NAME@[7; 8)
6 IDENT@[7; 8) "S" 6 IDENT@[7; 8) "S"
7 WHITESPACE@[8; 9) 7 TYPE_PARAM_LIST@[8; 17)
8 L_CURLY@[9; 10) 8 L_ANGLE@[8; 9)
9 WHITESPACE@[10; 12) 9 TYPE_PARAM@[9; 16)
10 R_CURLY@[12; 13) 10 NAME@[9; 10)
11 IDENT@[9; 10) "T"
12 COLON@[10; 11)
13 WHITESPACE@[11; 12)
14 PATH@[12; 16)
15 PATH_SEGMENT@[12; 16)
16 NAME_REF@[12; 16)
17 IDENT@[12; 16) "Copy"
18 R_ANGLE@[16; 17)
19 WHITESPACE@[17; 18)
20 L_CURLY@[18; 19)
21 WHITESPACE@[19; 24)
22 NAMED_FIELD@[24; 28)
23 NAME@[24; 25)
24 IDENT@[24; 25) "f"
25 COLON@[25; 26)
26 WHITESPACE@[26; 27)
27 PATH_TYPE@[27; 28)
28 PATH@[27; 28)
29 PATH_SEGMENT@[27; 28)
30 NAME_REF@[27; 28)
31 IDENT@[27; 28) "T"
32 COMMA@[28; 29)
33 WHITESPACE@[29; 30)
34 R_CURLY@[30; 31)
35 WHITESPACE@[31; 32)