Variables returns a shallow copy of the variables associated with the environment.
()
| 658 | |
| 659 | // Variables returns a shallow copy of the variables associated with the environment. |
| 660 | func (e *Env) Variables() []*decls.VariableDecl { |
| 661 | shallowCopy := make([]*decls.VariableDecl, len(e.variables)) |
| 662 | copy(shallowCopy, e.variables) |
| 663 | return shallowCopy |
| 664 | } |
| 665 | |
| 666 | // Macros returns a shallow copy of macros associated with the environment. |
| 667 | func (e *Env) Macros() []Macro { |