packageextensionhost

package
v0.3.29 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package packageextensionhost validates package-extension data and converts it into compiler-owned semantic declarations. Providers never receive the internal declaration representation through this boundary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportDeclarationCatalog

func ExportDeclarationCatalog(provider string, catalog *declaration.Catalog) (packageextension.DeclarationCatalog, error)

func ExportProjectDeclarationInput

func ExportProjectDeclarationInput(provider string, programs []*ast.Program, options ProjectDeclarationInputOptions) (packageextension.ProjectDeclarationInput, error)

ExportProjectDeclarationInput copies the declaration-only portion of parsed project source into the versioned package-extension boundary. The returned value owns its data and does not retain compiler AST nodes.

func ExportSourceSpan added in v0.3.15

func ExportSourceSpan(span token.Span) packageextension.SourceSpan

ExportSourceSpan copies a compiler source span into the data-only package extension representation.

func ImportSourceSpan added in v0.3.15

func ImportSourceSpan(span packageextension.SourceSpan) token.Span

ImportSourceSpan copies a package extension span back into compiler-owned source coordinates.

Types

type ProjectDeclarationInputOptions added in v0.3.15

type ProjectDeclarationInputOptions struct {
	PackageAliasesByModule map[string]map[string]string
}

Jump to

Keyboard shortcuts

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