functiontype

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FunctionType

type FunctionType struct {
	ActualFnName string
	LuaFnName    string
	SourceFnName string
	Receiver     bool
	Params       []param.Param
	Ret          []datatype.DataType
}

func CreateFunction

func CreateFunction(fn *ast.FuncDecl, receiver bool, luaName, sourceCodeName string, packageSource *packages.Package) FunctionType

func (*FunctionType) GenerateParamValues

func (f *FunctionType) GenerateParamValues(prefix string) string

func (*FunctionType) GenerateReturnValues

func (f *FunctionType) GenerateReturnValues(prefix string) string

func (*FunctionType) NumReturns

func (f *FunctionType) NumReturns() int

Jump to

Keyboard shortcuts

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