Documentation ¶
Index ¶
- type ArgumentNode
- func (n *ArgumentNode) Children() []Node
- func (n *ArgumentNode) End() int
- func (n *ArgumentNode) Filter(nt NodeType) []Node
- func (an *ArgumentNode) Name() *TokenNode
- func (an *ArgumentNode) Optional() bool
- func (n *ArgumentNode) Push(child Node)
- func (n *ArgumentNode) Start() int
- func (an *ArgumentNode) Type() NodeType
- func (an *ArgumentNode) TypeName() *TokenNode
- type DefinitionNode
- func (n *DefinitionNode) Children() []Node
- func (dn DefinitionNode) Comment() string
- func (n *DefinitionNode) End() int
- func (n *DefinitionNode) Filter(nt NodeType) []Node
- func (dn DefinitionNode) Left() *TokenNode
- func (dn DefinitionNode) Meta() []*DefinitionNode
- func (dn DefinitionNode) Optional() bool
- func (n *DefinitionNode) Push(child Node)
- func (dn DefinitionNode) Right() *TokenNode
- func (n *DefinitionNode) Start() int
- func (dn DefinitionNode) Type() NodeType
- type EnumNode
- func (n *EnumNode) Children() []Node
- func (en EnumNode) Comments() string
- func (n *EnumNode) End() int
- func (n *EnumNode) Filter(nt NodeType) []Node
- func (en EnumNode) Name() *TokenNode
- func (n *EnumNode) Push(child Node)
- func (n *EnumNode) Start() int
- func (en EnumNode) Type() NodeType
- func (en EnumNode) TypeName() *TokenNode
- func (en EnumNode) Values() []*DefinitionNode
- type ErrorNode
- type ImportNode
- func (n *ImportNode) Children() []Node
- func (n *ImportNode) End() int
- func (n *ImportNode) Filter(nt NodeType) []Node
- func (in ImportNode) Members() []*TokenNode
- func (in ImportNode) Path() *TokenNode
- func (n *ImportNode) Push(child Node)
- func (n *ImportNode) Start() int
- func (in ImportNode) Type() NodeType
- type MethodNode
- type Node
- type NodeType
- type Parser
- type RootNode
- func (n *RootNode) Children() []Node
- func (rn RootNode) Definitions() []*DefinitionNode
- func (n *RootNode) End() int
- func (rn RootNode) Enums() []*EnumNode
- func (rn RootNode) Errors() []*ErrorNode
- func (n *RootNode) Filter(nt NodeType) []Node
- func (rn RootNode) Imports() []*ImportNode
- func (n *RootNode) Push(child Node)
- func (rn RootNode) Services() []*ServiceNode
- func (n *RootNode) Start() int
- func (rn RootNode) Structs() []*StructNode
- func (rn RootNode) Type() NodeType
- type ServiceNode
- func (n *ServiceNode) Children() []Node
- func (sn ServiceNode) Comment() string
- func (n *ServiceNode) End() int
- func (n *ServiceNode) Filter(nt NodeType) []Node
- func (sn ServiceNode) Methods() []*MethodNode
- func (sn ServiceNode) Name() *TokenNode
- func (n *ServiceNode) Push(child Node)
- func (n *ServiceNode) Start() int
- func (sn ServiceNode) Type() NodeType
- type StructNode
- func (n *StructNode) Children() []Node
- func (mn *StructNode) Comment() string
- func (n *StructNode) End() int
- func (mn *StructNode) Fields() []*DefinitionNode
- func (n *StructNode) Filter(nt NodeType) []Node
- func (mn StructNode) Name() *TokenNode
- func (n *StructNode) Push(child Node)
- func (n *StructNode) Start() int
- func (mn *StructNode) Type() NodeType
- type TokenNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgumentNode ¶ added in v0.5.0
type ArgumentNode struct {
// contains filtered or unexported fields
}
func (*ArgumentNode) Name ¶ added in v0.5.0
func (an *ArgumentNode) Name() *TokenNode
func (*ArgumentNode) Optional ¶ added in v0.5.0
func (an *ArgumentNode) Optional() bool
func (*ArgumentNode) Type ¶ added in v0.5.0
func (an *ArgumentNode) Type() NodeType
func (*ArgumentNode) TypeName ¶ added in v0.5.0
func (an *ArgumentNode) TypeName() *TokenNode
type DefinitionNode ¶ added in v0.5.0
type DefinitionNode struct {
// contains filtered or unexported fields
}
func (DefinitionNode) Comment ¶ added in v0.14.3
func (dn DefinitionNode) Comment() string
func (DefinitionNode) Left ¶ added in v0.5.0
func (dn DefinitionNode) Left() *TokenNode
func (DefinitionNode) Meta ¶ added in v0.5.0
func (dn DefinitionNode) Meta() []*DefinitionNode
func (DefinitionNode) Optional ¶ added in v0.5.0
func (dn DefinitionNode) Optional() bool
func (DefinitionNode) Right ¶ added in v0.5.0
func (dn DefinitionNode) Right() *TokenNode
func (DefinitionNode) Type ¶ added in v0.5.0
func (dn DefinitionNode) Type() NodeType
type EnumNode ¶ added in v0.5.0
type EnumNode struct {
// contains filtered or unexported fields
}
func (EnumNode) Values ¶ added in v0.5.0
func (en EnumNode) Values() []*DefinitionNode
type ErrorNode ¶ added in v0.11.0
type ErrorNode struct {
// contains filtered or unexported fields
}
type ImportNode ¶ added in v0.5.0
type ImportNode struct {
// contains filtered or unexported fields
}
func (ImportNode) Members ¶ added in v0.5.0
func (in ImportNode) Members() []*TokenNode
func (ImportNode) Path ¶ added in v0.5.0
func (in ImportNode) Path() *TokenNode
func (ImportNode) Type ¶ added in v0.5.0
func (in ImportNode) Type() NodeType
type MethodNode ¶ added in v0.5.0
type MethodNode struct {
// contains filtered or unexported fields
}
func (*MethodNode) Comment ¶ added in v0.14.3
func (mn *MethodNode) Comment() string
func (*MethodNode) Inputs ¶ added in v0.5.0
func (mn *MethodNode) Inputs() []*ArgumentNode
func (*MethodNode) Name ¶ added in v0.5.0
func (mn *MethodNode) Name() *TokenNode
func (*MethodNode) Outputs ¶ added in v0.5.0
func (mn *MethodNode) Outputs() []*ArgumentNode
func (*MethodNode) Proxy ¶ added in v0.5.0
func (mn *MethodNode) Proxy() bool
func (*MethodNode) StreamInput ¶ added in v0.5.0
func (mn *MethodNode) StreamInput() bool
func (*MethodNode) StreamOutput ¶ added in v0.5.0
func (mn *MethodNode) StreamOutput() bool
type NodeType ¶ added in v0.5.0
type NodeType uint
NodeType represents the type of a parser tree node.
type RootNode ¶ added in v0.5.0
type RootNode struct {
// contains filtered or unexported fields
}
func (RootNode) Definitions ¶ added in v0.5.0
func (rn RootNode) Definitions() []*DefinitionNode
func (RootNode) Imports ¶ added in v0.5.0
func (rn RootNode) Imports() []*ImportNode
func (RootNode) Services ¶ added in v0.5.0
func (rn RootNode) Services() []*ServiceNode
func (RootNode) Structs ¶ added in v0.9.0
func (rn RootNode) Structs() []*StructNode
type ServiceNode ¶ added in v0.5.0
type ServiceNode struct {
// contains filtered or unexported fields
}
func (ServiceNode) Comment ¶ added in v0.14.3
func (sn ServiceNode) Comment() string
func (ServiceNode) Methods ¶ added in v0.5.0
func (sn ServiceNode) Methods() []*MethodNode
func (ServiceNode) Name ¶ added in v0.5.0
func (sn ServiceNode) Name() *TokenNode
func (ServiceNode) Type ¶ added in v0.5.0
func (sn ServiceNode) Type() NodeType
type StructNode ¶ added in v0.9.0
type StructNode struct {
// contains filtered or unexported fields
}
func (*StructNode) Comment ¶ added in v0.14.3
func (mn *StructNode) Comment() string
func (*StructNode) Fields ¶ added in v0.9.0
func (mn *StructNode) Fields() []*DefinitionNode
func (StructNode) Name ¶ added in v0.9.0
func (mn StructNode) Name() *TokenNode
func (*StructNode) Type ¶ added in v0.9.0
func (mn *StructNode) Type() NodeType
Click to show internal directories.
Click to hide internal directories.