NewInlineVariableWithAlias declares a variable name to be replaced by a checked expression. If the variable occurs more than once, the provided alias will be used to replace the expressions where the variable name occurs.
(name, alias string, definition *Ast)
| 60 | // If the variable occurs more than once, the provided alias will be used to replace the expressions |
| 61 | // where the variable name occurs. |
| 62 | func NewInlineVariableWithAlias(name, alias string, definition *Ast) *InlineVariable { |
| 63 | return &InlineVariable{name: name, alias: alias, def: definition.NativeRep()} |
| 64 | } |
| 65 | |
| 66 | // NewInliningOptimizer creates and optimizer which replaces variables with expression definitions. |
| 67 | // |