spec

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(L *lua.LState) int

func Ignore

func Ignore(L *lua.LState) int

func NotNull

func NotNull(L *lua.LState) int

func Save

func Save(L *lua.LState) int

Types

type Argument

type Argument struct {
	// Name of the argument
	// If the name ends with a ?, it is optional
	// If the name is ... it is variadic
	Name string
	Type []ArgumentType
	Doc  string
}

func (Argument) String

func (a Argument) String() string

type ArgumentType

type ArgumentType interface {
	String() string
}

type ArgumentTypeA

type ArgumentTypeA int
const (
	ArgumentTypeString ArgumentTypeA = iota
	ArgumentTypeNumber
	ArgumentTypeBoolean
	ArgumentTypeTable
)

func (ArgumentTypeA) String

func (a ArgumentTypeA) String() string

type ArgumentTypeArray

type ArgumentTypeArray struct {
	Type ArgumentType
}

func (ArgumentTypeArray) String

func (a ArgumentTypeArray) String() string

type ArgumentTypeMetatable

type ArgumentTypeMetatable string

func (ArgumentTypeMetatable) String

func (a ArgumentTypeMetatable) String() string

type ArgumentTypeTableLiteral

type ArgumentTypeTableLiteral struct {
	Fields []ArgumentTypeTableLiteralField
}

func (ArgumentTypeTableLiteral) String

func (o ArgumentTypeTableLiteral) String() string

type ArgumentTypeTableLiteralField

type ArgumentTypeTableLiteralField struct {
	Name string
	Type ArgumentType
}

type ContainsString

type ContainsString struct {
	Contains      string
	CaseSensitive bool
}

type Function

type Function struct {
	Name    string
	Args    []Argument
	Doc     string
	Func    lua.LGFunction
	Returns []ArgumentType
	// contains filtered or unexported fields
}

func (Function) WriteOverloadTo

func (f Function) WriteOverloadTo(sb *strings.Builder, scope string)

func (Function) WriteTo

func (f Function) WriteTo(sb *strings.Builder, scope string)

type HasHelperFunctions

type HasHelperFunctions interface {
	HelperFunctions() []*Function
}

type IgnoreData

type IgnoreData struct{}

type NotNullData

type NotNullData struct{}

type Null

type Null struct{}

type Runner

type Runner interface {
	Name() string
	Functions() []*Function
}

type RunnerAfterTest

type RunnerAfterTest interface {
	AfterTest(ctx context.Context)
}

type SaveData

type SaveData struct {
	Name      string
	AllowNull bool
}

type StringEnum

type StringEnum []string

func (StringEnum) String

func (e StringEnum) String() string

type Typemetatable

type Typemetatable struct {
	Name    string
	Init    *Function
	GetSet  []TypemetatableGetSet
	Methods []Function
}

func (Typemetatable) String

func (t Typemetatable) String() string

type TypemetatableFunction

type TypemetatableFunction struct {
	Function
}

type TypemetatableGetSet

type TypemetatableGetSet struct {
	Name         string
	Doc          string
	Func         lua.LGFunction
	SetArguments []Argument
	GetReturns   []ArgumentType
}

Jump to

Keyboard shortcuts

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