MCPcopy
hub / github.com/BishopFox/jsluice / IsValid

Method IsValid

tree.go:199–201  ·  view source on GitHub ↗

IsValid returns true if the *Node and the underlying tree-sitter node are both not nil.

()

Source from the content-addressed store, hash-verified

197// IsValid returns true if the *Node and the underlying
198// tree-sitter node are both not nil.
199func (n *Node) IsValid() bool {
200 return n != nil && n.node != nil
201}
202
203// RawString returns the raw JavaScript representation
204// of a string (i.e. escape sequences are left undecoded)

Callers 15

ChildByFieldNameMethod · 0.95
ChildMethod · 0.95
NamedChildMethod · 0.95
ChildCountMethod · 0.95
NamedChildCountMethod · 0.95
NextSiblingMethod · 0.95
NextNamedSiblingMethod · 0.95
PrevSiblingMethod · 0.95
PrevNamedSiblingMethod · 0.95
CollapsedStringMethod · 0.95
ParentMethod · 0.95
IsNamedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected