asthelpergen

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Comparator = "Comparator"

Variables

This section is empty.

Functions

func GenerateASTHelpers

func GenerateASTHelpers(options *Options) (map[string]*jen.File, error)

GenerateASTHelpers loads the input code, constructs the necessary generators, and generates the rewriter and clone methods for the AST

func VerifyFilesOnDisk

func VerifyFilesOnDisk(result map[string]*jen.File) (errors []error)

VerifyFilesOnDisk compares the generated results from the codegen against the files that currently exist on disk and returns any mismatches

Types

type CloneOptions added in v0.16.0

type CloneOptions struct {
	Exclude []string
}

type EqualsOptions added in v0.16.0

type EqualsOptions struct {
	AllowCustom []string
}

type Options added in v0.16.0

type Options struct {
	Packages      []string
	RootInterface string

	Clone  CloneOptions
	Equals EqualsOptions
}

Directories

Path Synopsis
nolint
nolint

Jump to

Keyboard shortcuts

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