Versions in this module Expand all Collapse all v0 v0.2.0 Dec 17, 2022 Changes in this version + const DYNSIZE + func DartSizeof(t Term) int + func FillAllSize(t Term) + func GoSizeof(t Term) int + func IsDartSizeDynamic(t Term) bool + func IsGoSizeDynamic(t Term) bool + type Array struct + Elem Term + Len int + func NewArray(length int) *Array + func (arr *Array) AddChild(t Term) + func (arr *Array) Traverse(visitPre, visitPost visitor) + func (h *Array) GetHeader() *termHeader + func (i *Array) GetIdent() *Ident + func (i *Array) SetIdent(ident *Ident) + type Basic struct + TypeInfo types.BasicInfo + TypeKind types.BasicKind + TypeName string + func NewBasic(typ *types.Basic) *Basic + func (b *Basic) AddChild(Term) + func (b *Basic) Traverse(visitPre, visitPost visitor) + func (h *Basic) GetHeader() *termHeader + func (i *Basic) GetIdent() *Ident + func (i *Basic) SetIdent(ident *Ident) + type Chan struct + Chid uint8 + Elem Term + func NewChan() *Chan + func (h *Chan) GetHeader() *termHeader + func (x *Chan) AddChild(t Term) + func (x *Chan) Traverse(visitPre, visitPost visitor) + type Coerce struct + Elem Term + func NewCoerce(obj types.Object, uri uri.Uri) *Coerce + func (c *Coerce) AddChild(t Term) + func (c *Coerce) Traverse(visitPre, visitPost visitor) + func (h *Coerce) GetHeader() *termHeader + type Elem = Term + type Field struct + Name string + Term Term + func NewField(name string, directives *FieldDirectives) *Field + func (f *Field) AddChild(t Term) + func (f *Field) DartName() string + func (f *Field) Traverse(visitPre, visitPost visitor) + func (h *Field) GetHeader() *termHeader + type FieldDirectives struct + BlockUntilListen bool + Broadcast bool + Memorized bool + RenameInDart string + SendBackToGo bool + SendToDart bool + func ParseFieldDirectives(spec string) *FieldDirectives + type HasIdent interface + GetIdent func() *Ident + SetIdent func(*Ident) + type Ident struct + Name string + Pkg *types.Package + Uri uri.Uri + func NewIdent(pkg *types.Package, name string, uri uri.Uri) *Ident + type Map struct + Key Term + Value Term + func NewMap() *Map + func (h *Map) GetHeader() *termHeader + func (i *Map) GetIdent() *Ident + func (i *Map) SetIdent(ident *Ident) + func (m *Map) AddChild(t Term) + func (m *Map) Traverse(visitPre, visitPost visitor) + type Optional struct + Term Term + func NewOptional() *Optional + func (h *Optional) GetHeader() *termHeader + func (o *Optional) AddChild(t Term) + func (o *Optional) Traverse(visitPre, visitPost visitor) + type PinToken struct + Term Term + func NewPinToken() *PinToken + func (h *PinToken) GetHeader() *termHeader + func (x *PinToken) AddChild(t Term) + func (x *PinToken) Traverse(visitPre, visitPost visitor) + type PtrTo struct + Elem Term + func NewPtrTo() *PtrTo + func (h *PtrTo) GetHeader() *termHeader + func (i *PtrTo) GetIdent() *Ident + func (i *PtrTo) SetIdent(ident *Ident) + func (p *PtrTo) AddChild(t Term) + func (p *PtrTo) Traverse(visitPre, visitPost visitor) + type Slice struct + Elem Term + func NewSlice() *Slice + func (h *Slice) GetHeader() *termHeader + func (i *Slice) GetIdent() *Ident + func (i *Slice) SetIdent(ident *Ident) + func (s *Slice) AddChild(t Term) + func (s *Slice) Traverse(visitPre, visitPost visitor) + type Struct struct + Chans []*Field + Fields []*Field + Nchans int + func NewStruct() *Struct + func (h *Struct) GetHeader() *termHeader + func (i *Struct) GetIdent() *Ident + func (i *Struct) SetIdent(ident *Ident) + func (s *Struct) AddChild(t Term) + func (s *Struct) IsFieldNameConflicted(name string) bool + func (s *Struct) Traverse(visitPre, visitPost visitor) + type Term interface + AddChild func(Term) + GetHeader func() *termHeader + Traverse func(visitPre, visitPost visitor)