gwdkanalysis

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package gwdkanalysis lowers GOWDK AST files into normalized manifest and IR metadata.

Index

Constants

View Source
const (
	SourcePage      = gwdkir.SourcePage
	SourceComponent = gwdkir.SourceComponent
	SourceLayout    = gwdkir.SourceLayout
)

Variables

This section is empty.

Functions

func BuildIR

func BuildIR(config gowdk.Config, app manifest.Manifest) gwdkir.Program

BuildIR converts a normalized manifest into the stable compiler IR.

func LowerComponent

func LowerComponent(source string, ast gwdkast.File) (manifest.Component, error)

LowerComponent lowers one component AST into manifest compatibility records.

func LowerLayout

func LowerLayout(source string, ast gwdkast.File) (manifest.Layout, error)

LowerLayout lowers one layout AST into manifest compatibility records.

func LowerPage

func LowerPage(source string, ast gwdkast.File) (manifest.Page, error)

LowerPage lowers one page AST into manifest compatibility records.

Types

type Result

type Result struct {
	Manifest manifest.Manifest
	IR       gwdkir.Program
}

Result contains compatibility manifest records plus the stable IR produced from them.

func Analyze

func Analyze(config gowdk.Config, files []SourceFile) (Result, error)

Analyze lowers parsed AST files into normalized compiler metadata.

type SourceFile

type SourceFile struct {
	Path string
	Kind SourceKind
	AST  gwdkast.File
}

SourceFile is one parsed GOWDK AST file ready for analysis.

type SourceKind

type SourceKind = gwdkir.SourceKind

Jump to

Keyboard shortcuts

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