Documentation
¶
Overview ¶
Package declarationadaptertooling defines the versioned JSON report emitted by explicit declaration-adapter authoring commands. It reports validated semantic data only and does not expose compiler AST, typed IR, or backend hooks.
Index ¶
Constants ¶
View Source
const ( TestPhaseAdapterCheck = "adapter_check" TestPhaseBuild = "build" TestPhaseNativeCheck = "native_check" TestStatusPassed = "passed" TestStatusFailed = "failed" TestStatusNotRun = "not_run" )
View Source
const ProtocolVersion = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildOptions ¶
type BuildOptions struct {
CompilerVersion string
Package *Package
Adapters []Adapter
Diagnostics []diagnostic.Diagnostic
}
type Report ¶
type Report struct {
ProtocolVersion int `json:"protocolVersion"`
CompilerVersion string `json:"compilerVersion"`
Package *Package `json:"package,omitempty"`
Adapters []Adapter `json:"adapters"`
Diagnostics []diagnostic.JSONDiagnostic `json:"diagnostics"`
Summary Summary `json:"summary"`
}
func Build ¶
func Build(options BuildOptions) Report
type TestBuildOptions ¶
type TestBuildOptions struct {
CompilerVersion string
Package *Package
Tests []Test
Diagnostics []diagnostic.Diagnostic
}
type TestReport ¶
type TestReport struct {
ProtocolVersion int `json:"protocolVersion"`
CompilerVersion string `json:"compilerVersion"`
Package *Package `json:"package,omitempty"`
Tests []Test `json:"tests"`
Diagnostics []diagnostic.JSONDiagnostic `json:"diagnostics"`
Summary TestSummary `json:"summary"`
}
TestReport is the versioned machine-readable result of an explicitly invoked adapter conformance run. It contains stable phase states while native tool output remains on the command's diagnostic stream.
func BuildTest ¶
func BuildTest(options TestBuildOptions) TestReport
Click to show internal directories.
Click to hide internal directories.