Macros returns a shallow copy of macros associated with the environment.
()
| 638 | |
| 639 | // Macros returns a shallow copy of macros associated with the environment. |
| 640 | func (e *Env) Macros() []Macro { |
| 641 | shallowCopy := make([]Macro, len(e.macros)) |
| 642 | copy(shallowCopy, e.macros) |
| 643 | return shallowCopy |
| 644 | } |
| 645 | |
| 646 | // HasValidator returns whether a specific ASTValidator has been configured in the environment. |
| 647 | func (e *Env) HasValidator(name string) bool { |