import "v.io/x/ref/lib/vdl/codegen/vdlgen"
Package vdlgen implements VDL code generation from compiled VDL packages.
const.go import.go signature.go type.go
BaseType returns the base type of t using VDL syntax, where the base type is the type of t disregarding its name. Subtypes contained in t are output via calls to Type.
Imports returns the vdl imports clause corresponding to imports; empty if there are no imports.
PrintEmbed pretty-prints x to w.
PrintInterface pretty-prints x to w. The types are used to collect named types, so that they may be printed later.
PrintMethod pretty-prints x to w. The types are used to collect named types, so that they may be printed later.
Type returns t using VDL syntax, returning the qualified name if t is named, otherwise returning the base type of t. The pkgPath and imports are used to determine the local package qualifier to add to named types; if a local package qualifier cannot be found, a full package path qualifier is added.
TypedConst returns the explicitly-typed vdl const corresponding to v, in the given pkgPath, with the given imports.
UntypedConst returns the untyped vdl const corresponding to v, in the given pkgPath, with the given imports.
type NamedTypes struct {
// contains filtered or unexported fields
}
NamedTypes represents a set of unique named types. The main usage is to collect the named types from one or more signatures, and to print all of the named types.
func (x *NamedTypes) Add(t *vdl.Type)
Add adds to x all named types from the type graph rooted at t.
func (x NamedTypes) Print(w io.Writer)
Print pretty-prints x to w.
Package vdlgen imports 9 packages (graph) and is imported by 3 packages. Updated 2020-10-22. Refresh now. Tools for package owners.