Documentation ¶
Index ¶
- Variables
- func ExternalDeclaration(i int, ed *cc.ExternalDeclaration)
- func GetCurrentDir() string
- func HasHandlerClass(fname string) bool
- func InCefHeader(t Token) bool
- func InTargetFile(t Token) (f bool, fname string)
- func IsHandlerClass(t Token) (c bool)
- func Parse() []*cc.TranslationUnit
- type Callable
- type Callee
- type CefClassDecl
- type Decl
- type DeclCommon
- func (decl DeclCommon) BaseName() string
- func (decl DeclCommon) Call() (call string)
- func (decl DeclCommon) CefName() string
- func (d *DeclCommon) Common() *DeclCommon
- func (decl DeclCommon) FilePos() string
- func (decl DeclCommon) GoName() string
- func (decl DeclCommon) Line() int
- func (decl DeclCommon) LineOfTypedef() (lineno int)
- func (decl DeclCommon) RetStr() (str string)
- func (s *DeclCommon) SetComment(comments map[int][]string)
- func (decl DeclCommon) Token() Token
- type DefKind
- type EnumDecl
- type FuncDecl
- func (f *FuncDecl) CalleeName() string
- func (f FuncDecl) HasOutParam() (has bool)
- func (f FuncDecl) HasReturnValue() (has bool)
- func (f FuncDecl) IsBoolValueMethod() (boolMethod bool)
- func (f FuncDecl) Params() []Param
- func (f FuncDecl) ReturnGoType() string
- func (f *FuncDecl) ReturnType() (retType Type)
- type IdentKind
- type Member
- type MethodDecl
- func (mp *MethodDecl) CalleeName() string
- func (mp *MethodDecl) ClassBaseName() string
- func (m MethodDecl) FirstLine() (line int)
- func (m MethodDecl) HasConstParams() (has bool)
- func (m MethodDecl) HasOutParam() (has bool)
- func (m MethodDecl) HasReturnValue() (has bool)
- func (m MethodDecl) IfName() (ifname string)
- func (m MethodDecl) IsBoolValueMethod() (boolMethod bool)
- func (m MethodDecl) IsGetFunc() bool
- func (m MethodDecl) Params() []Param
- func (m MethodDecl) ReturnGoType() string
- func (m MethodDecl) ReturnType() (retType Type)
- func (m MethodDecl) Type() string
- type Param
- func (p Param) CType() (t string)
- func (p Param) GoCType() (t string)
- func (p Param) GoType() (t string)
- func (p Param) GoTypeIn() (t string)
- func (p Param) IsBoolParam() (isBool bool)
- func (p Param) IsByteSliceLengthParam() (isByteSliceLength bool)
- func (p Param) IsByteSliceParam() (isByteSlice bool, maxLengthArg string)
- func (p Param) IsHandlerClass() bool
- func (p Param) IsInOutParam() (isOut bool)
- func (p Param) IsOutParam() (isOut bool)
- func (p Param) IsRefCountedClass() bool
- func (p Param) IsScopedClass() bool
- func (p Param) IsSliceLengthParam() (isSliceLength bool)
- func (p Param) IsSliceParam() (isSlice bool, maxLengthArg string)
- func (p Param) Name() string
- func (p Param) String() string
- func (p Param) Type() (ty Type)
- type SimpleDecl
- type StructDecl
- type StructType
- type Token
- type Ty
- type Type
- func (t Type) BaseName() (ret string)
- func (t Type) CType() (ret string)
- func (t Type) Deref() (t0 Type)
- func (t Type) GoCType() (ct string)
- func (t Type) GoType() (ret string)
- func (t Type) IsHandlerClass() bool
- func (t Type) IsRefCountedClass() bool
- func (t Type) IsScopedClass() bool
- func (t Type) IsSimpleDefName() bool
- func (t Type) Name() string
- func (t Type) String() string
- func (t Type) TitleCase() (ret string)
- type TypeQualifier
- type UnhandledDecl
Constants ¶
This section is empty.
Variables ¶
View Source
var Defs = map[string]Decl{}
View Source
var FileDefs = map[string][]Decl{}
View Source
var TargetFileList = map[string]void{
"cef_types.h": setElement,
"cef_types_win.h": setElement,
"cef_accessibility_handler_capi.h": setElement,
"cef_app_capi.h": setElement,
"cef_auth_callback_capi.h": setElement,
"cef_browser_capi.h": setElement,
"cef_browser_process_handler_capi.h": setElement,
"cef_callback_capi.h": setElement,
"cef_cookie_capi.h": setElement,
"cef_client_capi.h": setElement,
"cef_command_line_capi.h": setElement,
"cef_context_menu_handler_capi.h": setElement,
"cef_dialog_handler_capi.h": setElement,
"cef_display_handler_capi.h": setElement,
"cef_download_handler_capi.h": setElement,
"cef_download_item_capi.h": setElement,
"cef_dom_capi.h": setElement,
"cef_drag_data_capi.h": setElement,
"cef_drag_handler_capi.h": setElement,
"cef_extension_capi.h": setElement,
"cef_extension_handler_capi.h": setElement,
"cef_frame_capi.h": setElement,
"cef_find_handler_capi.h": setElement,
"cef_focus_handler_capi.h": setElement,
"cef_image_capi.h": setElement,
"cef_jsdialog_handler_capi.h": setElement,
"cef_keyboard_handler_capi.h": setElement,
"cef_life_span_handler_capi.h": setElement,
"cef_load_handler_capi.h": setElement,
"cef_menu_model_capi.h": setElement,
"cef_menu_model_delegate_capi.h": setElement,
"cef_process_message_capi.h": setElement,
"cef_navigation_entry_capi.h": setElement,
"cef_print_handler_capi.h": setElement,
"cef_print_settings_capi.h": setElement,
"cef_render_handler_capi.h": setElement,
"cef_render_process_handler_capi.h": setElement,
"cef_request_capi.h": setElement,
"cef_request_callback_capi.h": setElement,
"cef_request_context_capi.h": setElement,
"cef_request_context_handler_capi.h": setElement,
"cef_request_handler_capi.h": setElement,
"cef_resource_handler_capi.h": setElement,
"cef_resource_bundle_handler_capi.h": setElement,
"cef_resource_request_handler_capi.h": setElement,
"cef_response_filter_capi.h": setElement,
"cef_ssl_info_capi.h": setElement,
"cef_ssl_status_capi.h": setElement,
"cef_string_visitor_capi.h": setElement,
"cef_stream_capi.h": setElement,
"cef_response_capi.h": setElement,
"cef_scheme_capi.h": setElement,
"cef_task_capi.h": setElement,
"cef_urlrequest_capi.h": setElement,
"cef_v8_capi.h": setElement,
"cef_values_capi.h": setElement,
"cef_x509_certificate_capi.h": setElement,
"cef_web_plugin_capi.h": setElement,
"cef_string_list.h": setElement,
"cef_string_map.h": setElement,
"cef_string_multimap.h": setElement,
"cef_time.h": setElement,
"cef_box_layout_capi.h": setElement,
"cef_browser_view_delegate_capi.h": setElement,
"cef_browser_view_capi.h": setElement,
"cef_button_capi.h": setElement,
"cef_button_delegate_capi.h": setElement,
"cef_display_capi.h": setElement,
"cef_fill_layout_capi.h": setElement,
"cef_label_button_capi.h": setElement,
"cef_layout_capi.h": setElement,
"cef_menu_button_capi.h": setElement,
"cef_menu_button_delegate_capi.h": setElement,
"cef_panel_capi.h": setElement,
"cef_panel_delegate_capi.h": setElement,
"cef_scroll_view_capi.h": setElement,
"cef_textfield_capi.h": setElement,
"cef_textfield_delegate_capi.h": setElement,
"cef_view_capi.h": setElement,
"cef_view_delegate_capi.h": setElement,
"cef_window_capi.h": setElement,
"cef_window_delegate_capi.h": setElement,
}
Functions ¶
func ExternalDeclaration ¶
func ExternalDeclaration(i int, ed *cc.ExternalDeclaration)
ExternalDeclaration:
FunctionDefinition
| Declaration // Case 1 | BasicAssemblerStatement ';' // Case 2 | ';' // Case 3
func HasHandlerClass ¶
func InCefHeader ¶
func InTargetFile ¶
func IsHandlerClass ¶
func Parse ¶
func Parse() []*cc.TranslationUnit
Types ¶
type CefClassDecl ¶ added in v0.2.0
type CefClassDecl struct { DeclCommon St StructType BaseType string Methods []*MethodDecl }
func (*CefClassDecl) GetBase ¶ added in v0.2.5
func (s *CefClassDecl) GetBase() (base *CefClassDecl)
func (*CefClassDecl) SetComment ¶ added in v0.2.0
func (s *CefClassDecl) SetComment(comments map[int][]string)
type Decl ¶
type Decl interface { SetComment(comments map[int][]string) Common() *DeclCommon }
type DeclCommon ¶
func (DeclCommon) BaseName ¶
func (decl DeclCommon) BaseName() string
func (DeclCommon) Call ¶
func (decl DeclCommon) Call() (call string)
func (DeclCommon) CefName ¶
func (decl DeclCommon) CefName() string
func (*DeclCommon) Common ¶
func (d *DeclCommon) Common() *DeclCommon
func (DeclCommon) FilePos ¶
func (decl DeclCommon) FilePos() string
func (DeclCommon) GoName ¶
func (decl DeclCommon) GoName() string
func (DeclCommon) Line ¶
func (decl DeclCommon) Line() int
func (DeclCommon) LineOfTypedef ¶
func (decl DeclCommon) LineOfTypedef() (lineno int)
func (DeclCommon) RetStr ¶
func (decl DeclCommon) RetStr() (str string)
func (*DeclCommon) SetComment ¶
func (s *DeclCommon) SetComment(comments map[int][]string)
func (DeclCommon) Token ¶
func (decl DeclCommon) Token() Token
type EnumDecl ¶
type EnumDecl struct { DeclCommon Enums []Token }
type FuncDecl ¶
type FuncDecl struct { DeclCommon Funcname Token // contains filtered or unexported fields }
func (*FuncDecl) CalleeName ¶
func (FuncDecl) HasOutParam ¶ added in v0.2.0
func (FuncDecl) HasReturnValue ¶ added in v0.2.0
func (FuncDecl) IsBoolValueMethod ¶
func (FuncDecl) ReturnGoType ¶
func (*FuncDecl) ReturnType ¶
type MethodDecl ¶
type MethodDecl struct { Funcname Token Comment []string // contains filtered or unexported fields }
func (*MethodDecl) CalleeName ¶
func (mp *MethodDecl) CalleeName() string
func (*MethodDecl) ClassBaseName ¶
func (mp *MethodDecl) ClassBaseName() string
func (MethodDecl) FirstLine ¶
func (m MethodDecl) FirstLine() (line int)
func (MethodDecl) HasConstParams ¶
func (m MethodDecl) HasConstParams() (has bool)
func (MethodDecl) HasOutParam ¶ added in v0.2.0
func (m MethodDecl) HasOutParam() (has bool)
func (MethodDecl) HasReturnValue ¶ added in v0.2.0
func (m MethodDecl) HasReturnValue() (has bool)
func (MethodDecl) IfName ¶
func (m MethodDecl) IfName() (ifname string)
func (MethodDecl) IsBoolValueMethod ¶
func (m MethodDecl) IsBoolValueMethod() (boolMethod bool)
func (MethodDecl) IsGetFunc ¶
func (m MethodDecl) IsGetFunc() bool
func (MethodDecl) Params ¶
func (m MethodDecl) Params() []Param
func (MethodDecl) ReturnGoType ¶
func (m MethodDecl) ReturnGoType() string
func (MethodDecl) ReturnType ¶
func (m MethodDecl) ReturnType() (retType Type)
func (MethodDecl) Type ¶
func (m MethodDecl) Type() string
type Param ¶
func (Param) IsBoolParam ¶
func (Param) IsByteSliceLengthParam ¶
func (Param) IsByteSliceParam ¶
func (Param) IsHandlerClass ¶
func (Param) IsInOutParam ¶
func (Param) IsOutParam ¶
func (Param) IsRefCountedClass ¶
func (Param) IsScopedClass ¶
func (Param) IsSliceLengthParam ¶
func (Param) IsSliceParam ¶
type SimpleDecl ¶
type SimpleDecl struct {
DeclCommon
}
type StructDecl ¶
type StructDecl struct { DeclCommon Members []Member }
type StructType ¶
type StructType int
const ( StUnknown StructType = iota StRefCounted StScoped StYetNotDefined )
func (StructType) String ¶
func (i StructType) String() string
type Token ¶
func (Token) AbsFilename ¶
type Ty ¶
type Ty int
const ( TyUnknown Ty = iota TyVoid TyChar TyUnsigned TyInt TyLong TyLongLong TyULong TyULongLong TyFloat TyDouble TySizeT TyHWND TyStructUnhandled TyStructSimple TyStructRefCounted TyStructScoped TyStructNotDefined TyInt16 TyInt32 TyInt64 TyUint16 TyUint32 TyUint64 TyTimeT TyStringT TyStringUserfreeT TyOther TyEnum TySimple TyMSG TyHCURSOR TyHINSTANCE TyDWORD TyHMENU )
type Type ¶
func (Type) IsHandlerClass ¶
func (Type) IsRefCountedClass ¶
func (Type) IsScopedClass ¶
func (Type) IsSimpleDefName ¶
type TypeQualifier ¶
type TypeQualifier int
const ( TqUnknown TypeQualifier = iota TqConst TqPointer )
func (TypeQualifier) String ¶
func (i TypeQualifier) String() string
type UnhandledDecl ¶
type UnhandledDecl struct {
DeclCommon
}
Click to show internal directories.
Click to hide internal directories.