common

package
v0.3.0-beta4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AddressLength = 8

Variables

View Source
var AllPathDomainsByIdentifier = map[string]PathDomain{}

Functions

func EnumerateWords

func EnumerateWords(words []string, conjunction string) string

Types

type Address

type Address [AddressLength]byte

func BytesToAddress

func BytesToAddress(b []byte) Address

BytesToAddress returns Address with value b.

If b is larger than len(h), b will be cropped from the left.

func (Address) Bytes added in v0.2.0

func (a Address) Bytes() []byte

func (Address) Hex

func (a Address) Hex() string

Hex returns the hex string representation of the address.

func (*Address) SetBytes

func (a *Address) SetBytes(b []byte)

SetBytes sets the address to the value of b.

If b is larger than len(a) it will panic.

func (Address) String

func (a Address) String() string

type CompositeKind

type CompositeKind uint
const (
	CompositeKindUnknown CompositeKind = iota
	CompositeKindStructure
	CompositeKindResource
	CompositeKindContract
	CompositeKindEvent
)

func (CompositeKind) Annotation

func (k CompositeKind) Annotation() string

func (CompositeKind) ConstructionKeyword

func (k CompositeKind) ConstructionKeyword() string

func (CompositeKind) DeclarationKind

func (k CompositeKind) DeclarationKind(isInterface bool) DeclarationKind

func (CompositeKind) DestructionKeyword

func (k CompositeKind) DestructionKeyword() interface{}

func (CompositeKind) Keyword

func (k CompositeKind) Keyword() string

func (CompositeKind) MoveOperator

func (k CompositeKind) MoveOperator() string

func (CompositeKind) Name

func (k CompositeKind) Name() string

func (CompositeKind) String

func (i CompositeKind) String() string

func (CompositeKind) SupportsInterfaces

func (k CompositeKind) SupportsInterfaces() bool

func (CompositeKind) TransferOperator

func (k CompositeKind) TransferOperator() string

type ControlStatement

type ControlStatement uint
const (
	ControlStatementUnknown ControlStatement = iota
	ControlStatementBreak
	ControlStatementContinue
)

func (ControlStatement) String

func (i ControlStatement) String() string

func (ControlStatement) Symbol

func (s ControlStatement) Symbol() string

type DeclarationKind

type DeclarationKind uint
const (
	DeclarationKindUnknown DeclarationKind = iota
	DeclarationKindValue
	DeclarationKindFunction
	DeclarationKindVariable
	DeclarationKindConstant
	DeclarationKindType
	DeclarationKindParameter
	DeclarationKindArgumentLabel
	DeclarationKindStructure
	DeclarationKindResource
	DeclarationKindContract
	DeclarationKindEvent
	DeclarationKindField
	DeclarationKindInitializer
	DeclarationKindDestructor
	DeclarationKindStructureInterface
	DeclarationKindResourceInterface
	DeclarationKindContractInterface
	DeclarationKindImport
	DeclarationKindSelf
	DeclarationKindResult
	DeclarationKindTransaction
	DeclarationKindPrepare
	DeclarationKindExecute
	DeclarationKindTypeParameter
)

func (DeclarationKind) IsTypeDeclaration

func (k DeclarationKind) IsTypeDeclaration() bool

func (DeclarationKind) Keywords

func (k DeclarationKind) Keywords() string

func (DeclarationKind) Name

func (k DeclarationKind) Name() string

func (DeclarationKind) String

func (i DeclarationKind) String() string

type OperandSide

type OperandSide uint
const (
	OperandSideUnknown OperandSide = iota
	OperandSideLeft
	OperandSideRight
)

func (OperandSide) Name

func (s OperandSide) Name() string

func (OperandSide) String

func (i OperandSide) String() string

type OperationKind

type OperationKind uint
const (
	OperationKindUnknown OperationKind = iota
	OperationKindUnary
	OperationKindBinary
	OperationKindTernary
)

func (OperationKind) Name

func (k OperationKind) Name() string

func (OperationKind) String

func (i OperationKind) String() string

type PathDomain

type PathDomain uint
const (
	PathDomainUnknown PathDomain = iota
	PathDomainStorage
	PathDomainPrivate
	PathDomainPublic
)

func PathDomainFromIdentifier

func PathDomainFromIdentifier(domain string) PathDomain

func (PathDomain) Identifier

func (i PathDomain) Identifier() string

func (PathDomain) Name

func (i PathDomain) Name() string

func (PathDomain) String

func (i PathDomain) String() string

type StringEntry

type StringEntry string

func (StringEntry) Equal

func (key StringEntry) Equal(other hamt.Entry) bool

func (StringEntry) Hash

func (key StringEntry) Hash() uint32

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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