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 ¶
- func ExportDeclarationCatalog(provider string, catalog *declaration.Catalog) (packageextension.DeclarationCatalog, error)
- func ExportProjectDeclarationInput(provider string, programs []*ast.Program, ...) (packageextension.ProjectDeclarationInput, error)
- func ExportSourceSpan(span token.Span) packageextension.SourceSpan
- func ImportDeclarationCatalog(source packageextension.DeclarationCatalog) (*declaration.Catalog, error)
- func ImportSourceSpan(span packageextension.SourceSpan) token.Span
- type ProjectDeclarationInputOptions
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 ImportDeclarationCatalog ¶
func ImportDeclarationCatalog(source packageextension.DeclarationCatalog) (*declaration.Catalog, error)
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
Click to show internal directories.
Click to hide internal directories.