Documentation ¶
Index ¶
- Constants
- func IsList(t Type) bool
- func IsNumeric(t Type) bool
- func IsPrimitive(t Type) bool
- func IsPrimitiveOrVoid(t Type) bool
- func IsStruct(t Type) bool
- func IsVoid(t Type) bool
- type GrammaticalGender
- type ListType
- type ParameterType
- type PrimitiveType
- type StructField
- type StructType
- type Type
- type VoidType
Constants ¶
View Source
const ( INVALID GrammaticalGender = -1 MASKULIN = iota FEMININ NEUTRUM )
Variables ¶
This section is empty.
Functions ¶
func IsPrimitive ¶
func IsPrimitiveOrVoid ¶
Types ¶
type ListType ¶
type ListType struct {
Underlying Type
}
func (ListType) Gender ¶
func (ListType) Gender() GrammaticalGender
type ParameterType ¶
represents the type of a function parameter which may be a reference
func (ParameterType) String ¶
func (paramType ParameterType) String() string
type PrimitiveType ¶
type PrimitiveType int
enum type for primitive types (+ void)
const ( ZAHL PrimitiveType = iota // int64 KOMMAZAHL // float64 WAHRHEITSWERT // bool BUCHSTABE // int32 TEXT // string )
func (PrimitiveType) Gender ¶
func (p PrimitiveType) Gender() GrammaticalGender
func (PrimitiveType) String ¶
func (p PrimitiveType) String() string
type StructField ¶
represents a single field of a struct
type StructType ¶
type StructType struct { // name of the struct Name string // grammatical gender of the struct name GramGender GrammaticalGender // fields of the struct // in order of declaration Fields []StructField }
represents the type of a ddp struct
func (*StructType) Gender ¶
func (t *StructType) Gender() GrammaticalGender
func (*StructType) String ¶
func (t *StructType) String() string
type Type ¶
type Type interface { // the grammatical Gender of the Type Gender() GrammaticalGender // string representation of the type (its name) String() string }
holds information about a DDP-Type
func GetNestedUnderlying ¶
gets the underlying type for nested lists if typ is not a list type typ is returned
Click to show internal directories.
Click to hide internal directories.