checker

package
v1.16.10-0...-fb6792b Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(tree *parser.Tree, config *conf.Config) (reflect.Type, error)

Check checks types of the expression tree. It returns type of the expression and error if any. If config is nil, then default configuration will be used.

func FieldIndex added in v1.15.8

func FieldIndex(env Nature, node ast.Node) (bool, []int, string)

func IsFastFunc added in v1.15.8

func IsFastFunc(fn reflect.Type, method bool) bool

func MethodIndex added in v1.15.8

func MethodIndex(env Nature, node ast.Node) (bool, int, string)

func ParseCheck added in v1.16.8

func ParseCheck(input string, config *conf.Config) (*parser.Tree, error)

ParseCheck parses input expression and checks its types. Also, it applies all provided patchers. In case of error, it returns error with a tree.

func TypedFuncIndex added in v1.15.8

func TypedFuncIndex(fn reflect.Type, method bool) (int, bool)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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