datatype

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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) DataType

func CreateDataTypeFromExpr

func CreateDataTypeFromExpr(expr ast.Expr, packageSource *packages.Package) DataType

func (*DataType) ActualGoType

func (d *DataType) ActualGoType() string

func (*DataType) ConvertGoTypeToLua

func (d *DataType) ConvertGoTypeToLua(variable string) string

func (*DataType) ConvertLuaTypeToGo

func (d *DataType) ConvertLuaTypeToGo(variable string, source string, paramNum int) string

func (*DataType) ConvertLuaTypeToGoSliceEllipses

func (d *DataType) ConvertLuaTypeToGoSliceEllipses(t *types.Slice, variableToCreate string, luaVariable string, paramNum int) string

func (*DataType) IsError

func (d *DataType) IsError() bool

func (*DataType) LuaParamType

func (d *DataType) LuaParamType() string

func (*DataType) Package

func (d *DataType) Package() string

func (*DataType) ReferenceOrDereferenceForAssignment

func (d *DataType) ReferenceOrDereferenceForAssignment() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL