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

Method emitLocation

compiler/compiler.go:114–120  ·  view source on GitHub ↗
(loc file.Location, op Opcode, arg int)

Source from the content-addressed store, hash-verified

112}
113
114func (c *compiler) emitLocation(loc file.Location, op Opcode, arg int) int {
115 c.bytecode = append(c.bytecode, op)
116 current := len(c.bytecode)
117 c.arguments = append(c.arguments, arg)
118 c.locations = append(c.locations, loc)
119 return current
120}
121
122func (c *compiler) emit(op Opcode, args ...int) int {
123 arg := 0

Callers 2

emitMethod · 0.95
MemberNodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected