02aafe4262
Also adjust parser testData
29 lines
424 B
Plaintext
29 lines
424 B
Plaintext
/**
|
|
## Annotations
|
|
*/
|
|
|
|
annotations
|
|
: (annotation | annotationList)*
|
|
;
|
|
|
|
annotation
|
|
: "@" (annotationUseSiteTarget ":")? unescapedAnnotation
|
|
;
|
|
|
|
annotationList
|
|
: "@" (annotationUseSiteTarget ":")? "[" unescapedAnnotation+ "]"
|
|
;
|
|
|
|
annotationUseSiteTarget
|
|
: "file"
|
|
: "field"
|
|
: "property"
|
|
: "get"
|
|
: "set"
|
|
: "param"
|
|
: "sparam"
|
|
;
|
|
|
|
unescapedAnnotation
|
|
: SimpleName{"."} typeArguments? valueArguments?
|
|
; |