Documentation
¶
Index ¶
- func FormatCode(dir string)
- func RemoveGeneratedCode(dir string)
- type Generator
- func (db *Generator) AllowedEnumAlias(s Symbol) bool
- func (db *Generator) EnumValues(framework string) (symbols []Symbol)
- func (db *Generator) Generate(platform string, version int, rootDir string, framework string, ...)
- func (db *Generator) Members(fw string, sym Symbol, covariantTypes []string) (properties []*codegen.Property, methods []*codegen.Method)
- func (db *Generator) ParseType(ti declparse.TypeInfo) (typ typing.Type)
- func (db *Generator) ResolveTypeAlias(typeName string) (declparse.TypeInfo, bool)
- func (db *Generator) ToClassGen(sym Symbol) *codegen.Class
- func (db *Generator) ToEnumInfo(fw string, sym Symbol) *codegen.AliasInfo
- func (db *Generator) ToProtocolGen(fw string, sym Symbol) *codegen.Protocol
- func (db *Generator) TypeFromSymbol(sym Symbol) typing.Type
- func (db *Generator) TypeFromSymbolName(name string) typing.Type
- type Parameter
- type Platform
- type Symbol
- type SymbolCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatCode ¶
func FormatCode(dir string)
func RemoveGeneratedCode ¶
func RemoveGeneratedCode(dir string)
Types ¶
type Generator ¶
type Generator struct {
*SymbolCache
Platform string
Version int
Framework string
// contains filtered or unexported fields
}
func (*Generator) AllowedEnumAlias ¶
func (*Generator) EnumValues ¶
func (*Generator) ResolveTypeAlias ¶
func (*Generator) ToEnumInfo ¶
func (*Generator) ToProtocolGen ¶
type Symbol ¶
type Symbol struct {
Name string
Path string
Kind string // Class, Constant, Enum, Framework, Function, Macro, Method, Property, Protocol, Struct, Type
Description string
Type string
Parent string
Modules []string
Platforms []Platform
Declaration string
Declarations map[string]string
Parameters []Parameter
Return string
Deprecated bool
InheritedFrom string
}
func (Symbol) HasFramework ¶
func (Symbol) HasPlatform ¶
func (Symbol) MainModule ¶
type SymbolCache ¶
type SymbolCache struct {
*zip.ReadCloser
// contains filtered or unexported fields
}
func OpenSymbols ¶
func OpenSymbols(filename string) (*SymbolCache, error)
func (*SymbolCache) AllSymbols ¶
func (db *SymbolCache) AllSymbols() (symbols []Symbol)
func (*SymbolCache) FindTypeSymbol ¶
func (db *SymbolCache) FindTypeSymbol(name string) *Symbol
func (*SymbolCache) ModuleSymbol ¶
func (db *SymbolCache) ModuleSymbol(m modules.Module) *Symbol
func (*SymbolCache) ModuleSymbols ¶
func (db *SymbolCache) ModuleSymbols(module string) (symbols []Symbol)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.