Documentation
¶
Overview ¶
Package projectcompile owns the shared parse-independent project compiler pipeline used by the CLI, dev server, language tools, and future embedders.
Index ¶
- func Compile(config gowdk.Config, sources gwdkanalysis.Sources, options Options) (Snapshot, Diagnostics, error)
- func CompileContext(ctx context.Context, config gowdk.Config, sources gwdkanalysis.Sources, ...) (Snapshot, Diagnostics, error)
- func Program(snapshot Snapshot) gwdkir.Program
- type Diagnostic
- type Diagnostics
- type Mode
- type Options
- type Snapshot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compile ¶
func Compile(config gowdk.Config, sources gwdkanalysis.Sources, options Options) (Snapshot, Diagnostics, error)
Compile runs the canonical analyze -> contract link -> validate sequence.
func CompileContext ¶
func CompileContext(ctx context.Context, config gowdk.Config, sources gwdkanalysis.Sources, options Options) (Snapshot, Diagnostics, error)
CompileContext is Compile with cancellation between every owning phase.
Types ¶
type Diagnostic ¶
type Diagnostics ¶
type Diagnostics []Diagnostic
func (Diagnostics) Error ¶
func (items Diagnostics) Error() string
func (Diagnostics) HasErrors ¶
func (items Diagnostics) HasErrors() bool
type Snapshot ¶
type Snapshot struct {
Analyzed compiler.AnalyzedProgram
Validated compiler.ValidatedProgram
Contracts contractscan.Report
}
Snapshot is one immutable-by-convention compilation result. Every consumer receives the same analyzed and validated phase values rather than rebuilding or relinking IR in a command-specific order.
Click to show internal directories.
Click to hide internal directories.