(varName string, e ast.Expr)
| 446 | } |
| 447 | |
| 448 | func (c *coster) pushLocalVar(varName string, e ast.Expr) { |
| 449 | path := c.getPath(e) |
| 450 | // note: retrieve the entry size for the local variable based on the size of the binding expression |
| 451 | // since the binding expression could be a list or map, the entry size should also be propagated |
| 452 | entrySize := c.computeEntrySize(e) |
| 453 | c.localVars.push(varName, e, path, c.computeSize(e), entrySize) |
| 454 | } |
| 455 | |
| 456 | func (c *coster) peekLocalVar(varName string) (*localVar, bool) { |
| 457 | return c.localVars.peek(varName) |
no test coverage detected