patcher

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperatorOverloading added in v1.16.1

type OperatorOverloading struct {
	Operator  string              // Operator token to overload.
	Overloads []string            // List of function names to replace operator with.
	Types     conf.TypesTable     // Env types.
	Functions conf.FunctionsTable // Env functions.
	// contains filtered or unexported fields
}

func (*OperatorOverloading) Check added in v1.16.1

func (p *OperatorOverloading) Check()

func (*OperatorOverloading) FindSuitableOperatorOverload added in v1.16.1

func (p *OperatorOverloading) FindSuitableOperatorOverload(l, r reflect.Type) (reflect.Type, string, bool)

func (*OperatorOverloading) ShouldRepeat added in v1.16.1

func (p *OperatorOverloading) ShouldRepeat() bool

func (*OperatorOverloading) Visit added in v1.16.1

func (p *OperatorOverloading) Visit(node *ast.Node)

type WithContext

type WithContext struct {
	Name string
}

WithContext adds WithContext.Name argument to all functions calls with a context.Context argument.

func (WithContext) Visit

func (w WithContext) Visit(node *ast.Node)

Visit adds WithContext.Name argument to all functions calls with a context.Context argument.

Directories

Path Synopsis
Package value provides a Patcher that uses interfaces to allow custom types that can be represented as standard go values to be used more easily in expressions.
Package value provides a Patcher that uses interfaces to allow custom types that can be represented as standard go values to be used more easily in expressions.

Jump to

Keyboard shortcuts

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