MCPcopy Create free account
hub / github.com/bytebase/bytebase / OmniAST

Struct OmniAST

backend/plugin/parser/plsql/omni.go:17–24  ·  view source on GitHub ↗

OmniAST wraps an omni AST node and implements the base.AST interface.

Source from the content-addressed store, hash-verified

15
16// OmniAST wraps an omni AST node and implements the base.AST interface.
17type 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.
27func (a *OmniAST) ASTStartPosition() *storepb.Position {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected