crash.software
Projects
Pull Requests
Issues
Builds
bearer
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
bearer
Files
🤬
Sign In
787a1116
ROOT
/
pkg
/
parser
/
parser.go
Search
History
512 lines
|
ISO-8859-1
|
10 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
Tree
language
:
*sitter.Language
fileInfo
:
*file.FileInfo
file
:
*file.Path
input
:
[]byte
sitter
:
*sitter.Tree
lineOffset
:
int
values
:
map[*sitter.Node]*values.Value
Node
tree
:
*Tree
sitter
:
*sitter.Node
NodeID
Captures
ParseBytes
(fileInfo *file.FileInfo, file *file.Path, input []byte, language *sitter.Language, lineOffset int)
:
(*Tree, error)
ParseFile
(fileInfo *file.FileInfo, file *file.Path, language *sitter.Language)
:
(*Tree, error)
ErrParentNotFound
ErrInChain
IsDescendant
(node *Node, parent *Node)
:
bool
QueryMustCompile
(language *sitter.Language, text string)
:
*sitter.Query
*Tree
Debug
()
:
string
File
()
:
*file.Path
Close
()
Query
(query *sitter.Query, onMatch func(captures Captures) error)
:
error
RootNode
()
:
*Node
Sitter
()
:
*sitter.Tree
QueryMustPass
(query *sitter.Query)
:
[]Captures
SetValues
(newValues map[*sitter.Node]*values.Value)
QueryConventional
(query *sitter.Query)
:
[]Captures
walkBottomUp
(onNode func(child *Node) error)
:
error
WalkBottomUp
(onNode func(child *Node) error)
:
error
Annotate
(populateValue func(node *Node, value *values.Value))
:
error
walkRootValues
(onValue func(node *Node))
:
error
WalkRootValues
(onValue func(node *Node))
:
error
wrap
(node *sitter.Node)
:
*Node
Wrap
(node *sitter.Node)
:
*Node
*Node
Debug
()
:
string
LineNumber
()
:
int
Source
(includeText bool)
:
source.Source
Content
()
:
string
SetValue
(value *values.Value)
ID
()
:
NodeID
Value
()
:
*values.Value
Type
()
:
string
IsNamed
()
:
bool
ChildByFieldName
(name string)
:
*Node
Parent
()
:
*Node
FindParent
(parentType string)
:
(*Node, error)
FirstChild
()
:
*Node
Child
(i int)
:
*Node
NamedChildCount
()
:
int
ChildCount
()
:
int
Sitter
()
:
*sitter.Node
Equal
(other *Node)
:
bool
FirstUnnamedChild
()
:
*Node
ChildValueParts
()
:
[]values.Part
EachPart
(onText func(text string) error, onChild func(child *Node) error)
:
error
TextParts
()
:
[]string
Query
(query *sitter.Query, onMatch func(captures Captures) error)
:
error
QueryConventional
(query *sitter.Query)
:
[]Captures
QueryMustPass
(query *sitter.Query)
:
(captures []Captures)
Tree
()
:
*Tree
Column
()
:
uint32
All occurrences
Please wait...
Page is in error, reload to recover