asthelpergen

package
v0.15.8 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 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

type CloneOptions struct {
	Exclude []string
}

type EqualsOptions

type EqualsOptions struct {
	AllowCustom []string
}

type Options

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