Documentation ¶
Overview ¶
nolint: govet, golint
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AST ¶
type AST struct { Types []AnnotatedType Enums []Enum }
type AnnotatedEntry ¶
type AnnotatedEntry struct { Field DocString string Validations []Validation Transformations []Transformation }
func (*AnnotatedEntry) AppendDocString ¶
func (ae *AnnotatedEntry) AppendDocString(s string)
func (*AnnotatedEntry) AppendTransformation ¶
func (ae *AnnotatedEntry) AppendTransformation(v Transformation)
func (*AnnotatedEntry) AppendValidation ¶
func (ae *AnnotatedEntry) AppendValidation(v Validation)
func (*AnnotatedEntry) IsValidType ¶
func (ae *AnnotatedEntry) IsValidType(names map[string][]lexer.Position) error
IsValidType returns an error unless:
- The specified type starts with a lower case and exists in our base scalars map; or
- It starts with an upper case and exists as a Type or Enum in our AST
type AnnotatedType ¶
type AnnotatedType struct { Pos lexer.Position Name string Entries []AnnotatedEntry }
type Annotation ¶
type FixedSizedSliceType ¶
type MessageEntry ¶
type MessageEntry struct { Pos lexer.Position Annotation *Annotation `@@` Field *Field `| @@ ";"*` }
type Transformation ¶
type Type ¶
type Type struct { Pos lexer.Position Name string `"type" @Ident` Entries []*MessageEntry `"{" @@* "}"` }
type Validation ¶
Click to show internal directories.
Click to hide internal directories.