Skip to content

Commit da5900d

Browse files
authored
[DTW.3] (#1318)
- Inline type_arguments into type_argument_list - Tidy global_attribute_section, attribute_section & attribute_list - Merge in updated samples & tarball - Includes updated declaration_expression predicate Co-authored-by: Nigel-Ecma <[email protected]>
1 parent 6781d09 commit da5900d

File tree

154 files changed

+32996
-101290
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+32996
-101290
lines changed
Binary file not shown.

standard/attributes.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ global_attributes
167167
168168
global_attribute_section
169169
: '[' global_attribute_target_specifier attribute_list ']'
170-
| '[' global_attribute_target_specifier attribute_list ',' ']'
171170
;
172171
173172
global_attribute_target_specifier
@@ -184,7 +183,6 @@ attributes
184183
185184
attribute_section
186185
: '[' attribute_target_specifier? attribute_list ']'
187-
| '[' attribute_target_specifier? attribute_list ',' ']'
188186
;
189187
190188
attribute_target_specifier
@@ -197,7 +195,7 @@ attribute_target
197195
;
198196
199197
attribute_list
200-
: attribute (',' attribute)*
198+
: attribute (',' attribute)* ','?
201199
;
202200
203201
attribute

standard/types.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -534,13 +534,9 @@ Each argument in a type argument list is simply a *type*.
534534
535535
```ANTLR
536536
type_argument_list
537-
: '<' type_arguments '>'
537+
: '<' type_argument (',' type_argument)* '>'
538538
;
539539
540-
type_arguments
541-
: type_argument (',' type_argument)*
542-
;
543-
544540
type_argument
545541
: type
546542
| type_parameter nullable_type_annotation?

tools/GrammarTesting/Tests/Parsing/Samples/v6/AllInOneNoPreprocessor-v6-split/part-A/Reference/AllInOneNoPreprocessor-v6-part.tree.red.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
⎜ ⎜ ⎜ ⎜ ⎜ ⎜ type_argument_list
250250
⎜ ⎜ ⎜ ⎜ ⎜ ⎜ <
251251
⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎛
252-
⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ type_arguments
252+
⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ type_argument
253253
⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎛
254254
⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ integral_type
255255
⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ int

tools/GrammarTesting/Tests/Parsing/Samples/v6/AllInOneNoPreprocessor-v6-split/part-A/Reference/sample.stderr.txt

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(prog (compilation_unit (extern_alias_directive extern alias (identifier Foo) ;) (using_directive (using_namespace_directive using (namespace_name (identifier System)) ;)) (using_directive (using_namespace_directive using (namespace_name (namespace_or_type_name (namespace_or_type_name (namespace_or_type_name (identifier System)) . (identifier Collections)) . (identifier Generic))) ;)) (using_directive (using_namespace_directive using (namespace_name (namespace_or_type_name (namespace_or_type_name (identifier System)) . (identifier Linq))) ;)) (using_directive (using_namespace_directive using (namespace_name (namespace_or_type_name (namespace_or_type_name (namespace_or_type_name (identifier System)) . (identifier Linq)) . (identifier Expressions))) ;)) (using_directive (using_namespace_directive using (namespace_name (namespace_or_type_name (namespace_or_type_name (identifier System)) . (identifier Text))) ;)) (using_directive (using_alias_directive using (identifier M) = (namespace_or_type_name (namespace_or_type_name (identifier System)) . (identifier Math)) ;)) (using_directive (using_namespace_directive using (namespace_name (namespace_or_type_name (namespace_or_type_name (identifier ConsoleApplication2)) . (identifier Test))) ;)) (using_directive (using_alias_directive using (identifier X) = (namespace_or_type_name (identifier int1)) ;)) (using_directive (using_alias_directive using (identifier Y) = (namespace_or_type_name (namespace_or_type_name (identifier ABC)) . (identifier X) (type_argument_list < (type_argument (integral_type int)) >)) ;)) (using_directive (using_static_directive using static (type_name (namespace_or_type_name (namespace_or_type_name (identifier System)) . (identifier Math))) ;)) (using_directive (using_static_directive using static (type_name (namespace_or_type_name (namespace_or_type_name (identifier System)) . (identifier DayOfWeek))) ;)) (using_directive (using_static_directive using static (type_name (namespace_or_type_name (namespace_or_type_name (namespace_or_type_name (identifier System)) . (identifier Linq)) . (identifier Enumerable))) ;)) (global_attributes (global_attribute_section [ (global_attribute_target_specifier (global_attribute_target (identifier assembly)) :) (attribute_list (attribute (attribute_name (namespace_or_type_name (namespace_or_type_name (identifier System)) . (identifier Copyright))) (attribute_arguments ( (positional_argument_list (literal @"(C)"" \n\n2009")) )))) ]) (global_attribute_section [ (global_attribute_target_specifier (global_attribute_target (identifier module)) :) (attribute_list (attribute (attribute_name (namespace_or_type_name (namespace_or_type_name (identifier System)) . (identifier Copyright))) (attribute_arguments ( (positional_argument_list (additive_expression (additive_expression (literal "\n\t\u0123(C) \"2009")) + (multiplicative_expression (literal "\u0123")))) )))) ])) (namespace_member_declaration (class_declaration class (identifier TopLevelType) (class_base : (class_type (identifier IDisposable))) (class_body { (class_member_declaration (method_declaration method_modifiers (return_type void) (method_header (member_name (interface_type (identifier IDisposable)) . (identifier Dispose)) ( )) (method_body (block { })))) })))))

0 commit comments

Comments
 (0)