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

Method endScope

compiler/compiler.go:1263–1265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1261}
1262
1263func (c *compiler) endScope() {
1264 c.scopes = c.scopes[:len(c.scopes)-1]
1265}
1266
1267func (c *compiler) lookupVariable(name string) (int, bool) {
1268 for i := len(c.scopes) - 1; i >= 0; i-- {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected