schema

package
v0.386.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extractors added in v0.258.0

func Extractors() [][]*analysis.Analyzer

Extractors contains all schema extractors that will run.

It is a list of lists, where each list is a round of tasks dependent on the prior round's execution (e.g. an analyzer in Extractors[1] will only execute once all analyzers in Extractors[0] complete). Elements of the same list should be considered unordered and may run in parallel.

Types

type NativeNames added in v0.305.0

type NativeNames map[schema.Node]string

NativeNames is a map of top-level declarations to their native Go names.

type Result added in v0.261.0

type Result struct {
	// Module is the extracted module schema.
	Module *schema.Module
	// NativeNames maps schema nodes to their native Go names.
	NativeNames NativeNames
	// Errors is a list of errors encountered during schema extraction.
	Errors []builderrors.Error
}

Result contains the final schema extraction result.

func Extract

func Extract(moduleDir string) (Result, error)

Extract statically parses Go FTL module source into a schema.Module

Jump to

Keyboard shortcuts

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