typesutil

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTypeAndValueForCallResult added in v1.1.12

func NewTypeAndValueForCallResult(typ types.Type) (ret types.TypeAndValue)

func NewTypeAndValueForObject added in v1.1.12

func NewTypeAndValueForObject(obj types.Object) (ret types.TypeAndValue)

func NewTypeAndValueForType added in v1.1.12

func NewTypeAndValueForType(typ types.Type) (ret types.TypeAndValue)

func NewTypeAndValueForValue added in v1.1.12

func NewTypeAndValueForValue(typ types.Type, val constant.Value) (ret types.TypeAndValue)

func NewTypeAndValueForVariable added in v1.1.12

func NewTypeAndValueForVariable(typ types.Type) (ret types.TypeAndValue)

Types

type TypeAndValue

type TypeAndValue struct {
	Type  types.Type
	Value constant.Value
	// contains filtered or unexported fields
}

TypeAndValue reports the type and value (for constants) of the corresponding expression.

Jump to

Keyboard shortcuts

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