Documentation
¶
Index ¶
- type Ast
- type AstItem
- type Bool
- type Borrow
- type Case
- type Char
- type Constructor
- type Enum
- type EnumCase
- type Export
- type ExternType
- type ExternTypeFunc
- type ExternTypeInterface
- type ExternTypeUsePath
- type Field
- type Flag
- type Flags
- type Float32
- type Float64
- type FuncItem
- type FuncType
- type Future
- type Handle
- type Id
- type Import
- type Include
- type IncludeName
- type Interface
- type InterfaceItem
- type List
- type Method
- type Option
- type Own
- type PackageDeclaration
- type Parameter
- type Record
- type Resource
- type ResourceMethod
- type Result
- type ResultList
- type S16
- type S32
- type S64
- type S8
- type Static
- type Stream
- type String
- type TopLevelUse
- type Tuple
- type Type
- type TypeDef
- type TypeItem
- type U16
- type U32
- type U64
- type U8
- type Use
- type UseName
- type UsePath
- type Variant
- type Version
- type World
- type WorldItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ast ¶
type Ast struct {
PackageDeclaration types.Option[PackageDeclaration]
Items []AstItem
}
type AstItem ¶
type AstItem struct {
Interface *Interface
World *World
Use *TopLevelUse
}
type Constructor ¶
type Constructor struct {
ResourceMethod
ParameterList []Parameter
}
type Export ¶
type Export struct {
WorldItem
ExternType ExternType
}
type ExternType ¶
type ExternType interface {
// contains filtered or unexported methods
}
type ExternTypeFunc ¶
type ExternTypeFunc struct {
ExternType
ID string
Func *FuncType
}
type ExternTypeInterface ¶
type ExternTypeInterface struct {
ExternType
ID string
InterfaceItems []InterfaceItem
}
type ExternTypeUsePath ¶
type ExternTypeUsePath struct {
ExternType
UsePath *UsePath
}
type FuncItem ¶
type FuncItem struct {
InterfaceItem
ID string
FuncType *FuncType
}
type FuncType ¶
type FuncType struct {
Params []Parameter
Results *ResultList
}
type Import ¶
type Import struct {
WorldItem
ExternType ExternType
}
type Include ¶
type Include struct {
WorldItem
From *UsePath
Names []IncludeName
}
type IncludeName ¶
type Interface ¶
type Interface struct {
Name string
Items []InterfaceItem
}
type InterfaceItem ¶
type InterfaceItem interface {
// contains filtered or unexported methods
}
type Method ¶
type Method struct {
ResourceMethod
ID string
Func *FuncItem
}
type PackageDeclaration ¶
type Resource ¶
type Resource struct {
TypeDef
ID string
Methods []ResourceMethod
}
type ResourceMethod ¶
type ResourceMethod interface {
// contains filtered or unexported methods
}
type ResultList ¶
type Static ¶
type Static struct {
ResourceMethod
ID string
FuncType *FuncType
}
type TopLevelUse ¶
type TypeDef ¶
type TypeDef interface {
WorldItem
InterfaceItem
// contains filtered or unexported methods
}
type UsePath ¶
type UsePath struct {
Id string
Package struct {
Id *PackageDeclaration
Name string
}
}
Click to show internal directories.
Click to hide internal directories.