Documentation
¶
Overview ¶
The objc package takes the result of an AST traversal by the importers package and uses the clang command to dump the type information for the referenced ObjC classes and protocols.
It is the of go/types for ObjC types and is used by the bind package to generate Go wrappers for ObjC API on iOS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
type Func struct {
Sig string
GoName string
Params []*Param
Ret *Type
Static bool
// Method whose name start with "init"
Constructor bool
}
Func is a ObjC method, static functions as well as instance methods.
type Named ¶
type Named struct {
Name string
GoName string
Module string
Funcs []*Func
Methods []*Func
AllMethods []*Func
Supers []Super
Protocol bool
// Generated is true if the type is wrapper of a
// generated Go struct.
Generated bool
// contains filtered or unexported fields
}
Named represents ObjC classes and protocols.
type Type ¶
type Type struct {
Kind TypeKind
// For Interface and Protocol types.
Name string
// The declared type raw from the AST.
Decl string
// Set if the type is a pointer to its kind. For classes
// Indirect is true if the type is a double pointer, e.g.
// NSObject **.
Indirect bool
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.