Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Annotations = []Mapping{ AnnotateType("internal-type", nil, role.Incomplete), }
Annotations is a list of individual transformations to annotate a native AST with roles.
View Source
var Native = Transformers([][]Transformer{ {Mappings(Annotations...)}, { RolesDedup(), }, }...)
Native is the of list `transformer.Transformer` to apply to a native AST. To learn more about the Transformers and the available ones take a look to: https://godoc.org/github.com/bblfsh/sdk/v3/uast/transformer
View Source
var Normalize = Transformers([][]Transformer{ {Mappings(Normalizers...)}, }...)
View Source
var Normalizers = []Mapping{}
Normalizers is the main block of normalization rules to convert native AST to semantic UAST.
View Source
var Preprocess = Transformers([][]Transformer{ { ResponseMetadata{ TopLevelIsRootNode: false, }, }, {Mappings(Preprocessors...)}, }...)
View Source
var PreprocessCode = []CodeTransformer{ positioner.FromOffset(), }
PreprocessCode is a preprocessor stage that can use the source code to fix tokens and positional information.
View Source
var Preprocessors = []Mapping{
ObjectToNode{
InternalTypeKey: "...",
}.Mapping(),
}
Preprocessors is a block of AST preprocessing rules rules.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.