Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnumDecl ¶
type EnumDecl struct {
Name string
Type TypeInfo
Cases []VariableDecl
}
type FunctionDecl ¶
type FunctionDecl struct {
Name string
ReturnType TypeInfo
Args FuncArgs
IsBlock bool
IsPtr bool
Variadic bool
}
func (*FunctionDecl) Ident ¶
func (f *FunctionDecl) Ident() string
func (FunctionDecl) String ¶
func (f FunctionDecl) String() string
type InterfaceDecl ¶
func (InterfaceDecl) String ¶
func (i InterfaceDecl) String() string
type MethodDecl ¶
type MethodDecl struct {
TypeMethod bool // instance method otherwise
ReturnType TypeInfo
NameParts []string
Args []ArgInfo
Variadic bool
}
func (*MethodDecl) Name ¶
func (m *MethodDecl) Name() string
func (MethodDecl) String ¶
func (m MethodDecl) String() string
type Parser ¶
type Parser struct {
Hint Hint
// contains filtered or unexported fields
}
func NewStringParser ¶
type PropertyDecl ¶
func (*PropertyDecl) HasAttr ¶
func (p *PropertyDecl) HasAttr(attr PropAttr) bool
func (PropertyDecl) String ¶
func (p PropertyDecl) String() string
type ProtocolDecl ¶
func (ProtocolDecl) String ¶
func (i ProtocolDecl) String() string
type Statement ¶
type Statement struct {
Method *MethodDecl
Property *PropertyDecl
Interface *InterfaceDecl
Protocol *ProtocolDecl
Function *FunctionDecl
Variable *VariableDecl
Enum *EnumDecl
Struct *StructDecl
TypeAlias *TypeInfo
Typedef string
}
type StructDecl ¶
type StructDecl struct {
Name string
Fields []VariableDecl
}
func (StructDecl) String ¶
func (s StructDecl) String() string
type TypeAnnotation ¶
type TypeAnnotation int
const ( TypeAnnotConst TypeAnnotation = iota TypeAnnotOneway TypeAnnotSigned TypeAnnotUnsigned TypeAnnotKindOf TypeAnnotCovariant TypeAnnotIn TypeAnnotOut TypeAnnotInout TypeAnnotByCopy TypeAnnotByRef TypeAnnotNullable TypeAnnotNonnull TypeAnnotNullUnspecified TypeAnnotStruct )
func TypeAnnotations ¶
func TypeAnnotations() []TypeAnnotation
func (TypeAnnotation) Format ¶
func (annot TypeAnnotation) Format() string
func (TypeAnnotation) String ¶
func (annot TypeAnnotation) String() string
type TypeInfo ¶
type TypeInfo struct {
Name string
IsPtr bool
IsPtrPtr bool
Annots map[TypeAnnotation]bool
Func *FunctionDecl
Params []TypeInfo
}
type VariableDecl ¶
func (VariableDecl) String ¶
func (v VariableDecl) String() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.