util

package
v0.0.0-...-c555478 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FnMatch

func FnMatch(typ *types.Type, fns []*types.FuncValue) (int, error)

FnMatch is run to turn a polymorphic, undetermined list of functions, into a specific statically typed version. It is usually run after Unify completes. It returns the index of the matched function.

func HasDuplicateTypes

func HasDuplicateTypes(typs []*types.Type) error

HasDuplicateTypes returns an error if the list of types is not unique.

func ValidateVarName

func ValidateVarName(name string) error

ValidateVarName returns an error if the string pattern does not match the format for a valid variable name. The leading dollar sign must not be passed in.

Types

This section is empty.

Jump to

Keyboard shortcuts

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