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.
4 lines
63 B
Go
4 lines
63 B
Go
package zclsyntax
|
|
|
|
//go:generate go run expression_vars_gen.go
|