Expr returns the root ast.Expr value in the AST.
()
| 33 | |
| 34 | // Expr returns the root ast.Expr value in the AST. |
| 35 | func (a *AST) Expr() Expr { |
| 36 | if a == nil { |
| 37 | return nilExpr |
| 38 | } |
| 39 | return a.expr |
| 40 | } |
| 41 | |
| 42 | // SourceInfo returns the source metadata associated with the parse / type-check passes. |
| 43 | func (a *AST) SourceInfo() *SourceInfo { |