bae8f83298
The implementation of Variables will be identical for every Expression implementation since we just wrap our AST-walk-based "Variables" function to do the work. Rather than manually copy-pasting the declaration for each expression type, instead we'll generate this programmatically using "go generate". This will need to be re-run each time a new expression node type is added, in order to make it actually implement the Expression interface. |
||
---|---|---|
.. | ||
doc.go | ||
expression_vars_gen.go | ||
expression_vars.go | ||
expression.go | ||
file.go | ||
generate.go | ||
node.go | ||
structure.go | ||
variables.go | ||
walk.go |