MCPcopy Create free account
hub / github.com/expr-lang/expr / Node

Interface Node

ast/node.go:15–23  ·  view source on GitHub ↗

Node represents items of abstract syntax tree.

Source from the content-addressed store, hash-verified

13
14// Node represents items of abstract syntax tree.
15type Node interface {
16 Location() file.Location
17 SetLocation(file.Location)
18 Nature() *nature.Nature
19 SetNature(nature.Nature)
20 Type() reflect.Type
21 SetType(reflect.Type)
22 String() string
23}
24
25// Patch replaces the node with a new one.
26// Location information is preserved.

Callers 44

emitMethod · 0.65
MemberNodeMethod · 0.65
errorMethod · 0.65
checkArgumentsMethod · 0.65
PatchFunction · 0.65
TestWithTimezone_nowFunction · 0.65
VisitMethod · 0.65
parseSecondaryMethod · 0.95
createNodeMethod · 0.65
createMemberNodeMethod · 0.65
PatchFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…