generators

package
v0.0.0-...-392fa8f Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultNameSystem

func DefaultNameSystem() string

DefaultNameSystem returns the default name system for ordering the types to be processed by the generators in this package.

func NameSystems

func NameSystems() namer.NameSystems

NameSystems returns the name system used by the generators in this package.

func NewGenDeepCopy

func NewGenDeepCopy(sanitizedName, targetPackage string, boundingDirs []string, allTypes, registerTypes bool) generator.Generator

func Packages

func Packages(context *generator.Context, arguments *args.GeneratorArgs) generator.Packages

Types

type CustomArgs

type CustomArgs struct {
	BoundingDirs []string // Only deal with types rooted under these dirs.
	// If specified, trim the path from PackagePath before writing files.
	TrimPackagePath string
}

CustomArgs is used tby the go2idl framework to pass custom_args specific to this generator.

func (*CustomArgs) AddFlags

func (a *CustomArgs) AddFlags(fs *pflag.FlagSet)

type TypeSlice

type TypeSlice []*types.Type

func (TypeSlice) Len

func (s TypeSlice) Len() int

func (TypeSlice) Less

func (s TypeSlice) Less(i, j int) bool

func (TypeSlice) Sort

func (s TypeSlice) Sort()

func (TypeSlice) Swap

func (s TypeSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

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