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

Method addVariable

compiler/compiler.go:169–173  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

167}
168
169func (c *compiler) addVariable(name string) int {
170 c.variables++
171 c.debugInfo[fmt.Sprintf("var_%d", c.variables-1)] = name
172 return c.variables - 1
173}
174
175// emitFunction adds builtin.Function.Func to the program.functions and emits call opcode.
176func (c *compiler) emitFunction(fn *builtin.Function, argsLen int) {

Callers 1

Calls 1

SprintfMethod · 0.80

Tested by

no test coverage detected