Documentation ¶
Index ¶
- Constants
- Variables
- func CompositeKindCount() int
- func DeclarationKindCount() int
- func EnumerateWords(words []string, conjunction string) string
- type Address
- type CompositeKind
- func (k CompositeKind) Annotation() string
- func (k CompositeKind) ConstructionKeyword() string
- func (k CompositeKind) DeclarationKind(isInterface bool) DeclarationKind
- func (k CompositeKind) DestructionKeyword() interface{}
- func (k CompositeKind) Keyword() string
- func (k CompositeKind) MarshalJSON() ([]byte, error)
- func (k CompositeKind) MoveOperator() string
- func (k CompositeKind) Name() string
- func (i CompositeKind) String() string
- func (k CompositeKind) SupportsInterfaces() bool
- func (k CompositeKind) TransferOperator() string
- type ControlStatement
- type DeclarationKind
- type OperandSide
- type OperationKind
- type PathDomain
- type StringEntry
Constants ¶
View Source
const AddressLength = 8
Variables ¶
View Source
var AllCompositeKinds = []CompositeKind{ CompositeKindStructure, CompositeKindResource, CompositeKindContract, CompositeKindEvent, CompositeKindEnum, }
View Source
var AllPathDomainsByIdentifier = map[string]PathDomain{}
View Source
var CompositeKindsWithFieldsAndFunctions = []CompositeKind{ CompositeKindStructure, CompositeKindResource, CompositeKindContract, }
Functions ¶
func CompositeKindCount ¶ added in v0.8.0
func CompositeKindCount() int
func DeclarationKindCount ¶ added in v0.8.0
func DeclarationKindCount() int
func EnumerateWords ¶
Types ¶
type Address ¶
type Address [AddressLength]byte
func BytesToAddress ¶
BytesToAddress returns Address with value b.
If b is larger than len(h), b will be cropped from the left.
func (*Address) SetBytes ¶
SetBytes sets the address to the value of b.
If b is larger than len(a) it will panic.
func (Address) ShortHexWithPrefix ¶ added in v0.9.0
type CompositeKind ¶
type CompositeKind uint
const ( CompositeKindUnknown CompositeKind = iota CompositeKindStructure CompositeKindResource CompositeKindContract CompositeKindEvent CompositeKindEnum )
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) MarshalJSON ¶ added in v0.8.0
func (k CompositeKind) MarshalJSON() ([]byte, error)
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 DeclarationKindPragma DeclarationKindEnum DeclarationKindEnumCase )
func (DeclarationKind) IsTypeDeclaration ¶
func (k DeclarationKind) IsTypeDeclaration() bool
func (DeclarationKind) Keywords ¶
func (k DeclarationKind) Keywords() string
func (DeclarationKind) MarshalJSON ¶ added in v0.8.0
func (k DeclarationKind) MarshalJSON() ([]byte, error)
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 PathDomainFromName ¶ added in v0.10.0
func PathDomainFromName(name 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) Hash ¶
func (key StringEntry) Hash() uint32
Source Files ¶
Click to show internal directories.
Click to hide internal directories.