Variables returns a shallow copy of the variables associated with the environment.
()
| 734 | |
| 735 | // Variables returns a shallow copy of the variables associated with the environment. |
| 736 | func (e *Env) Variables() []*decls.VariableDecl { |
| 737 | return slices.Clone(e.variables) |
| 738 | } |
| 739 | |
| 740 | // Macros returns a shallow copy of macros associated with the environment. |
| 741 | func (e *Env) Macros() []Macro { |