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 ¶
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]
Click to show internal directories.
Click to hide internal directories.