Documentation
¶
Index ¶
- type DefineCursor
- type Model
- func (m *Model) CompactNode(node syntax.NodeID) Node
- func (m *Model) EnclosingFunction(node Node) Node
- func (m *Model) Inactive(node Node) bool
- func (m *Model) NewDefineCursor() *DefineCursor
- func (m *Model) OfKind(kind parser.Kind) []Node
- func (m *Model) Parent(node Node) Node
- func (m *Model) PointerNode(node *parser.Node) Node
- func (m *Model) Range(node Node) source.Range
- func (m *Model) Root() Node
- func (m *Model) Source() []byte
- func (m *Model) Token(index int) Token
- func (m *Model) TokenCount() int
- func (m *Model) Uncertain(node Node) bool
- type Node
- func (n Node) Child(index int) Node
- func (n Node) ChildCount() int
- func (n Node) End() int
- func (n Node) Field(name string) Node
- func (n Node) HasChildToken(kind token.Kind) bool
- func (n Node) HasError() bool
- func (n Node) ID() syntax.NodeID
- func (n Node) Kind() parser.Kind
- func (n Node) MissingSemi() bool
- func (n Node) Pointer() *parser.Node
- func (n Node) Range() source.Range
- func (n Node) Same(other Node) bool
- func (n Node) Start() int
- func (n Node) Text() string
- func (n Node) TokenKind() token.Kind
- func (n Node) TokenText() string
- func (n Node) Valid() bool
- type Token
- func (t Token) End() int
- func (t Token) EndPosition() token.Position
- func (t Token) EndsLine() bool
- func (t Token) Kind() token.Kind
- func (t Token) Origin() *token.Origin
- func (t Token) Start() int
- func (t Token) StartPosition() token.Position
- func (t Token) Text() string
- func (t Token) Valid() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefineCursor ¶
type DefineCursor struct {
// contains filtered or unexported fields
}
func (*DefineCursor) KnownDefinesAt ¶
func (c *DefineCursor) KnownDefinesAt(offset int) []string
func (*DefineCursor) KnownDefinesViewAt ¶
func (c *DefineCursor) KnownDefinesViewAt(offset int) []string
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func Compact ¶
func Compact(model *walk.CompactModel) *Model
func (*Model) EnclosingFunction ¶
func (*Model) NewDefineCursor ¶
func (m *Model) NewDefineCursor() *DefineCursor
func (*Model) TokenCount ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (Node) ChildCount ¶
func (Node) MissingSemi ¶
type Token ¶
type Token struct {
// contains filtered or unexported fields
}
func (Token) EndPosition ¶
func (Token) StartPosition ¶
Click to show internal directories.
Click to hide internal directories.