Variables returns a shallow copy of the variables associated with the environment.
()
| 631 | |
| 632 | // Variables returns a shallow copy of the variables associated with the environment. |
| 633 | func (e *Env) Variables() []*decls.VariableDecl { |
| 634 | shallowCopy := make([]*decls.VariableDecl, len(e.variables)) |
| 635 | copy(shallowCopy, e.variables) |
| 636 | return shallowCopy |
| 637 | } |
| 638 | |
| 639 | // Macros returns a shallow copy of macros associated with the environment. |
| 640 | func (e *Env) Macros() []Macro { |