front

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindIdent

func BindIdent(bindings BindingsT, ident *ast.Ident, typeInfo *types.Info) *VariableT

func MakeTopLevelForm

func MakeTopLevelForm(decl *ast.FuncDecl, parsedFile *ParsedFileT, globals BindingsT) *CallNodeT

func SimplifyTopLevel

func SimplifyTopLevel(lambda *CallNodeT)

Types

type BindingsT

type BindingsT map[types.Object]*VariableT

type LhsT

type LhsT interface {
	// contains filtered or unexported methods
}

type ParsedFileT

type ParsedFileT struct {
	AstFile   *ast.File
	Packages  []*packages.Package
	TypesInfo *types.Info
	FileSet   *token.FileSet
}

func ParseFile

func ParseFile(fileName string,
	fileContents []byte,
	directory string,
	packagePath string) *ParsedFileT

type PointerLhsT

type PointerLhsT struct {
	// contains filtered or unexported fields
}

An LHS where the location is a single variable, which so far is all of them.

Jump to

Keyboard shortcuts

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