OmniAST wraps an omni AST node and implements the base.AST interface.
| 15 | |
| 16 | // OmniAST wraps an omni AST node and implements the base.AST interface. |
| 17 | type OmniAST struct { |
| 18 | // Node is the omni AST node (e.g. *ast.SelectStmt, *ast.CreateTableStmt). |
| 19 | Node ast.Node |
| 20 | // Text is the original SQL text of this statement. |
| 21 | Text string |
| 22 | // StartPosition is the 1-based position where this statement starts. |
| 23 | StartPosition *storepb.Position |
| 24 | } |
| 25 | |
| 26 | // ASTStartPosition implements base.AST. |
| 27 | func (a *OmniAST) ASTStartPosition() *storepb.Position { |
nothing calls this directly
no outgoing calls
no test coverage detected