typeset

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package typeset provides a serialisable, canonical subset of go/types for use with pal.

Index

Constants

View Source
const (
	Basic = iota
	Pointer
	Array
	Struct
	Slice
	Map
	Chan
	Interface
	Func
	Tuple
	Named
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind uint32

func (*Kind) PlainDecode added in v0.0.2

func (k *Kind) PlainDecode(r io.Reader) error

func (Kind) PlainEncode added in v0.0.2

func (k Kind) PlainEncode(w io.Writer) error

func (Kind) String added in v0.0.2

func (k Kind) String() string

type Type

type Type uint32
const (
	NoType Type = iota
	Bool
	Uint8
	Uint16
	Uint32
	Uint64
	Int8
	Int16
	Int32
	Int64
	Float32
	Float64
	Complex64
	Complex128
	String
	UnsafePointer
	Uintptr
)

func (*Type) PlainDecode added in v0.0.3

func (t *Type) PlainDecode(r io.Reader) error

func (Type) PlainEncode added in v0.0.3

func (t Type) PlainEncode(w io.Writer) error

type TypeSet added in v0.0.2

type TypeSet struct {
	// contains filtered or unexported fields
}

func New

func New() *TypeSet

func (*TypeSet) ArrayLen added in v0.0.2

func (t *TypeSet) ArrayLen(ty Type) int

func (*TypeSet) Elem added in v0.0.3

func (t *TypeSet) Elem(ty Type) Type

func (*TypeSet) Equal added in v0.0.2

func (t *TypeSet) Equal(a, b Type) bool

func (*TypeSet) Field added in v0.0.2

func (t *TypeSet) Field(ty Type, i int) (name string, fty Type, loff int)

func (*TypeSet) FromGoType added in v0.0.2

func (t *TypeSet) FromGoType(gotype types.Type) Type

func (*TypeSet) IsObject added in v0.0.3

func (t *TypeSet) IsObject(ty Type) bool

func (*TypeSet) Key added in v0.0.3

func (t *TypeSet) Key(ty Type) Type

func (*TypeSet) Kind added in v0.0.2

func (t *TypeSet) Kind(ty Type) Kind

func (*TypeSet) Len added in v0.0.2

func (t *TypeSet) Len() int

func (*TypeSet) Lsize added in v0.0.3

func (t *TypeSet) Lsize(ty Type) int

func (*TypeSet) Name added in v0.0.4

func (t *TypeSet) Name(ty Type) string

func (*TypeSet) NumFields added in v0.0.2

func (t *TypeSet) NumFields(ty Type) int

func (*TypeSet) NumParams added in v0.0.2

func (t *TypeSet) NumParams(ty Type) int

func (*TypeSet) NumResults added in v0.0.2

func (t *TypeSet) NumResults(ty Type) int

func (*TypeSet) Param added in v0.0.2

func (t *TypeSet) Param(ty Type, i int) (name string, pty Type)

func (*TypeSet) PlainDecode added in v0.0.2

func (t *TypeSet) PlainDecode(r io.Reader) error

func (*TypeSet) PlainEncode added in v0.0.2

func (t *TypeSet) PlainEncode(w io.Writer) error

func (*TypeSet) PointerTo added in v0.0.8

func (t *TypeSet) PointerTo(elem Type) Type

func (*TypeSet) Recv added in v0.0.2

func (t *TypeSet) Recv(ty Type) Type

func (*TypeSet) Result added in v0.0.2

func (t *TypeSet) Result(ty Type, i int) (name string, rty Type)

func (*TypeSet) String added in v0.0.4

func (t *TypeSet) String(ty Type) string

func (*TypeSet) ToGoType added in v0.0.2

func (t *TypeSet) ToGoType(ty Type) types.Type

func (*TypeSet) Underlying added in v0.0.4

func (t *TypeSet) Underlying(ty Type) Type

func (*TypeSet) Variadic added in v0.0.2

func (t *TypeSet) Variadic(ty Type) bool

Jump to

Keyboard shortcuts

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