constant

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConstantData added in v1.8.0

type ConstantData = any

type DecodedConstant added in v1.8.0

type DecodedConstant struct {
	Data ConstantData
	Kind Kind
}

func (DecodedConstant) String added in v1.8.0

func (c DecodedConstant) String() string

type Kind

type Kind uint8
const (
	Unknown Kind = iota
	String
	RawString
	Character
	Address

	// Int*
	Int
	Int8
	Int16
	Int32
	Int64
	Int128
	Int256

	// UInt*
	UInt
	UInt8
	UInt16
	UInt32
	UInt64
	UInt128
	UInt256

	Word8
	Word16
	Word32
	Word64
	Word128
	Word256

	Fix64
	Fix128

	UFix64
	UFix128
)

func FromSemaType

func FromSemaType(ty sema.Type) Kind

func (Kind) String

func (i Kind) String() string

Jump to

Keyboard shortcuts

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