MCPcopy
hub / github.com/expr-lang/expr / nodeParent

Method nodeParent

compiler/compiler.go:107–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107func (c *compiler) nodeParent() ast.Node {
108 if len(c.nodes) > 1 {
109 return c.nodes[len(c.nodes)-2]
110 }
111 return nil
112}
113
114func (c *compiler) emitLocation(loc file.Location, op Opcode, arg int) int {
115 c.bytecode = append(c.bytecode, op)

Callers 1

ChainNodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected