(name string)
| 1265 | } |
| 1266 | |
| 1267 | func (c *compiler) lookupVariable(name string) (int, bool) { |
| 1268 | for i := len(c.scopes) - 1; i >= 0; i-- { |
| 1269 | if c.scopes[i].variableName == name { |
| 1270 | return c.scopes[i].index, true |
| 1271 | } |
| 1272 | } |
| 1273 | return 0, false |
| 1274 | } |
| 1275 | |
| 1276 | func (c *compiler) ConditionalNode(node *ast.ConditionalNode) { |
| 1277 | c.compile(node.Cond) |