projectintegration

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package projectintegration runs compile-time hooks declared by TypeRB packages without teaching the compiler pipeline their domain-specific data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Analyze

func Analyze(context Context) (Analysis, []Issue, error)

Types

type Analysis

type Analysis struct {
	// contains filtered or unexported fields
}

func (Analysis) Apply

func (a Analysis) Apply(program *ir.Program, entrypoint bool)

type Context

type Context struct {
	Sources           []Source
	Resolutions       map[string]resolver.Result
	SourceRoot        string
	ProjectRoot       string
	PackageOptions    map[string][]byte
	JobsConfiguration string
}

type Contribution

type Contribution struct {
	Extension     ir.Extension
	MethodTargets map[string]map[string]string
	AllPrograms   bool
}

type Issue

type Issue struct {
	Filename string
	Message  string
	Span     token.Span
}

type Source

type Source struct {
	Filename   string
	ModulePath string
	Program    *ast.Program
}

Jump to

Keyboard shortcuts

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