Versions in this module Expand all Collapse all v0 v0.5.0 Jun 21, 2024 Changes in this version + type ArgInfo struct + Name string + Type TypeInfo + func (arg ArgInfo) String() string + type EnumDecl struct + Cases []VariableDecl + Name string + Type TypeInfo + func (e EnumDecl) String() string + type FuncArgs []ArgInfo + func (args FuncArgs) String() string + type FunctionDecl struct + Args FuncArgs + IsBlock bool + IsPtr bool + Name string + ReturnType TypeInfo + Variadic bool + func (f *FunctionDecl) Ident() string + func (f FunctionDecl) String() string + type Hint int + const HintEnumCase + const HintFunction + const HintNone + const HintVariable + type InterfaceDecl struct + Name string + Params []TypeInfo + SuperName string + func (i InterfaceDecl) String() string + type MethodDecl struct + Args []ArgInfo + NameParts []string + ReturnType TypeInfo + TypeMethod bool + Unavailable bool + Variadic bool + func (m *MethodDecl) Name() string + func (m MethodDecl) String() string + type Node interface + String func() string + type Parser struct + Hint Hint + func NewParser(r io.Reader) *Parser + func NewStringParser(s string) *Parser + func (p *Parser) Parse() (*Statement, error) + type PropAttr int + const PropAttrAssign + const PropAttrAtomic + const PropAttrClass + const PropAttrCopy + const PropAttrGetter + const PropAttrNonatomic + const PropAttrNonnull + const PropAttrNullable + const PropAttrReadonly + const PropAttrReadwrite + const PropAttrRetain + const PropAttrSetter + const PropAttrStrong + const PropAttrWeak + func PropAttrs() []PropAttr + func (attr PropAttr) String() string + type PropertyDecl struct + Attrs map[PropAttr]string + IsOutlet bool + Name string + Type TypeInfo + func (p *PropertyDecl) HasAttr(attr PropAttr) bool + func (p PropertyDecl) String() string + type ProtocolDecl struct + Name string + SuperName string + func (i ProtocolDecl) String() string + type Statement struct + Enum *EnumDecl + Function *FunctionDecl + Interface *InterfaceDecl + Method *MethodDecl + Property *PropertyDecl + Protocol *ProtocolDecl + Struct *StructDecl + TypeAlias *TypeInfo + Typedef string + Variable *VariableDecl + func (s Statement) String() string + type StructDecl struct + Fields []VariableDecl + Name string + func (s StructDecl) String() string + type TypeAnnotation int + const TypeAnnotByCopy + const TypeAnnotByRef + const TypeAnnotConst + const TypeAnnotCovariant + const TypeAnnotIn + const TypeAnnotInout + const TypeAnnotKindOf + const TypeAnnotNonnull + const TypeAnnotNullUnspecified + const TypeAnnotNullable + const TypeAnnotOneway + const TypeAnnotOut + const TypeAnnotSigned + const TypeAnnotStruct + const TypeAnnotUnavailable + const TypeAnnotUnsigned + func TypeAnnotations() []TypeAnnotation + func (annot TypeAnnotation) Format() string + func (annot TypeAnnotation) String() string + type TypeInfo struct + Annots map[TypeAnnotation]bool + Func *FunctionDecl + IsPtr bool + IsPtrPtr bool + Name string + Params []TypeInfo + func (t TypeInfo) String() string + func (ti TypeInfo) TypeNames() (t []string) + type VariableDecl struct + Name string + Type TypeInfo + Value string + func (v VariableDecl) String() string