strategy

package
v0.0.0-...-d6b2721 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConstantPropagationReduction

type ConstantPropagationReduction struct {
}

func (ConstantPropagationReduction) Apply

func (l ConstantPropagationReduction) Apply(input []byte) []*ast.File

type EllipsisReduction

type EllipsisReduction struct {
}

func (EllipsisReduction) Apply

func (e EllipsisReduction) Apply(input []byte) []*ast.File

type EmptyDeclarationReduction

type EmptyDeclarationReduction struct{}

func (EmptyDeclarationReduction) Apply

func (r EmptyDeclarationReduction) Apply(input []byte) []*ast.File

type ExpressionUnion

type ExpressionUnion struct {
	Expressions []ast.Expr
	EndOffset   int
}

func NewExpressionUnion

func NewExpressionUnion(expr ast.Expr) (*ExpressionUnion, error)

type IfReduction

type IfReduction struct {
}

func (IfReduction) Apply

func (i IfReduction) Apply(input []byte) []*ast.File

type ImportReduction

type ImportReduction struct {
}

func (ImportReduction) Apply

func (i ImportReduction) Apply(input []byte) []*ast.File

type LetReduction

type LetReduction struct{}

LetReduction iterates over let-clauses and transforms them to regular fields

func (LetReduction) Apply

func (r LetReduction) Apply(input []byte) []*ast.File

Apply returns variants of the input where exactly one let statement was transformed

type ListReduction

type ListReduction struct {
}

func (ListReduction) Apply

func (l ListReduction) Apply(input []byte) []*ast.File

type LoopUnrollingReduction

type LoopUnrollingReduction struct {
}

func (LoopUnrollingReduction) Apply

func (l LoopUnrollingReduction) Apply(input []byte) []*ast.File

type PackageReduction

type PackageReduction struct {
}

func (PackageReduction) Apply

func (p PackageReduction) Apply(input []byte) []*ast.File

type RedundantNestingReduction

type RedundantNestingReduction struct {
}

func (RedundantNestingReduction) Apply

func (r RedundantNestingReduction) Apply(input []byte) []*ast.File

type StringInterpolationReduction

type StringInterpolationReduction struct {
}

func (StringInterpolationReduction) Apply

func (s StringInterpolationReduction) Apply(input []byte) []*ast.File

type TrivialIfReduction

type TrivialIfReduction struct{}

func (TrivialIfReduction) Apply

func (i TrivialIfReduction) Apply(input []byte) []*ast.File

type UnificationReduction

type UnificationReduction struct {
}

func (UnificationReduction) Apply

func (u UnificationReduction) Apply(input []byte) []*ast.File

type UnionReduction

type UnionReduction struct {
}

func (UnionReduction) Apply

func (t UnionReduction) Apply(input []byte) []*ast.File

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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