Documentation ¶
Index ¶
- func CreateIDLPluginInterfaceHandler(wrapped IDLPluginInterface)
- func CreateLanguagePluginInterfaceHandler(wrapped LanguagePluginInterface)
- func GetDynamicLibSuffix() string
- func ModifyKeywords(definition *IDL.IDLDefinition, keywords map[string]bool, ...)
- type GuestCompiler
- type HostCompiler
- type IDLPluginInterface
- type IDLPluginInterfaceHandler
- type LanguagePluginInterface
- type LanguagePluginInterfaceHandler
- type LanguagePluginMain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIDLPluginInterfaceHandler ¶
func CreateIDLPluginInterfaceHandler(wrapped IDLPluginInterface)
--------------------------------------------------------------------
func CreateLanguagePluginInterfaceHandler ¶
func CreateLanguagePluginInterfaceHandler(wrapped LanguagePluginInterface)
--------------------------------------------------------------------
func GetDynamicLibSuffix ¶
func GetDynamicLibSuffix() string
--------------------------------------------------------------------
func ModifyKeywords ¶
func ModifyKeywords(definition *IDL.IDLDefinition, keywords map[string]bool, modifyKeyword func(string) string)
-------------------------------------------------------------------- To make sure IDL does not contain names of functions, methods, classes, arguments and return values that equals to keywords, for each name that matches a keyword, it calls to modifyKeyword function The value of keywords map is ignores. The map is used as a set.
Types ¶
type GuestCompiler ¶
type HostCompiler ¶
type IDLPluginInterface ¶
type IDLPluginInterface interface {
ParseIDL(sourceCode string, filePath string) (*IDL.IDLDefinition, bool, error)
}
var IDLPluginMain IDLPluginInterface
type IDLPluginInterfaceHandler ¶
type IDLPluginInterfaceHandler struct {
// contains filtered or unexported fields
}
--------------------------------------------------------------------
type LanguagePluginInterface ¶
type LanguagePluginInterfaceHandler ¶
type LanguagePluginInterfaceHandler struct {
// contains filtered or unexported fields
}
--------------------------------------------------------------------
type LanguagePluginMain ¶
type LanguagePluginMain struct {
// contains filtered or unexported fields
}
--------------------------------------------------------------------
var PluginMain *LanguagePluginMain
func NewLanguagePluginMain ¶
func NewLanguagePluginMain(hostCompiler HostCompiler, guestCompiler GuestCompiler) *LanguagePluginMain
--------------------------------------------------------------------
func (*LanguagePluginMain) CompileFromHost ¶
func (this *LanguagePluginMain) CompileFromHost(idlDefinition *IDL.IDLDefinition, outputPath string, outputFilename string, hostOptions map[string]string) error
--------------------------------------------------------------------
func (*LanguagePluginMain) CompileToGuest ¶
func (this *LanguagePluginMain) CompileToGuest(idlDefinition *IDL.IDLDefinition, outputPath string, outputFilename string, guestOptions map[string]string) error
--------------------------------------------------------------------