Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Argument ¶
type Argument struct { Indentation string `@('\n' (' '|'\t')+)` Identifiers []Identifier `@@+` }
type Docstring ¶
type Docstring struct { Arguments []Argument `(@@|` // contains filtered or unexported fields }
Docstring is both used as the grammar and the tree representation of the abstract syntactic structure of a doc string.
func (*Docstring) Identifiers ¶
func (d *Docstring) Identifiers(name string) (identifiers []Identifier)
Identifiers returns all identifiers of an argument if any of them match the given value.
type Identifier ¶
func (*Identifier) NameAsCamelCase ¶
func (i *Identifier) NameAsCamelCase() string
NameAsCamelCase returns the identifier's name as camel case. TODO(celicoo): improve this.
Click to show internal directories.
Click to hide internal directories.