Patch adds visitor to list of visitors what will be applied before compiling AST to bytecode.
(visitor ast.Visitor)
| 143 | |
| 144 | // Patch adds visitor to list of visitors what will be applied before compiling AST to bytecode. |
| 145 | func Patch(visitor ast.Visitor) Option { |
| 146 | return func(c *conf.Config) { |
| 147 | c.Visitors = append(c.Visitors, visitor) |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | // Function adds function to list of functions what will be available in expressions. |
| 152 | func Function(name string, fn func(params ...any) (any, error), types ...any) Option { |
no outgoing calls
searching dependent graphs…