interpreter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 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 DeclaredFunction

type DeclaredFunction interface {
	InterpretedVariable
	FunctionName() string
	Parameters() []NamedVariable
	Returns() []NamedVariable
	ReturnDefinition() jen.Code
}

func DeriveInterface

func DeriveInterface(iface *types.Interface) []DeclaredFunction

type InterpretedVariable

type InterpretedVariable interface {
	DebugString() string
	Stringer(name string) jen.Code
	Name() string
	UnderlyingType() types.Type
	AsFunctionParam(name string) jen.Code
	AsReturnType() jen.Code
	AssignImports(file *jen.File)
}

type NamedVariable

type NamedVariable interface {
	InterpretedVariable
	NamedParameter() jen.Code
}

Jump to

Keyboard shortcuts

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