checker

package
v1.16.11 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 11 Imported by: 0

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

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

func IsFastFunc

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

func MethodIndex

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

func ParseCheck

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

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