Documentation
¶
Index ¶
- func NativeFieldIsFunction(name, field string) (bool, bool)
- func NativeModuleFields(name string) (map[string]bool, bool)
- func NativeModuleNames() []string
- func Same(a, b *Type) bool
- type FunctionShape
- type Indexer
- type Kind
- type LiteralValue
- type Options
- type StructCtor
- type TableField
- type TableShape
- type Type
- func Intersect(members ...*Type) *Type
- func NewBooleanLiteral(v bool, raw string) *Type
- func NewFunction(params []*Type, returns []*Type, isVararg bool, varargType *Type) *Type
- func NewNumberLiteral(v float64, raw string) *Type
- func NewStringLiteral(v, raw string) *Type
- func NewTable(fields []TableField, indexer *Indexer) *Type
- func NewUnion(members ...*Type) *Type
- func Optional(t *Type) *Type
- type TypeError
- type TypeErrors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NativeFieldIsFunction ¶
func NativeModuleNames ¶
func NativeModuleNames() []string
Types ¶
type FunctionShape ¶
type LiteralValue ¶
type StructCtor ¶
type StructCtor struct {
Name string
Shape *TableShape
}
type TableField ¶
type TableShape ¶
type TableShape struct {
Fields []TableField
Indexer *Indexer
}
type Type ¶
type Type struct {
Kind Kind
Fn *FunctionShape
Table *TableShape
Union []*Type
Lit *LiteralValue
Bound *Type
AliasName string
}
func NewBooleanLiteral ¶
func NewFunction ¶
func NewNumberLiteral ¶
func NewStringLiteral ¶
func NewTable ¶
func NewTable(fields []TableField, indexer *Indexer) *Type
type TypeError ¶
type TypeErrors ¶
type TypeErrors struct {
Errors []TypeError
}
func (*TypeErrors) Error ¶
func (te *TypeErrors) Error() string
Click to show internal directories.
Click to hide internal directories.