Versions in this module Expand all Collapse all v0 v0.10.6 Jun 15, 2023 v0.10.5 May 23, 2023 Changes in this version + const MaxTupleLength + var AnyType = anyType + var BigIntType = SimpleType + var BooleanType = SimpleType + var ByteVectorType = SimpleType + var CallableRetV3 = UnionType + var CallableRetV4 = ListType + var CallableRetV5 = UnionType + var IntType = SimpleType + var StringType = SimpleType + var ThrowType = throwType + func DefaultTypes() map[ast.LibraryVersion]map[string]Type + func FuncsByVersion() map[ast.LibraryVersion]FunctionsSignatures + func ObjectsByVersion() map[ast.LibraryVersion]ObjectsSignatures + func Pretty(pretty bool) func(*Types) error + func Size(size int) func(*Types) error + type FunctionParams struct + Arguments []Type + ID ast.Function + ReturnType Type + type FunctionParamsJson struct + Arguments []string + ID string + ReturnType string + type FunctionsInVersions struct + New map[string][]FunctionParamsJson + Remove []string + type FunctionsSignatures struct + Funcs map[string][]FunctionParams + func (sig *FunctionsSignatures) Check(name string) bool + func (sig *FunctionsSignatures) Get(name string, args []Type) (FunctionParams, bool) + type FunctionsSignaturesJson struct + Versions []FunctionsInVersions + type ListType struct + Type Type + func (t *ListType) AppendList(rideType Type) + func (t *ListType) AppendType(rideType Type) + func (t ListType) Equal(other Type) bool + func (t ListType) EqualWithEntry(other Type) bool + func (t ListType) String() string + type ObjectField struct + Name string + Type Type + type ObjectInfo struct + Fields []ObjectField + NotConstruct bool + type ObjectsSignatures struct + Obj map[string]ObjectInfo + func (s *ObjectsSignatures) GetConstruct(name string, args []Type) (FunctionParams, bool) + func (s *ObjectsSignatures) GetField(objType Type, fieldName string) (Type, bool) + func (s *ObjectsSignatures) IsExist(name string) bool + type SimpleType struct + Type string + func (t SimpleType) Equal(other Type) bool + func (t SimpleType) EqualWithEntry(other Type) bool + func (t SimpleType) String() string + type StdVars struct + Vars []VarsInVersion + func Vars() *StdVars + type TupleType struct + Types []Type + func (t TupleType) Equal(other Type) bool + func (t TupleType) EqualWithEntry(other Type) bool + func (t TupleType) String() string + type Type interface + Equal func(Type) bool + EqualWithEntry func(Type) bool + String func() string + func JoinTypes(types ...Type) Type + func ParseRuntimeType(t string) Type + func ParseType(t string) Type + type Types struct + Buffer string + Pretty bool + func (p *Types) Init(options ...func(*Types) error) error + func (p *Types) Parse(rule ...int) error + func (p *Types) PrintSyntaxTree() + func (p *Types) Reset() + func (p *Types) SprintSyntaxTree() string + func (p *Types) WriteSyntaxTree(w io.Writer) + func (t *Types) AST() *node32 + func (t *Types) Add(rule pegRule, begin, end, index uint32) + func (t *Types) PrettyPrintSyntaxTree(buffer string) + func (t *Types) Print() + func (t *Types) Tokens() []token32 + func (t *Types) Trim(length uint32) + type UnionType struct + Types []Type + func (t *UnionType) AppendType(rideType Type) + func (t UnionType) Equal(other Type) bool + func (t UnionType) EqualWithEntry(other Type) bool + func (t UnionType) Simplify() Type + func (t UnionType) String() string + type Variable struct + Name string + Type Type + type VarsInVersion struct + Append []Variable + AppendJson []variableJson + Remove []string