NewCheckedAST wraps an parsed AST and augments it with type and reference metadata.
(parsed *AST, typeMap map[int64]*types.Type, refMap map[int64]*ReferenceInfo)
| 119 | |
| 120 | // NewCheckedAST wraps an parsed AST and augments it with type and reference metadata. |
| 121 | func NewCheckedAST(parsed *AST, typeMap map[int64]*types.Type, refMap map[int64]*ReferenceInfo) *AST { |
| 122 | return &AST{ |
| 123 | expr: parsed.Expr(), |
| 124 | sourceInfo: parsed.SourceInfo(), |
| 125 | typeMap: typeMap, |
| 126 | refMap: refMap, |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | // Copy creates a deep copy of the Expr and SourceInfo values in the input AST. |
| 131 | // |