Documentation ¶
Index ¶
- func NewTypeRefs(xs ...core.ITypeRef) []core.ITypeRef
- func NewTypes(xs ...core.IType) []core.IType
- type ArrayType
- func (self ArrayType) Alignment() int
- func (self ArrayType) AllocSize() int
- func (self ArrayType) GetBaseType() core.IType
- func (self ArrayType) GetLength() int
- func (self ArrayType) IsAllocatedArray() bool
- func (self ArrayType) IsArray() bool
- func (self ArrayType) IsCallable() bool
- func (self ArrayType) IsCastableTo(target core.IType) bool
- func (self ArrayType) IsCompatible(target core.IType) bool
- func (self ArrayType) IsCompositeType() bool
- func (self ArrayType) IsFunction() bool
- func (self ArrayType) IsIncompleteArray() bool
- func (self ArrayType) IsInteger() bool
- func (self ArrayType) IsPointer() bool
- func (self ArrayType) IsSameType(other core.IType) bool
- func (self ArrayType) IsScalar() bool
- func (self ArrayType) IsSigned() bool
- func (self ArrayType) IsStruct() bool
- func (self ArrayType) IsUnion() bool
- func (self ArrayType) IsUserType() bool
- func (self ArrayType) IsVoid() bool
- func (self ArrayType) Key() string
- func (self ArrayType) MarshalJSON() ([]byte, error)
- func (self ArrayType) Size() int
- func (self ArrayType) String() string
- type ArrayTypeRef
- func (self ArrayTypeRef) GetBaseType() core.ITypeRef
- func (self ArrayTypeRef) GetLength() int
- func (self ArrayTypeRef) GetLocation() core.Location
- func (self ArrayTypeRef) IsTypeRef() bool
- func (self ArrayTypeRef) Key() string
- func (self ArrayTypeRef) MarshalJSON() ([]byte, error)
- func (self ArrayTypeRef) String() string
- type FunctionType
- func (self FunctionType) AcceptsArgc(numArgs int) bool
- func (self FunctionType) Alignment() int
- func (self FunctionType) AllocSize() int
- func (self FunctionType) GetBaseType() core.IType
- func (self FunctionType) GetParamTypes() *ParamTypes
- func (self FunctionType) GetReturnType() core.IType
- func (self FunctionType) IsAllocatedArray() bool
- func (self FunctionType) IsArray() bool
- func (self FunctionType) IsCallable() bool
- func (self FunctionType) IsCastableTo(target core.IType) bool
- func (self FunctionType) IsCompatible(target core.IType) bool
- func (self FunctionType) IsCompositeType() bool
- func (self FunctionType) IsFunction() bool
- func (self FunctionType) IsIncompleteArray() bool
- func (self FunctionType) IsInteger() bool
- func (self FunctionType) IsPointer() bool
- func (self FunctionType) IsSameType(other core.IType) bool
- func (self FunctionType) IsScalar() bool
- func (self FunctionType) IsSigned() bool
- func (self FunctionType) IsStruct() bool
- func (self FunctionType) IsUnion() bool
- func (self FunctionType) IsUserType() bool
- func (self FunctionType) IsVoid() bool
- func (self FunctionType) Key() string
- func (self FunctionType) MarshalJSON() ([]byte, error)
- func (self FunctionType) Size() int
- func (self FunctionType) String() string
- type FunctionTypeRef
- func (self FunctionTypeRef) GetLocation() core.Location
- func (self FunctionTypeRef) GetParams() *ParamTypeRefs
- func (self FunctionTypeRef) GetReturnType() core.ITypeRef
- func (self FunctionTypeRef) IsTypeRef() bool
- func (self FunctionTypeRef) Key() string
- func (self FunctionTypeRef) MarshalJSON() ([]byte, error)
- func (self FunctionTypeRef) String() string
- type IntegerType
- func NewCharType(size int) *IntegerType
- func NewIntType(size int) *IntegerType
- func NewIntegerType(size int, isSigned bool, name string) *IntegerType
- func NewLongType(size int) *IntegerType
- func NewShortType(size int) *IntegerType
- func NewUnsignedCharType(size int) *IntegerType
- func NewUnsignedIntType(size int) *IntegerType
- func NewUnsignedLongType(size int) *IntegerType
- func NewUnsignedShortType(size int) *IntegerType
- func (self IntegerType) Alignment() int
- func (self IntegerType) AllocSize() int
- func (self IntegerType) GetBaseType() core.IType
- func (self IntegerType) GetName() string
- func (self IntegerType) IsAllocatedArray() bool
- func (self IntegerType) IsArray() bool
- func (self IntegerType) IsCallable() bool
- func (self IntegerType) IsCastableTo(target core.IType) bool
- func (self IntegerType) IsCompatible(target core.IType) bool
- func (self IntegerType) IsCompositeType() bool
- func (self IntegerType) IsFunction() bool
- func (self IntegerType) IsInDomain(i int64) bool
- func (self IntegerType) IsIncompleteArray() bool
- func (self IntegerType) IsInteger() bool
- func (self IntegerType) IsPointer() bool
- func (self IntegerType) IsSameType(other core.IType) bool
- func (self IntegerType) IsScalar() bool
- func (self IntegerType) IsSigned() bool
- func (self IntegerType) IsStruct() bool
- func (self IntegerType) IsUnion() bool
- func (self IntegerType) IsUserType() bool
- func (self IntegerType) IsVoid() bool
- func (self IntegerType) Key() string
- func (self IntegerType) MarshalJSON() ([]byte, error)
- func (self IntegerType) MaxValue() int64
- func (self IntegerType) MinValue() int64
- func (self IntegerType) Size() int
- func (self IntegerType) String() string
- type IntegerTypeRef
- func NewCharTypeRef(loc core.Location) *IntegerTypeRef
- func NewIntTypeRef(loc core.Location) *IntegerTypeRef
- func NewIntegerTypeRef(loc core.Location, name string) *IntegerTypeRef
- func NewLongTypeRef(loc core.Location) *IntegerTypeRef
- func NewShortTypeRef(loc core.Location) *IntegerTypeRef
- func NewUnsignedCharTypeRef(loc core.Location) *IntegerTypeRef
- func NewUnsignedIntTypeRef(loc core.Location) *IntegerTypeRef
- func NewUnsignedLongTypeRef(loc core.Location) *IntegerTypeRef
- func NewUnsignedShortTypeRef(loc core.Location) *IntegerTypeRef
- type ParamTypeRefs
- func (self ParamTypeRefs) GetLocation() core.Location
- func (self ParamTypeRefs) GetParamDescs() []core.ITypeRef
- func (self ParamTypeRefs) IsTypeRef() bool
- func (self ParamTypeRefs) IsVararg() bool
- func (self ParamTypeRefs) Key() string
- func (self ParamTypeRefs) MarshalJSON() ([]byte, error)
- func (self ParamTypeRefs) String() string
- type ParamTypes
- func (self ParamTypes) Alignment() int
- func (self ParamTypes) AllocSize() int
- func (self ParamTypes) Argc() int
- func (self ParamTypes) GetBaseType() core.IType
- func (self ParamTypes) GetParamDescs() []core.IType
- func (self ParamTypes) IsAllocatedArray() bool
- func (self ParamTypes) IsArray() bool
- func (self ParamTypes) IsCallable() bool
- func (self ParamTypes) IsCastableTo(target core.IType) bool
- func (self ParamTypes) IsCompatible(target core.IType) bool
- func (self ParamTypes) IsCompositeType() bool
- func (self ParamTypes) IsFunction() bool
- func (self ParamTypes) IsIncompleteArray() bool
- func (self ParamTypes) IsInteger() bool
- func (self ParamTypes) IsPointer() bool
- func (self ParamTypes) IsSameType(other core.IType) bool
- func (self ParamTypes) IsScalar() bool
- func (self ParamTypes) IsSigned() bool
- func (self ParamTypes) IsStruct() bool
- func (self ParamTypes) IsUnion() bool
- func (self ParamTypes) IsUserType() bool
- func (self ParamTypes) IsVararg() bool
- func (self ParamTypes) IsVoid() bool
- func (self ParamTypes) Key() string
- func (self ParamTypes) MarshalJSON() ([]byte, error)
- func (self ParamTypes) MinArgc() int
- func (self ParamTypes) Size() int
- func (self ParamTypes) String() string
- type PointerType
- func (self PointerType) Alignment() int
- func (self PointerType) AllocSize() int
- func (self PointerType) GetBaseType() core.IType
- func (self PointerType) IsAllocatedArray() bool
- func (self PointerType) IsArray() bool
- func (self PointerType) IsCallable() bool
- func (self PointerType) IsCastableTo(target core.IType) bool
- func (self PointerType) IsCompatible(target core.IType) bool
- func (self PointerType) IsCompositeType() bool
- func (self PointerType) IsFunction() bool
- func (self PointerType) IsIncompleteArray() bool
- func (self PointerType) IsInteger() bool
- func (self PointerType) IsPointer() bool
- func (self PointerType) IsSameType(other core.IType) bool
- func (self PointerType) IsScalar() bool
- func (self PointerType) IsSigned() bool
- func (self PointerType) IsStruct() bool
- func (self PointerType) IsUnion() bool
- func (self PointerType) IsUserType() bool
- func (self PointerType) IsVoid() bool
- func (self PointerType) Key() string
- func (self PointerType) MarshalJSON() ([]byte, error)
- func (self PointerType) Size() int
- func (self PointerType) String() string
- type PointerTypeRef
- type StructType
- func (self StructType) Alignment() int
- func (self StructType) AllocSize() int
- func (self StructType) GetBaseType() core.IType
- func (self StructType) GetMember(name string) core.ISlot
- func (self StructType) GetMemberOffset(name string) int
- func (self StructType) GetMemberType(name string) core.IType
- func (self StructType) GetMemberTypes() []core.IType
- func (self StructType) GetMembers() []core.ISlot
- func (self StructType) GetName() string
- func (self StructType) HasMember(name string) bool
- func (self StructType) IsAllocatedArray() bool
- func (self StructType) IsArray() bool
- func (self StructType) IsCallable() bool
- func (self StructType) IsCastableTo(target core.IType) bool
- func (self StructType) IsCompatible(target core.IType) bool
- func (self StructType) IsCompositeType() bool
- func (self StructType) IsFunction() bool
- func (self StructType) IsIncompleteArray() bool
- func (self StructType) IsInteger() bool
- func (self StructType) IsPointer() bool
- func (self StructType) IsSameType(other core.IType) bool
- func (self StructType) IsScalar() bool
- func (self StructType) IsSigned() bool
- func (self StructType) IsStruct() bool
- func (self StructType) IsUnion() bool
- func (self StructType) IsUserType() bool
- func (self StructType) IsVoid() bool
- func (self StructType) Key() string
- func (self StructType) MarshalJSON() ([]byte, error)
- func (self StructType) Size() int
- func (self StructType) String() string
- type StructTypeRef
- type TypeTable
- func (self TypeTable) GetCharSize() int
- func (self TypeTable) GetIntSize() int
- func (self TypeTable) GetLongSize() int
- func (self TypeTable) GetParamType(ref core.ITypeRef) core.IType
- func (self TypeTable) GetPointerSize() int
- func (self TypeTable) GetShortSize() int
- func (self TypeTable) GetType(ref core.ITypeRef) core.IType
- func (self TypeTable) GetTypeRef(target core.IType) core.ITypeRef
- func (self TypeTable) GetTypes() []core.IType
- func (self TypeTable) IsDefined(ref core.ITypeRef) bool
- func (self TypeTable) IsTypeTable() bool
- func (self TypeTable) NumTypes() int
- func (self TypeTable) PointerTo(baseType core.IType) *PointerType
- func (self TypeTable) PtrDiffType() core.IType
- func (self TypeTable) PtrDiffTypeName() string
- func (self TypeTable) PtrDiffTypeRef() core.ITypeRef
- func (self *TypeTable) PutType(ref core.ITypeRef, t core.IType)
- func (self *TypeTable) SemanticCheck(errorHandler *core.ErrorHandler)
- func (self TypeTable) SignedChar() *IntegerType
- func (self TypeTable) SignedInt() *IntegerType
- func (self TypeTable) SignedLong() *IntegerType
- func (self TypeTable) SignedShort() *IntegerType
- func (self TypeTable) SignedStackType() *IntegerType
- func (self TypeTable) String() string
- func (self TypeTable) UnsignedChar() *IntegerType
- func (self TypeTable) UnsignedInt() *IntegerType
- func (self TypeTable) UnsignedLong() *IntegerType
- func (self TypeTable) UnsignedShort() *IntegerType
- func (self TypeTable) UnsignedStackType() *IntegerType
- func (self TypeTable) VoidType() *VoidType
- type UnionType
- func (self UnionType) Alignment() int
- func (self UnionType) AllocSize() int
- func (self UnionType) GetBaseType() core.IType
- func (self UnionType) GetMember(name string) core.ISlot
- func (self UnionType) GetMemberOffset(name string) int
- func (self UnionType) GetMemberType(name string) core.IType
- func (self UnionType) GetMemberTypes() []core.IType
- func (self UnionType) GetMembers() []core.ISlot
- func (self UnionType) GetName() string
- func (self UnionType) HasMember(name string) bool
- func (self UnionType) IsAllocatedArray() bool
- func (self UnionType) IsArray() bool
- func (self UnionType) IsCallable() bool
- func (self UnionType) IsCastableTo(target core.IType) bool
- func (self UnionType) IsCompatible(target core.IType) bool
- func (self UnionType) IsCompositeType() bool
- func (self UnionType) IsFunction() bool
- func (self UnionType) IsIncompleteArray() bool
- func (self UnionType) IsInteger() bool
- func (self UnionType) IsPointer() bool
- func (self UnionType) IsSameType(other core.IType) bool
- func (self UnionType) IsScalar() bool
- func (self UnionType) IsSigned() bool
- func (self UnionType) IsStruct() bool
- func (self UnionType) IsUnion() bool
- func (self UnionType) IsUserType() bool
- func (self UnionType) IsVoid() bool
- func (self UnionType) Key() string
- func (self UnionType) MarshalJSON() ([]byte, error)
- func (self UnionType) Size() int
- func (self UnionType) String() string
- type UnionTypeRef
- type UserType
- func (self UserType) Alignment() int
- func (self UserType) AllocSize() int
- func (self UserType) GetBaseType() core.IType
- func (self UserType) GetName() string
- func (self UserType) GetRealType() core.IType
- func (self UserType) IsAllocatedArray() bool
- func (self UserType) IsArray() bool
- func (self UserType) IsCallable() bool
- func (self UserType) IsCastableTo(target core.IType) bool
- func (self UserType) IsCompatible(target core.IType) bool
- func (self UserType) IsCompositeType() bool
- func (self UserType) IsFunction() bool
- func (self UserType) IsIncompleteArray() bool
- func (self UserType) IsInteger() bool
- func (self UserType) IsPointer() bool
- func (self UserType) IsSameType(other core.IType) bool
- func (self UserType) IsScalar() bool
- func (self UserType) IsSigned() bool
- func (self UserType) IsStruct() bool
- func (self UserType) IsUnion() bool
- func (self UserType) IsUserType() bool
- func (self UserType) IsVoid() bool
- func (self UserType) Key() string
- func (self UserType) MarshalJSON() ([]byte, error)
- func (self UserType) Size() int
- func (self UserType) String() string
- type UserTypeRef
- type VoidType
- func (self VoidType) Alignment() int
- func (self VoidType) AllocSize() int
- func (self VoidType) GetBaseType() core.IType
- func (self VoidType) IsAllocatedArray() bool
- func (self VoidType) IsArray() bool
- func (self VoidType) IsCallable() bool
- func (self VoidType) IsCastableTo(target core.IType) bool
- func (self VoidType) IsCompatible(target core.IType) bool
- func (self VoidType) IsCompositeType() bool
- func (self VoidType) IsFunction() bool
- func (self VoidType) IsIncompleteArray() bool
- func (self VoidType) IsInteger() bool
- func (self VoidType) IsPointer() bool
- func (self VoidType) IsSameType(other core.IType) bool
- func (self VoidType) IsScalar() bool
- func (self VoidType) IsSigned() bool
- func (self VoidType) IsStruct() bool
- func (self VoidType) IsUnion() bool
- func (self VoidType) IsUserType() bool
- func (self VoidType) IsVoid() bool
- func (self VoidType) Key() string
- func (self VoidType) MarshalJSON() ([]byte, error)
- func (self VoidType) Size() int
- func (self VoidType) String() string
- type VoidTypeRef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArrayType ¶
ArrayType
func (ArrayType) GetBaseType ¶
func (ArrayType) IsAllocatedArray ¶
func (ArrayType) IsCallable ¶
func (ArrayType) IsCompositeType ¶
func (ArrayType) IsFunction ¶
func (ArrayType) IsIncompleteArray ¶
func (ArrayType) IsUserType ¶
func (ArrayType) MarshalJSON ¶
type ArrayTypeRef ¶
type ArrayTypeRef struct { ClassName string Location core.Location BaseType core.ITypeRef Length int }
ArrayTypeRef
func NewArrayTypeRef ¶
func NewArrayTypeRef(baseType core.ITypeRef, length int) *ArrayTypeRef
func (ArrayTypeRef) GetBaseType ¶
func (self ArrayTypeRef) GetBaseType() core.ITypeRef
func (ArrayTypeRef) GetLength ¶
func (self ArrayTypeRef) GetLength() int
func (ArrayTypeRef) GetLocation ¶
func (self ArrayTypeRef) GetLocation() core.Location
func (ArrayTypeRef) IsTypeRef ¶
func (self ArrayTypeRef) IsTypeRef() bool
func (ArrayTypeRef) Key ¶
func (self ArrayTypeRef) Key() string
func (ArrayTypeRef) MarshalJSON ¶
func (self ArrayTypeRef) MarshalJSON() ([]byte, error)
func (ArrayTypeRef) String ¶
func (self ArrayTypeRef) String() string
type FunctionType ¶
type FunctionType struct { ClassName string ReturnType core.IType ParamTypes *ParamTypes }
FunctionType
func NewFunctionType ¶
func NewFunctionType(ret core.IType, paramTypes *ParamTypes) *FunctionType
func (FunctionType) AcceptsArgc ¶
func (self FunctionType) AcceptsArgc(numArgs int) bool
func (FunctionType) Alignment ¶
func (self FunctionType) Alignment() int
func (FunctionType) AllocSize ¶
func (self FunctionType) AllocSize() int
func (FunctionType) GetBaseType ¶
func (self FunctionType) GetBaseType() core.IType
func (FunctionType) GetParamTypes ¶
func (self FunctionType) GetParamTypes() *ParamTypes
func (FunctionType) GetReturnType ¶
func (self FunctionType) GetReturnType() core.IType
func (FunctionType) IsAllocatedArray ¶
func (self FunctionType) IsAllocatedArray() bool
func (FunctionType) IsArray ¶
func (self FunctionType) IsArray() bool
func (FunctionType) IsCallable ¶
func (self FunctionType) IsCallable() bool
func (FunctionType) IsCastableTo ¶
func (self FunctionType) IsCastableTo(target core.IType) bool
func (FunctionType) IsCompatible ¶
func (self FunctionType) IsCompatible(target core.IType) bool
func (FunctionType) IsCompositeType ¶
func (self FunctionType) IsCompositeType() bool
func (FunctionType) IsFunction ¶
func (self FunctionType) IsFunction() bool
func (FunctionType) IsIncompleteArray ¶
func (self FunctionType) IsIncompleteArray() bool
func (FunctionType) IsInteger ¶
func (self FunctionType) IsInteger() bool
func (FunctionType) IsPointer ¶
func (self FunctionType) IsPointer() bool
func (FunctionType) IsSameType ¶
func (self FunctionType) IsSameType(other core.IType) bool
func (FunctionType) IsScalar ¶
func (self FunctionType) IsScalar() bool
func (FunctionType) IsSigned ¶
func (self FunctionType) IsSigned() bool
func (FunctionType) IsStruct ¶
func (self FunctionType) IsStruct() bool
func (FunctionType) IsUnion ¶
func (self FunctionType) IsUnion() bool
func (FunctionType) IsUserType ¶
func (self FunctionType) IsUserType() bool
func (FunctionType) IsVoid ¶
func (self FunctionType) IsVoid() bool
func (FunctionType) Key ¶
func (self FunctionType) Key() string
func (FunctionType) MarshalJSON ¶
func (self FunctionType) MarshalJSON() ([]byte, error)
func (FunctionType) Size ¶
func (self FunctionType) Size() int
func (FunctionType) String ¶
func (self FunctionType) String() string
type FunctionTypeRef ¶
type FunctionTypeRef struct { ClassName string Location core.Location ReturnType core.ITypeRef Params *ParamTypeRefs }
FunctionTypeRef
func NewFunctionTypeRef ¶
func NewFunctionTypeRef(returnType core.ITypeRef, params core.ITypeRef) *FunctionTypeRef
func (FunctionTypeRef) GetLocation ¶
func (self FunctionTypeRef) GetLocation() core.Location
func (FunctionTypeRef) GetParams ¶
func (self FunctionTypeRef) GetParams() *ParamTypeRefs
func (FunctionTypeRef) GetReturnType ¶
func (self FunctionTypeRef) GetReturnType() core.ITypeRef
func (FunctionTypeRef) IsTypeRef ¶
func (self FunctionTypeRef) IsTypeRef() bool
func (FunctionTypeRef) Key ¶
func (self FunctionTypeRef) Key() string
func (FunctionTypeRef) MarshalJSON ¶
func (self FunctionTypeRef) MarshalJSON() ([]byte, error)
func (FunctionTypeRef) String ¶
func (self FunctionTypeRef) String() string
type IntegerType ¶
IntegerType
func NewCharType ¶
func NewCharType(size int) *IntegerType
func NewIntType ¶
func NewIntType(size int) *IntegerType
func NewIntegerType ¶
func NewIntegerType(size int, isSigned bool, name string) *IntegerType
func NewLongType ¶
func NewLongType(size int) *IntegerType
func NewShortType ¶
func NewShortType(size int) *IntegerType
func NewUnsignedCharType ¶
func NewUnsignedCharType(size int) *IntegerType
func NewUnsignedIntType ¶
func NewUnsignedIntType(size int) *IntegerType
func NewUnsignedLongType ¶
func NewUnsignedLongType(size int) *IntegerType
func NewUnsignedShortType ¶
func NewUnsignedShortType(size int) *IntegerType
func (IntegerType) Alignment ¶
func (self IntegerType) Alignment() int
func (IntegerType) AllocSize ¶
func (self IntegerType) AllocSize() int
func (IntegerType) GetBaseType ¶
func (self IntegerType) GetBaseType() core.IType
func (IntegerType) GetName ¶
func (self IntegerType) GetName() string
func (IntegerType) IsAllocatedArray ¶
func (self IntegerType) IsAllocatedArray() bool
func (IntegerType) IsArray ¶
func (self IntegerType) IsArray() bool
func (IntegerType) IsCallable ¶
func (self IntegerType) IsCallable() bool
func (IntegerType) IsCastableTo ¶
func (self IntegerType) IsCastableTo(target core.IType) bool
func (IntegerType) IsCompatible ¶
func (self IntegerType) IsCompatible(target core.IType) bool
func (IntegerType) IsCompositeType ¶
func (self IntegerType) IsCompositeType() bool
func (IntegerType) IsFunction ¶
func (self IntegerType) IsFunction() bool
func (IntegerType) IsInDomain ¶
func (self IntegerType) IsInDomain(i int64) bool
func (IntegerType) IsIncompleteArray ¶
func (self IntegerType) IsIncompleteArray() bool
func (IntegerType) IsInteger ¶
func (self IntegerType) IsInteger() bool
func (IntegerType) IsPointer ¶
func (self IntegerType) IsPointer() bool
func (IntegerType) IsSameType ¶
func (self IntegerType) IsSameType(other core.IType) bool
func (IntegerType) IsScalar ¶
func (self IntegerType) IsScalar() bool
func (IntegerType) IsSigned ¶
func (self IntegerType) IsSigned() bool
func (IntegerType) IsStruct ¶
func (self IntegerType) IsStruct() bool
func (IntegerType) IsUnion ¶
func (self IntegerType) IsUnion() bool
func (IntegerType) IsUserType ¶
func (self IntegerType) IsUserType() bool
func (IntegerType) IsVoid ¶
func (self IntegerType) IsVoid() bool
func (IntegerType) Key ¶
func (self IntegerType) Key() string
func (IntegerType) MarshalJSON ¶
func (self IntegerType) MarshalJSON() ([]byte, error)
func (IntegerType) MaxValue ¶
func (self IntegerType) MaxValue() int64
func (IntegerType) MinValue ¶
func (self IntegerType) MinValue() int64
func (IntegerType) Size ¶
func (self IntegerType) Size() int
func (IntegerType) String ¶
func (self IntegerType) String() string
type IntegerTypeRef ¶
IntegerTypeRef
func NewCharTypeRef ¶
func NewCharTypeRef(loc core.Location) *IntegerTypeRef
func NewIntTypeRef ¶
func NewIntTypeRef(loc core.Location) *IntegerTypeRef
func NewIntegerTypeRef ¶
func NewIntegerTypeRef(loc core.Location, name string) *IntegerTypeRef
func NewLongTypeRef ¶
func NewLongTypeRef(loc core.Location) *IntegerTypeRef
func NewShortTypeRef ¶
func NewShortTypeRef(loc core.Location) *IntegerTypeRef
func NewUnsignedCharTypeRef ¶
func NewUnsignedCharTypeRef(loc core.Location) *IntegerTypeRef
func NewUnsignedIntTypeRef ¶
func NewUnsignedIntTypeRef(loc core.Location) *IntegerTypeRef
func NewUnsignedLongTypeRef ¶
func NewUnsignedLongTypeRef(loc core.Location) *IntegerTypeRef
func NewUnsignedShortTypeRef ¶
func NewUnsignedShortTypeRef(loc core.Location) *IntegerTypeRef
func (IntegerTypeRef) GetLocation ¶
func (self IntegerTypeRef) GetLocation() core.Location
func (IntegerTypeRef) IsTypeRef ¶
func (self IntegerTypeRef) IsTypeRef() bool
func (IntegerTypeRef) Key ¶
func (self IntegerTypeRef) Key() string
func (IntegerTypeRef) MarshalJSON ¶
func (self IntegerTypeRef) MarshalJSON() ([]byte, error)
func (IntegerTypeRef) String ¶
func (self IntegerTypeRef) String() string
type ParamTypeRefs ¶
type ParamTypeRefs struct { ClassName string Location core.Location ParamDescs []core.ITypeRef Vararg bool }
ParamTypeRefs
func NewParamTypeRefs ¶
func (ParamTypeRefs) GetLocation ¶
func (self ParamTypeRefs) GetLocation() core.Location
func (ParamTypeRefs) GetParamDescs ¶
func (self ParamTypeRefs) GetParamDescs() []core.ITypeRef
func (ParamTypeRefs) IsTypeRef ¶
func (self ParamTypeRefs) IsTypeRef() bool
func (ParamTypeRefs) IsVararg ¶
func (self ParamTypeRefs) IsVararg() bool
func (ParamTypeRefs) Key ¶
func (self ParamTypeRefs) Key() string
func (ParamTypeRefs) MarshalJSON ¶
func (self ParamTypeRefs) MarshalJSON() ([]byte, error)
func (ParamTypeRefs) String ¶
func (self ParamTypeRefs) String() string
type ParamTypes ¶
type ParamTypes struct { ClassName string Location core.Location ParamDescs []core.IType Vararg bool }
ParamTypes
func NewParamTypes ¶
func (ParamTypes) Alignment ¶
func (self ParamTypes) Alignment() int
func (ParamTypes) AllocSize ¶
func (self ParamTypes) AllocSize() int
func (ParamTypes) Argc ¶
func (self ParamTypes) Argc() int
func (ParamTypes) GetBaseType ¶
func (self ParamTypes) GetBaseType() core.IType
func (ParamTypes) GetParamDescs ¶
func (self ParamTypes) GetParamDescs() []core.IType
func (ParamTypes) IsAllocatedArray ¶
func (self ParamTypes) IsAllocatedArray() bool
func (ParamTypes) IsArray ¶
func (self ParamTypes) IsArray() bool
func (ParamTypes) IsCallable ¶
func (self ParamTypes) IsCallable() bool
func (ParamTypes) IsCastableTo ¶
func (self ParamTypes) IsCastableTo(target core.IType) bool
func (ParamTypes) IsCompatible ¶
func (self ParamTypes) IsCompatible(target core.IType) bool
func (ParamTypes) IsCompositeType ¶
func (self ParamTypes) IsCompositeType() bool
func (ParamTypes) IsFunction ¶
func (self ParamTypes) IsFunction() bool
func (ParamTypes) IsIncompleteArray ¶
func (self ParamTypes) IsIncompleteArray() bool
func (ParamTypes) IsInteger ¶
func (self ParamTypes) IsInteger() bool
func (ParamTypes) IsPointer ¶
func (self ParamTypes) IsPointer() bool
func (ParamTypes) IsSameType ¶
func (self ParamTypes) IsSameType(other core.IType) bool
func (ParamTypes) IsScalar ¶
func (self ParamTypes) IsScalar() bool
func (ParamTypes) IsSigned ¶
func (self ParamTypes) IsSigned() bool
func (ParamTypes) IsStruct ¶
func (self ParamTypes) IsStruct() bool
func (ParamTypes) IsUnion ¶
func (self ParamTypes) IsUnion() bool
func (ParamTypes) IsUserType ¶
func (self ParamTypes) IsUserType() bool
func (ParamTypes) IsVararg ¶
func (self ParamTypes) IsVararg() bool
func (ParamTypes) IsVoid ¶
func (self ParamTypes) IsVoid() bool
func (ParamTypes) Key ¶
func (self ParamTypes) Key() string
func (ParamTypes) MarshalJSON ¶
func (self ParamTypes) MarshalJSON() ([]byte, error)
func (ParamTypes) MinArgc ¶
func (self ParamTypes) MinArgc() int
func (ParamTypes) Size ¶
func (self ParamTypes) Size() int
func (ParamTypes) String ¶
func (self ParamTypes) String() string
type PointerType ¶
PointerType
func NewPointerType ¶
func NewPointerType(size int, baseType core.IType) *PointerType
func (PointerType) Alignment ¶
func (self PointerType) Alignment() int
func (PointerType) AllocSize ¶
func (self PointerType) AllocSize() int
func (PointerType) GetBaseType ¶
func (self PointerType) GetBaseType() core.IType
func (PointerType) IsAllocatedArray ¶
func (self PointerType) IsAllocatedArray() bool
func (PointerType) IsArray ¶
func (self PointerType) IsArray() bool
func (PointerType) IsCallable ¶
func (self PointerType) IsCallable() bool
func (PointerType) IsCastableTo ¶
func (self PointerType) IsCastableTo(target core.IType) bool
func (PointerType) IsCompatible ¶
func (self PointerType) IsCompatible(target core.IType) bool
func (PointerType) IsCompositeType ¶
func (self PointerType) IsCompositeType() bool
func (PointerType) IsFunction ¶
func (self PointerType) IsFunction() bool
func (PointerType) IsIncompleteArray ¶
func (self PointerType) IsIncompleteArray() bool
func (PointerType) IsInteger ¶
func (self PointerType) IsInteger() bool
func (PointerType) IsPointer ¶
func (self PointerType) IsPointer() bool
func (PointerType) IsSameType ¶
func (self PointerType) IsSameType(other core.IType) bool
func (PointerType) IsScalar ¶
func (self PointerType) IsScalar() bool
func (PointerType) IsSigned ¶
func (self PointerType) IsSigned() bool
func (PointerType) IsStruct ¶
func (self PointerType) IsStruct() bool
func (PointerType) IsUnion ¶
func (self PointerType) IsUnion() bool
func (PointerType) IsUserType ¶
func (self PointerType) IsUserType() bool
func (PointerType) IsVoid ¶
func (self PointerType) IsVoid() bool
func (PointerType) Key ¶
func (self PointerType) Key() string
func (PointerType) MarshalJSON ¶
func (self PointerType) MarshalJSON() ([]byte, error)
func (PointerType) Size ¶
func (self PointerType) Size() int
func (PointerType) String ¶
func (self PointerType) String() string
type PointerTypeRef ¶
PointerTypeRef
func NewPointerTypeRef ¶
func NewPointerTypeRef(baseType core.ITypeRef) *PointerTypeRef
func (PointerTypeRef) GetBaseType ¶
func (self PointerTypeRef) GetBaseType() core.ITypeRef
func (PointerTypeRef) GetLocation ¶
func (self PointerTypeRef) GetLocation() core.Location
func (PointerTypeRef) IsTypeRef ¶
func (self PointerTypeRef) IsTypeRef() bool
func (PointerTypeRef) Key ¶
func (self PointerTypeRef) Key() string
func (PointerTypeRef) MarshalJSON ¶
func (self PointerTypeRef) MarshalJSON() ([]byte, error)
func (PointerTypeRef) String ¶
func (self PointerTypeRef) String() string
type StructType ¶
StructType
func NewStructType ¶
func (StructType) Alignment ¶
func (self StructType) Alignment() int
func (StructType) AllocSize ¶
func (self StructType) AllocSize() int
func (StructType) GetBaseType ¶
func (self StructType) GetBaseType() core.IType
func (StructType) GetMemberOffset ¶
func (self StructType) GetMemberOffset(name string) int
func (StructType) GetMemberType ¶
func (self StructType) GetMemberType(name string) core.IType
func (StructType) GetMemberTypes ¶
func (self StructType) GetMemberTypes() []core.IType
func (StructType) GetMembers ¶
func (self StructType) GetMembers() []core.ISlot
func (StructType) GetName ¶
func (self StructType) GetName() string
func (StructType) HasMember ¶
func (self StructType) HasMember(name string) bool
func (StructType) IsAllocatedArray ¶
func (self StructType) IsAllocatedArray() bool
func (StructType) IsArray ¶
func (self StructType) IsArray() bool
func (StructType) IsCallable ¶
func (self StructType) IsCallable() bool
func (StructType) IsCastableTo ¶
func (self StructType) IsCastableTo(target core.IType) bool
func (StructType) IsCompatible ¶
func (self StructType) IsCompatible(target core.IType) bool
func (StructType) IsCompositeType ¶
func (self StructType) IsCompositeType() bool
func (StructType) IsFunction ¶
func (self StructType) IsFunction() bool
func (StructType) IsIncompleteArray ¶
func (self StructType) IsIncompleteArray() bool
func (StructType) IsInteger ¶
func (self StructType) IsInteger() bool
func (StructType) IsPointer ¶
func (self StructType) IsPointer() bool
func (StructType) IsSameType ¶
func (self StructType) IsSameType(other core.IType) bool
func (StructType) IsScalar ¶
func (self StructType) IsScalar() bool
func (StructType) IsSigned ¶
func (self StructType) IsSigned() bool
func (StructType) IsStruct ¶
func (self StructType) IsStruct() bool
func (StructType) IsUnion ¶
func (self StructType) IsUnion() bool
func (StructType) IsUserType ¶
func (self StructType) IsUserType() bool
func (StructType) IsVoid ¶
func (self StructType) IsVoid() bool
func (StructType) Key ¶
func (self StructType) Key() string
func (StructType) MarshalJSON ¶
func (self StructType) MarshalJSON() ([]byte, error)
func (StructType) Size ¶
func (self StructType) Size() int
func (StructType) String ¶
func (self StructType) String() string
type StructTypeRef ¶
StructTypeRef
func NewStructTypeRef ¶
func NewStructTypeRef(loc core.Location, name string) *StructTypeRef
func (StructTypeRef) GetLocation ¶
func (self StructTypeRef) GetLocation() core.Location
func (StructTypeRef) IsTypeRef ¶
func (self StructTypeRef) IsTypeRef() bool
func (StructTypeRef) Key ¶
func (self StructTypeRef) Key() string
func (StructTypeRef) MarshalJSON ¶
func (self StructTypeRef) MarshalJSON() ([]byte, error)
func (StructTypeRef) String ¶
func (self StructTypeRef) String() string
type TypeTable ¶
type TypeTable struct {
// contains filtered or unexported fields
}
func NewTypeTable ¶
func NewTypeTableFor ¶
func NewTypeTableILP32 ¶
func NewTypeTableILP32() *TypeTable
func NewTypeTableILP64 ¶
func NewTypeTableILP64() *TypeTable
func NewTypeTableLLP64 ¶
func NewTypeTableLLP64() *TypeTable
func NewTypeTableLP64 ¶
func NewTypeTableLP64() *TypeTable
func (TypeTable) GetCharSize ¶
func (TypeTable) GetIntSize ¶
func (TypeTable) GetLongSize ¶
func (TypeTable) GetParamType ¶
array is really a pointer on parameters.
func (TypeTable) GetPointerSize ¶
func (TypeTable) GetShortSize ¶
func (TypeTable) IsTypeTable ¶
func (TypeTable) PtrDiffType ¶
func (TypeTable) PtrDiffTypeName ¶
func (TypeTable) PtrDiffTypeRef ¶
func (*TypeTable) SemanticCheck ¶
func (self *TypeTable) SemanticCheck(errorHandler *core.ErrorHandler)
func (TypeTable) SignedChar ¶
func (self TypeTable) SignedChar() *IntegerType
func (TypeTable) SignedInt ¶
func (self TypeTable) SignedInt() *IntegerType
func (TypeTable) SignedLong ¶
func (self TypeTable) SignedLong() *IntegerType
func (TypeTable) SignedShort ¶
func (self TypeTable) SignedShort() *IntegerType
func (TypeTable) SignedStackType ¶
func (self TypeTable) SignedStackType() *IntegerType
func (TypeTable) UnsignedChar ¶
func (self TypeTable) UnsignedChar() *IntegerType
func (TypeTable) UnsignedInt ¶
func (self TypeTable) UnsignedInt() *IntegerType
func (TypeTable) UnsignedLong ¶
func (self TypeTable) UnsignedLong() *IntegerType
func (TypeTable) UnsignedShort ¶
func (self TypeTable) UnsignedShort() *IntegerType
func (TypeTable) UnsignedStackType ¶
func (self TypeTable) UnsignedStackType() *IntegerType
type UnionType ¶
UnionType
func NewUnionType ¶
func (UnionType) GetBaseType ¶
func (UnionType) GetMemberOffset ¶
func (UnionType) GetMemberTypes ¶
func (UnionType) GetMembers ¶
func (UnionType) IsAllocatedArray ¶
func (UnionType) IsCallable ¶
func (UnionType) IsCompositeType ¶
func (UnionType) IsFunction ¶
func (UnionType) IsIncompleteArray ¶
func (UnionType) IsUserType ¶
func (UnionType) MarshalJSON ¶
type UnionTypeRef ¶
UnionTypeRef
func NewUnionTypeRef ¶
func NewUnionTypeRef(loc core.Location, name string) *UnionTypeRef
func (UnionTypeRef) GetLocation ¶
func (self UnionTypeRef) GetLocation() core.Location
func (UnionTypeRef) IsTypeRef ¶
func (self UnionTypeRef) IsTypeRef() bool
func (UnionTypeRef) Key ¶
func (self UnionTypeRef) Key() string
func (UnionTypeRef) MarshalJSON ¶
func (self UnionTypeRef) MarshalJSON() ([]byte, error)
func (UnionTypeRef) String ¶
func (self UnionTypeRef) String() string
type UserType ¶
UserType
func (UserType) GetBaseType ¶
func (UserType) GetRealType ¶
func (UserType) IsAllocatedArray ¶
func (UserType) IsCallable ¶
func (UserType) IsCompositeType ¶
func (UserType) IsFunction ¶
func (UserType) IsIncompleteArray ¶
func (UserType) IsUserType ¶
func (UserType) MarshalJSON ¶
type UserTypeRef ¶
UserTypeRef
func NewUserTypeRef ¶
func NewUserTypeRef(loc core.Location, name string) *UserTypeRef
func (UserTypeRef) GetLocation ¶
func (self UserTypeRef) GetLocation() core.Location
func (UserTypeRef) GetName ¶
func (self UserTypeRef) GetName() string
func (UserTypeRef) IsTypeRef ¶
func (self UserTypeRef) IsTypeRef() bool
func (UserTypeRef) Key ¶
func (self UserTypeRef) Key() string
func (UserTypeRef) MarshalJSON ¶
func (self UserTypeRef) MarshalJSON() ([]byte, error)
func (UserTypeRef) String ¶
func (self UserTypeRef) String() string
type VoidType ¶
type VoidType struct {
ClassName string
}
VoidType
func NewVoidType ¶
func NewVoidType() *VoidType
func (VoidType) GetBaseType ¶
func (VoidType) IsAllocatedArray ¶
func (VoidType) IsCallable ¶
func (VoidType) IsCompositeType ¶
func (VoidType) IsFunction ¶
func (VoidType) IsIncompleteArray ¶
func (VoidType) IsUserType ¶
func (VoidType) MarshalJSON ¶
type VoidTypeRef ¶
VoidTypeRef
func NewVoidTypeRef ¶
func NewVoidTypeRef(loc core.Location) *VoidTypeRef
func (VoidTypeRef) GetLocation ¶
func (self VoidTypeRef) GetLocation() core.Location
func (VoidTypeRef) IsTypeRef ¶
func (self VoidTypeRef) IsTypeRef() bool
func (VoidTypeRef) Key ¶
func (self VoidTypeRef) Key() string
func (VoidTypeRef) MarshalJSON ¶
func (self VoidTypeRef) MarshalJSON() ([]byte, error)
func (VoidTypeRef) String ¶
func (self VoidTypeRef) String() string
Click to show internal directories.
Click to hide internal directories.