Short annotations supported in parser for toplevel declarations
Error recovery tests fail
This commit is contained in:
@@ -7,9 +7,10 @@ annotations
|
||||
;
|
||||
|
||||
annotation
|
||||
: "[" annotationEntry{","} "]"
|
||||
: "[" annotationEntry+ "]"
|
||||
: annotationEntry
|
||||
;
|
||||
|
||||
annotationEntry
|
||||
: SimpleName{"."} (valueArguments | "=" expression)?
|
||||
: SimpleName{"."} typeArguments? valueArguments?
|
||||
;
|
||||
@@ -43,7 +43,7 @@ simpleUserType
|
||||
;
|
||||
|
||||
optionalProjection
|
||||
: modifiers
|
||||
: varianceAnnotation
|
||||
;
|
||||
|
||||
functionType
|
||||
|
||||
Reference in New Issue
Block a user