typeplate

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 7 Imported by: 0

README

(Early WIP) Template Type Tooling for Go Go Go Reference

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(tree *parse.Tree, data types.Type, pkg *types.Package, fileSet *token.FileSet, trees TreeFinder, fnChecker CallChecker) error

Types

type CallChecker

type CallChecker interface {
	CheckCall(string, []parse.Node, []types.Type) (types.Type, bool, error)
}

type FindTreeFunc

type FindTreeFunc func(name string) (*parse.Tree, bool)

func (FindTreeFunc) FindTree

func (fn FindTreeFunc) FindTree(name string) (*parse.Tree, bool)

type Functions

type Functions map[string]*types.Signature

func DefaultFunctions

func DefaultFunctions(pkg *types.Package) Functions

func (Functions) Add

func (functions Functions) Add(m Functions) Functions

func (Functions) CheckCall

func (functions Functions) CheckCall(funcIdent string, argNodes []parse.Node, argTypes []types.Type) (types.Type, bool, error)

type TreeFinder

type TreeFinder interface {
	FindTree(name string) (*parse.Tree, bool)
}

Jump to

Keyboard shortcuts

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