diff options
author | Aleksey Kladov <[email protected]> | 2018-01-07 09:32:29 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-01-07 09:32:29 +0000 |
commit | efcfaae34ac7a54e858aad82e6503a7c69d6c550 (patch) | |
tree | 611b74d833d3e852f0fe271db3faebd4e865c097 /tests/data/parser/ok | |
parent | f797c81155e9b7371b24801efac3fcbd236fc9ab (diff) |
Tests for partial parse
Diffstat (limited to 'tests/data/parser/ok')
-rw-r--r-- | tests/data/parser/ok/0000_empty.rs | 0 | ||||
-rw-r--r-- | tests/data/parser/ok/0000_empty.txt | 1 | ||||
-rw-r--r-- | tests/data/parser/ok/0001_struct_item.rs | 3 | ||||
-rw-r--r-- | tests/data/parser/ok/0001_struct_item.txt | 9 | ||||
-rw-r--r-- | tests/data/parser/ok/0002_struct_item_field.rs | 3 | ||||
-rw-r--r-- | tests/data/parser/ok/0002_struct_item_field.txt | 15 |
6 files changed, 31 insertions, 0 deletions
diff --git a/tests/data/parser/ok/0000_empty.rs b/tests/data/parser/ok/0000_empty.rs new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/data/parser/ok/0000_empty.rs | |||
diff --git a/tests/data/parser/ok/0000_empty.txt b/tests/data/parser/ok/0000_empty.txt new file mode 100644 index 000000000..54be3e7bc --- /dev/null +++ b/tests/data/parser/ok/0000_empty.txt | |||
@@ -0,0 +1 @@ | |||
FILE@[0; 0) | |||
diff --git a/tests/data/parser/ok/0001_struct_item.rs b/tests/data/parser/ok/0001_struct_item.rs new file mode 100644 index 000000000..d3a8c1d23 --- /dev/null +++ b/tests/data/parser/ok/0001_struct_item.rs | |||
@@ -0,0 +1,3 @@ | |||
1 | struct S { | ||
2 | |||
3 | } \ No newline at end of file | ||
diff --git a/tests/data/parser/ok/0001_struct_item.txt b/tests/data/parser/ok/0001_struct_item.txt new file mode 100644 index 000000000..f599e9d2c --- /dev/null +++ b/tests/data/parser/ok/0001_struct_item.txt | |||
@@ -0,0 +1,9 @@ | |||
1 | FILE@[0; 13) | ||
2 | STRUCT_ITEM@[0; 13) | ||
3 | STRUCT_KW@[0; 6) | ||
4 | WHITESPACE@[6; 7) | ||
5 | IDENT@[7; 8) | ||
6 | WHITESPACE@[8; 9) | ||
7 | L_CURLY@[9; 10) | ||
8 | WHITESPACE@[10; 12) | ||
9 | R_CURLY@[12; 13) | ||
diff --git a/tests/data/parser/ok/0002_struct_item_field.rs b/tests/data/parser/ok/0002_struct_item_field.rs new file mode 100644 index 000000000..cc3866d25 --- /dev/null +++ b/tests/data/parser/ok/0002_struct_item_field.rs | |||
@@ -0,0 +1,3 @@ | |||
1 | struct S { | ||
2 | foo: u32 | ||
3 | } \ No newline at end of file | ||
diff --git a/tests/data/parser/ok/0002_struct_item_field.txt b/tests/data/parser/ok/0002_struct_item_field.txt new file mode 100644 index 000000000..87ab3f7a9 --- /dev/null +++ b/tests/data/parser/ok/0002_struct_item_field.txt | |||
@@ -0,0 +1,15 @@ | |||
1 | FILE@[0; 25) | ||
2 | STRUCT_ITEM@[0; 25) | ||
3 | STRUCT_KW@[0; 6) | ||
4 | WHITESPACE@[6; 7) | ||
5 | IDENT@[7; 8) | ||
6 | WHITESPACE@[8; 9) | ||
7 | L_CURLY@[9; 10) | ||
8 | STRUCT_FIELD@[10; 24) | ||
9 | WHITESPACE@[10; 15) | ||
10 | IDENT@[15; 18) | ||
11 | COLON@[18; 19) | ||
12 | WHITESPACE@[19; 20) | ||
13 | IDENT@[20; 23) | ||
14 | WHITESPACE@[23; 24) | ||
15 | R_CURLY@[24; 25) | ||