Documentation
¶
Index ¶
- Constants
- func AfterFilesParsed(fileList []*syntax.File, addFile func(name string, r io.Reader))
- func ClearDecls()
- func ClearFiles()
- func ClearSyntaxDeclMapping()
- func GetFiles() []*syntax.File
- func GetSyntaxDeclMapping() map[string]map[LineCol]*DeclInfo
- func HasSkipTrap() bool
- type DeclInfo
- type FileDecl
- type ISetPos
- type LineCol
- type StructDef
Constants ¶
View Source
const XGO_NUMBER = "XGO_NUMBER"
View Source
const XGO_REVISION = "XGO_REVISION"
View Source
const XGO_TOOLCHAIN_REVISION = "XGO_TOOLCHAIN_REVISION"
View Source
const XGO_TOOLCHAIN_VERSION = "XGO_TOOLCHAIN_VERSION"
View Source
const XGO_TOOLCHAIN_VERSION_NUMBER = "XGO_TOOLCHAIN_VERSION_NUMBER"
View Source
const XGO_VERSION = "XGO_VERSION"
View Source
const XgoLinkGeneratedRegisterFunc = "__xgo_link_generated_register_func"
this link function is considered safe as we do not allow user to define such one,there will no abuse
View Source
const XgoLinkTrapForGenerated = "__xgo_link_trap_for_generated"
View Source
const XgoLocalFuncStub = "__xgo_local_func_stub"
View Source
const XgoRegisterFuncs = "__xgo_register_funcs"
Variables ¶
This section is empty.
Functions ¶
func AfterFilesParsed ¶
func ClearDecls ¶
func ClearDecls()
func ClearFiles ¶
func ClearFiles()
func ClearSyntaxDeclMapping ¶
func ClearSyntaxDeclMapping()
func GetSyntaxDeclMapping ¶
func HasSkipTrap ¶
func HasSkipTrap() bool
Types ¶
type DeclInfo ¶
type DeclInfo struct {
FuncDecl *syntax.FuncDecl
Name string
RecvTypeName string
RecvPtr bool
Generic bool
Closure bool
// this is an interface type declare
// only the RecvTypeName is valid
Interface bool
// arg names
RecvName string
ArgNames []string
ResNames []string
FirstArgCtx bool
LastResError bool
FileSyntax *syntax.File
FileIndex int
File string
FileRef string
Line int
}
func (*DeclInfo) GenericName ¶
func (*DeclInfo) IdentityName ¶
Click to show internal directories.
Click to hide internal directories.