transitive

package
v0.405.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Extractor = common.NewExtractor("transitive", (*Fact)(nil), Extract)

Extractor extracts transitive schema.Decls to the module schema.

This extractor is used to extract schema.Decls that are implicitly included in the schema via other schema.Decls but not themselves explicitly annotated.

Functions

func Extract

func Extract(pass *analysis.Pass) (interface{}, error)

Extract traverses all schema type root AST nodes and determines if a node has been marked for extraction.

Transitive data decls are marked via "facts", annotating the object which must be extracted to the schema with common.NeedsExtraction. This allows us to identify objects for extraction that are not explicitly annotated with an FTL directive.

Types

type Fact

type Fact = common.DefaultFact[Tag]

type Tag added in v0.260.0

type Tag struct{} // Tag uniquely identifies the fact type for this extractor.

Jump to

Keyboard shortcuts

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