gwdkanalysis

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2026 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStandaloneEndpoints added in v0.2.8

func AddStandaloneEndpoints(config gowdk.Config, program *gwdkir.Program, endpoints []gwdkir.GoEndpoint)

AddStandaloneEndpoints appends discovered standalone Go endpoint declarations to an already-built program: each declaration is preserved losslessly in Program.GoEndpoints and normalized into Program.Endpoints, which is then re-sorted with the same ordering BuildIR produces so post-build discovery yields the same program as build-time discovery.

func AttachBackendBindings added in v0.2.8

func AttachBackendBindings(program *gwdkir.Program, bindings []source.BackendBinding)

AttachBackendBindings copies backend handler binding records onto the normalized IR endpoints and page load bindings they describe. Records are matched by (kind, page, block, method, route); endpoints and pages without a matching record get a zero binding.

func BuildProgram added in v0.2.8

func BuildProgram(config gowdk.Config, sources Sources) gwdkir.Program

BuildProgram assembles the base stable compiler IR from parsed IR records: routes, templates, assets, endpoints, and package groupings are derived here. Source-taking compiler and codegen callers should use compiler.AssembleProgram so standalone Go endpoint discovery and backend handler binding run in the canonical order before downstream validation or output planning.

Types

type Sources added in v0.2.8

type Sources struct {
	Pages      []gwdkir.Page
	Components []gwdkir.Component
	Layouts    []gwdkir.Layout
	AuditSpecs []gwdkir.AuditSpec
}

Sources are the parsed IR records one program is assembled from.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL