Documentation
¶
Index ¶
- type DataType
- func (d *DataType) ActualGoType() string
- func (d *DataType) ActualTemplateArg() string
- func (d *DataType) ConvertGoTypeToLua(variable string) string
- func (d *DataType) ConvertGoTypeToLuaWithTableLevel(variable string, tableLevel int) string
- func (d *DataType) ConvertLuaTypeToGo(variable string, source string, paramNum int) string
- func (d *DataType) ConvertLuaTypeToGoSliceEllipses(t *types.Slice, variableToCreate string, luaVariable string, paramNum int) string
- func (d *DataType) ConvertLuaTypeToGoWithFunctionParam(variable string, source string, paramNum, functionParam int) string
- func (d *DataType) ConvertLuaTypeToGoWithTableLevel(variable string, source string, paramNum, tableLevel int) string
- func (d *DataType) IsError() bool
- func (d *DataType) LuaParamType() string
- func (d *DataType) LuaType(isFunctionReturn bool) string
- func (d *DataType) Package() string
- func (d *DataType) ReferenceOrDereferenceForAssignmentToField() string
- func (d *DataType) TemplateArg() string
- type FunctionType
- func (f *FunctionType) GenerateLuaFunctionParamRetDefinitions() string
- func (f *FunctionType) GenerateLuaFunctionParamStubs() string
- func (f *FunctionType) GenerateLuaFunctionWrapper(out io.Writer, userDataCheckFnName string)
- func (f *FunctionType) GenerateParamValues(prefix string) string
- func (f *FunctionType) GenerateReturnValues(prefix string) string
- func (f *FunctionType) NumReturns() int
- type GenUtil
- type Param
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataType ¶
type DataType struct {
Type types.Type
PointerIndirection int
// contains filtered or unexported fields
}
func CreateDataTypeFrom ¶
func CreateDataTypeFrom(t types.Type, packageSource *packages.Package, allDeclaredInterfaces []declaredinterface.DeclaredInterface) DataType
func CreateDataTypeFromExpr ¶
func CreateDataTypeFromExpr(expr ast.Expr, packageSource *packages.Package, allDeclaredInterfaces []declaredinterface.DeclaredInterface) DataType
func (*DataType) ActualGoType ¶
func (*DataType) ActualTemplateArg ¶ added in v0.0.5
func (*DataType) ConvertGoTypeToLua ¶
func (*DataType) ConvertGoTypeToLuaWithTableLevel ¶ added in v0.0.17
func (*DataType) ConvertLuaTypeToGo ¶
func (*DataType) ConvertLuaTypeToGoSliceEllipses ¶
func (*DataType) ConvertLuaTypeToGoWithFunctionParam ¶ added in v0.0.16
func (*DataType) ConvertLuaTypeToGoWithTableLevel ¶ added in v0.0.16
func (*DataType) LuaParamType ¶
func (*DataType) ReferenceOrDereferenceForAssignmentToField ¶ added in v0.0.2
func (*DataType) TemplateArg ¶ added in v0.0.2
type FunctionType ¶ added in v0.0.17
type FunctionType struct {
ActualFnName string
LuaFnName string
SourceFnName string
Receiver bool
Params []Param
Ret []DataType
}
func CreateFunction ¶ added in v0.0.17
func CreateFunction(typ *types.Signature, actualFnName, luaFnName, goBindFnName string, packageSource *packages.Package, allDeclaredInterfaces []declaredinterface.DeclaredInterface) FunctionType
func CreateFunctionFromExpr ¶ added in v0.0.17
func CreateFunctionFromExpr(fn *ast.FuncDecl, luaFnName, goBindFnName string, packageSource *packages.Package, allDeclaredInterfaces []declaredinterface.DeclaredInterface) FunctionType
func (*FunctionType) GenerateLuaFunctionParamRetDefinitions ¶ added in v0.0.17
func (f *FunctionType) GenerateLuaFunctionParamRetDefinitions() string
func (*FunctionType) GenerateLuaFunctionParamStubs ¶ added in v0.0.17
func (f *FunctionType) GenerateLuaFunctionParamStubs() string
func (*FunctionType) GenerateLuaFunctionWrapper ¶ added in v0.0.17
func (f *FunctionType) GenerateLuaFunctionWrapper(out io.Writer, userDataCheckFnName string)
func (*FunctionType) GenerateParamValues ¶ added in v0.0.17
func (f *FunctionType) GenerateParamValues(prefix string) string
func (*FunctionType) GenerateReturnValues ¶ added in v0.0.17
func (f *FunctionType) GenerateReturnValues(prefix string) string
func (*FunctionType) NumReturns ¶ added in v0.0.17
func (f *FunctionType) NumReturns() int
type Param ¶ added in v0.0.17
func (*Param) ConvertLuaTypeToGo ¶ added in v0.0.17
Click to show internal directories.
Click to hide internal directories.