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

Method emitPush

compiler/compiler.go:137–139  ·  view source on GitHub ↗
(value any)

Source from the content-addressed store, hash-verified

135}
136
137func (c *compiler) emitPush(value any) int {
138 return c.emit(OpPush, c.addConstant(value))
139}
140
141func (c *compiler) addConstant(constant any) int {
142 indexable := true

Callers 9

IntegerNodeMethod · 0.95
FloatNodeMethod · 0.95
StringNodeMethod · 0.95
BytesNodeMethod · 0.95
ConstantNodeMethod · 0.95
SliceNodeMethod · 0.95
BuiltinNodeMethod · 0.95
ArrayNodeMethod · 0.95
MapNodeMethod · 0.95

Calls 2

emitMethod · 0.95
addConstantMethod · 0.95

Tested by

no test coverage detected