Ast representing the checked or unchecked expression, its source, and related metadata such as source position information.
| 47 | // Ast representing the checked or unchecked expression, its source, and related metadata such as |
| 48 | // source position information. |
| 49 | type Ast struct { |
| 50 | source Source |
| 51 | impl *celast.AST |
| 52 | // loadErr captures an error detected while loading the AST (e.g. an over-deep AST ingested via |
| 53 | // ParsedExprToAst / CheckedExprToAst) so it can be surfaced when the Ast is checked or planned |
| 54 | // instead of recursing into the checker or planner on adversarially deep input. |
| 55 | loadErr error |
| 56 | } |
| 57 | |
| 58 | // NativeRep converts the AST to a Go-native representation. |
| 59 | func (ast *Ast) NativeRep() *celast.AST { |
nothing calls this directly
no outgoing calls
no test coverage detected