Documentation ¶
Index ¶
- func Identity(node node.Node) node.Node
- func NewSelector(name string) node.Node
- type Binary
- func (b *Binary) HasIdentifier() bool
- func (b *Binary) HasPlaceholder() bool
- func (b *Binary) Ident() *Ident
- func (b *Binary) Identifier() node.Node
- func (b *Binary) Normalize() *Binary
- func (b *Binary) Parenthesis() *Parenthesis
- func (b *Binary) Placeholder() *Placeholder
- func (b *Binary) Predicate() (node.Node, *Values, error)
- func (b *Binary) SelectorIdent(root string) *Ident
- func (b *Binary) Values() (*Values, error)
- func (b *Binary) Walk(...) error
- type Call
- type Case
- type Ident
- type Literal
- type Parenthesis
- type Placeholder
- type Qualify
- type Range
- type Raw
- type Selector
- type Star
- type Switch
- type Unary
- type Value
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Binary ¶
Binary represents binary expr
func (*Binary) HasIdentifier ¶ added in v0.3.0
HasIdentifier returns true if x or y opperand is identity
func (*Binary) HasPlaceholder ¶
HasPlaceholder returns true if x or y operand is placeholder
func (*Binary) Identifier ¶ added in v0.3.0
Identifier returns an identifier node or nil
func (*Binary) Parenthesis ¶
func (b *Binary) Parenthesis() *Parenthesis
Parenthesis returns parenthesis
func (*Binary) Placeholder ¶ added in v0.7.0
func (b *Binary) Placeholder() *Placeholder
Placeholder returns placeholder
func (*Binary) SelectorIdent ¶ added in v0.7.1
type Literal ¶
Literal represents a literal
func NewNumericLiteral ¶
NewNumericLiteral returns numeric literal
func NewStringLiteral ¶
NewStringLiteral returns string literal
type Parenthesis ¶
Parenthesis represents parenthesis expr
func NewParenthesis ¶
func NewParenthesis(raw string) *Parenthesis
NewParenthesis returns a parenthesis expr
type Placeholder ¶
Placeholder represetns a placeholder
func NewPlaceholder ¶
func NewPlaceholder(name string) *Placeholder
NewPlaceholder returns a placeholder
Click to show internal directories.
Click to hide internal directories.