Documentation
¶
Index ¶
- func FindCommentLocationCommentGroup(fileNode *ast.File, fileSet *token.FileSet, pos token.Pos) *ast.CommentGroup
- func FindDocLocationCommentGroup(fileNode *ast.File, fileSet *token.FileSet, pos token.Pos) *ast.CommentGroup
- func ParseAnnotation(fileName string, text string) (*api.Annotations, error)
- func ParseFile(filename string, typeMaps map[api.AnnotationType][]string) (result []*api.TypedAnnotation, packageName string, e error)
- type Annotation
- type AnnotationExtend
- type AnnotationParam
- type Annotations
- type ClosedBracket
- type ClosedParenthesis
- type Comment
- type Extends
- type Key
- type Name
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAnnotation ¶
func ParseAnnotation(fileName string, text string) (*api.Annotations, error)
func ParseFile ¶
func ParseFile(filename string, typeMaps map[api.AnnotationType][]string) (result []*api.TypedAnnotation, packageName string, e error)
Types ¶
type Annotation ¶
type AnnotationExtend ¶
type AnnotationExtend struct {
Pos lexer.Position
Doc []*Comment `@@*`
Name Name `@@`
Values []structure.ValueWrapper `("(" @@* ")")?`
Value structure.ValueWrapper `("=" @@)? ","?`
Comment *Comment `@@?`
}
type AnnotationParam ¶
type Annotations ¶
type Annotations struct {
Annotations []*Annotation `@@*`
}
type ClosedBracket ¶
type ClosedParenthesis ¶
type Extends ¶
type Extends struct {
List []*AnnotationExtend `"{" @@*`
ClosedBracket ClosedBracket `@@`
}
type Params ¶
type Params struct {
List []*AnnotationParam `"(" @@*`
ClosedParenthesis ClosedParenthesis `@@`
}
Click to show internal directories.
Click to hide internal directories.