typevisitor

package
v2.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamedTypeCollector

type NamedTypeCollector interface {
	TypeVisitor
	TypeDefs() []*stdtypes.Named
}

type Type

type Type interface {
	Accept(visitor TypeVisitor, nested int)
}

func ConvertType

func ConvertType(t stdtypes.Type) Type

type TypeVisitor

type TypeVisitor interface {
	Visit(t stdtypes.Type)
	VisitPointer(t *stdtypes.Pointer, nested int)
	VisitArray(t *stdtypes.Array, nested int)
	VisitSlice(t *stdtypes.Slice, nested int)
	VisitMap(t *stdtypes.Map, nested int)
	VisitNamed(t *stdtypes.Named, nested int)
	VisitStruct(t *stdtypes.Struct, nested int)
	VisitBasic(t *stdtypes.Basic, nested int)
	VisitInterface(t *stdtypes.Interface, nested int)
}

Jump to

Keyboard shortcuts

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