Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct { Structs map[NodeStructType]*NodeStructDef Interfaces map[NodeInterfaceType]*NodeInterfaceDef Consts map[ConstType]*ConstDef }
Catalog is a catalog of AST types.
type ConstDef ¶
type ConstDef struct { SourcePos token.Pos Name string Values []*ConstValueDef }
ConstDef is a definition of const types in ast/ast_const.go
type ConstType ¶
type ConstType string
ConstType is a type name of const types defined in ast/ast_const.go.
type ConstValueDef ¶
ConstValueDef is a value definition of const types in ast/ast_const.go.
type NodeInterfaceDef ¶
type NodeInterfaceDef struct { SourcePos token.Pos Name string Implemented []NodeStructType }
NodeInterfaceDef is a definition of node interfaces in ast/ast.go.
type NodeInterfaceType ¶
type NodeInterfaceType string
NodeInterfaceType is a type name of node interfaces defined in ast/ast.go.
type NodeStructDef ¶
type NodeStructDef struct { SourcePos token.Pos Name string Doc string Tmpl string Pos, End string Fields []*FieldDef Implements []NodeInterfaceType }
NodeStructDef is a definition of node structs in ast/ast.go.
type NodeStructType ¶
type NodeStructType string
NodeStructType is a type name of node structs defined in ast/ast.go.
type PrimitiveType ¶
type PrimitiveType string
PrimitiveType is a type name which is neither a node pointer, a node interface, nor a const types.
const ( BoolType PrimitiveType = "bool" ByteType PrimitiveType = "byte" IntType PrimitiveType = "int" StringType PrimitiveType = "string" TokenPosType PrimitiveType = "token.Pos" TokenTokenType PrimitiveType = "token.Token" )
PrimitiveType values.