/** | |
## Annotations | |
*/ | |
annotations | |
: (annotation | annotationList)* | |
; | |
annotation | |
: "@" (annotationUseSiteTarget ":")? unescapedAnnotation | |
; | |
annotationList | |
: "@" (annotationUseSiteTarget ":")? "[" unescapedAnnotation+ "]" | |
; | |
annotationUseSiteTarget | |
: "file" | |
: "field" | |
: "property" | |
: "get" | |
: "set" | |
: "param" | |
: "sparam" | |
; | |
unescapedAnnotation | |
: SimpleName{"."} typeArguments? valueArguments? | |
; |