Documentation ¶
Index ¶
- func AddDefaultSource(ctx context.Context, seq *dag.Seq, source *data.Source, ...) error
- func Analyze(ctx context.Context, seq ast.Seq, source *data.Source, ...) (dag.Seq, error)
- func AnalyzeAddSource(ctx context.Context, seq ast.Seq, source *data.Source, ...) (dag.Seq, error)
- func DotExprToFieldPath(e ast.Expr) *dag.This
- func HasSource(seq dag.Seq) bool
- func StartsWithYield(seq dag.Seq) bool
- type Scope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDefaultSource ¶ added in v1.16.0
func Analyze ¶
func Analyze(ctx context.Context, seq ast.Seq, source *data.Source, head *lakeparse.Commitish) (dag.Seq, error)
Analyze performs a semantic analysis of the AST, translating it from AST to DAG form, resolving syntax ambiguities, and performing constant propagation. After semantic analysis, the DAG is ready for either optimization or compilation.
func AnalyzeAddSource ¶ added in v1.11.0
func AnalyzeAddSource(ctx context.Context, seq ast.Seq, source *data.Source, head *lakeparse.Commitish) (dag.Seq, error)
AnalyzeAddSource is the same as Analyze but it adds a default source if the DAG does not have one.
func StartsWithYield ¶ added in v1.11.0
Types ¶
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
func (*Scope) DefineConst ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.