asthelpergen

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateASTHelpers

func GenerateASTHelpers(packagePatterns []string, rootIface, exceptCloneType string) (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 TypePaths

type TypePaths []string

TypePaths are the packages

func (*TypePaths) Set

func (t *TypePaths) Set(path string) error

Set adds the package path

func (*TypePaths) String

func (t *TypePaths) String() string

Directories

Path Synopsis
nolint
nolint

Jump to

Keyboard shortcuts

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