Documentation
¶
Index ¶
- Constants
- Variables
- func AreCompatibleEquatableTypes(leftType, rightType Type) bool
- func AreParamsContravariant(source, target *FunctionType) bool
- func AreReturnsCovariant(source, target *FunctionType) bool
- func AreTypeArgumentsEqual(source, target ParameterizedType) bool
- func AreTypeParamsEqual(source, target *FunctionType) bool
- func CheckAddressLiteral(memoryGauge common.MemoryGauge, expression *ast.IntegerExpression, ...) bool
- func CheckFixedPointLiteral(memoryGauge common.MemoryGauge, expression *ast.FixedPointExpression, ...) bool
- func CheckIntegerLiteral(memoryGauge common.MemoryGauge, expression *ast.IntegerExpression, ...) bool
- func CheckParameterizedTypeInstantiated(t ParameterizedType, pos ast.HasPosition, memoryGauge common.MemoryGauge, ...)
- func CheckSubTypeWithoutEquality(subType Type, superType Type) bool
- func CheckSubTypeWithoutEquality_gen(subType Type, superType Type) bool
- func ErrorMessageExpectedActualTypes(expectedType Type, actualType Type) (expected string, actual string)
- func FailableCastCanSucceed(subType, superType Type) bool
- func FormatCapabilityTypeID[T ~string](borrowTypeID T) T
- func FormatConstantSizedTypeID[T ~string](elementTypeID T, size int64) T
- func FormatDictionaryTypeID[T ~string](keyTypeID T, valueTypeID T) T
- func FormatEntitlementSetTypeID[T ~string](entitlementTypeIDs []T, kind EntitlementSetKind) T
- func FormatFunctionTypeID(purity string, typeParameters []string, parameters []string, ...) string
- func FormatIntersectionTypeID[T ~string](interfaceTypeIDs []T) T
- func FormatIntersectionTypeIDWithSingleInterface[T ~string](interfaceTypeID T) T
- func FormatOptionalTypeID[T ~string](elementTypeID T) T
- func FormatReferenceTypeID[T ~string](authorization T, borrowTypeID T) T
- func FormatVariableSizedTypeID[T ~string](elementTypeID T) T
- func FromBigEndianBytesFunctionDocstring(ty Type) string
- func FromStringFunctionDocstring(ty Type) string
- func FunctionEntryPointDeclaration(program *ast.Program) *ast.FunctionDeclaration
- func HasToStringFunction(ty Type) bool
- func IsHashableStructType(t Type) bool
- func IsIntersectionSubset(superType *IntersectionType, subType Type) bool
- func IsNilType(ty Type) bool
- func IsPrimitiveOrContainerOfPrimitive(referencedType Type) bool
- func IsProperSubType(subType Type, superType Type) bool
- func IsResourceType(typ Type) bool
- func IsSameTypeKind(subType Type, superType Type) bool
- func IsStorableType(typ Type) bool
- func IsSubType(subType Type, superType Type) bool
- func IsSubTypeWithoutComparison(subType Type, superType Type) bool
- func IsValidAssignmentTargetExpression(expression ast.Expression) bool
- func IsValidCharacter(s string) bool
- func IsValidEventParameterType(t Type, results map[*Member]bool) bool
- func MembersAsResolvers(members []*Member) map[string]MemberResolver
- func MembersFieldNames(members []*Member) []string
- func MembersMapAsResolvers(members *StringMemberOrderedMap) map[string]MemberResolver
- func PermitsAccess(superTypeAccess, subTypeAccess Access) bool
- func VisitThisAndNested(t Type, visit func(ty Type))
- type Access
- type AccessCheckMode
- type ActivationHandlerFunc
- type AddressContractNamesResolver
- type AddressType
- func (t *AddressType) AddressInterfaceConformanceSet() *InterfaceSet
- func (*AddressType) CheckInstantiated(_ ast.HasPosition, _ common.MemoryGauge, _ func(err error))
- func (*AddressType) ContainFieldsOrElements() bool
- func (*AddressType) Equal(other Type) bool
- func (t *AddressType) GetMembers() map[string]MemberResolver
- func (*AddressType) ID() TypeID
- func (*AddressType) IsComparable() bool
- func (*AddressType) IsEquatable() bool
- func (*AddressType) IsExportable(_ map[*Member]bool) bool
- func (t *AddressType) IsImportable(_ map[*Member]bool) bool
- func (*AddressType) IsInvalidType() bool
- func (*AddressType) IsOrContainsReferenceType() bool
- func (*AddressType) IsPrimitiveType() bool
- func (*AddressType) IsResourceType() bool
- func (*AddressType) IsStorable(_ map[*Member]bool) bool
- func (*AddressType) IsSuperType() bool
- func (*AddressType) IsType()
- func (*AddressType) MaxInt() *big.Int
- func (*AddressType) MinInt() *big.Int
- func (*AddressType) Precedence() ast.TypePrecedence
- func (*AddressType) QualifiedString() string
- func (t *AddressType) Resolve(_ *TypeParameterTypeOrderedMap) Type
- func (t *AddressType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (*AddressType) String() string
- func (t *AddressType) Tag() TypeTag
- func (*AddressType) TypeAnnotationState() TypeAnnotationState
- func (*AddressType) Unify(_ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), ...) bool
- type AlwaysFailingNonResourceCastingTypeError
- type AlwaysFailingResourceCastingTypeError
- type AmbiguousIntersectionTypeError
- type ArgumentExpressionsCheck
- type Arity
- type ArrayExpressionTypes
- type ArrayType
- type AssignmentStatementTypes
- type AssignmentToConstantError
- type AssignmentToConstantMemberError
- type AttachExpressionTypes
- type AttachNonAttachmentError
- type AttachToInvalidTypeError
- type BeforeExtractor
- func (e *BeforeExtractor) ExtractBefore(expression ast.Expression) ast.ExpressionExtraction
- func (e *BeforeExtractor) ExtractFunction(_ *ast.ExpressionExtractor, expression *ast.FunctionExpression) ast.ExpressionExtraction
- func (e *BeforeExtractor) ExtractInvocation(extractor *ast.ExpressionExtractor, expression *ast.InvocationExpression) ast.ExpressionExtraction
- type BinaryExpressionTypes
- type BinaryOperationKind
- type CapabilityType
- func (t *CapabilityType) BaseType() Type
- func (t *CapabilityType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
- func (*CapabilityType) ContainFieldsOrElements() bool
- func (t *CapabilityType) Equal(other Type) bool
- func (t *CapabilityType) GetMembers() map[string]MemberResolver
- func (t *CapabilityType) ID() TypeID
- func (t *CapabilityType) Instantiate(_ common.MemoryGauge, typeArguments []Type, _ []*ast.TypeAnnotation, ...) Type
- func (*CapabilityType) IsComparable() bool
- func (*CapabilityType) IsEquatable() bool
- func (*CapabilityType) IsExportable(_ map[*Member]bool) bool
- func (t *CapabilityType) IsImportable(_ map[*Member]bool) bool
- func (t *CapabilityType) IsInvalidType() bool
- func (t *CapabilityType) IsOrContainsReferenceType() bool
- func (*CapabilityType) IsPrimitiveType() bool
- func (*CapabilityType) IsResourceType() bool
- func (*CapabilityType) IsStorable(_ map[*Member]bool) bool
- func (*CapabilityType) IsType()
- func (*CapabilityType) Precedence() ast.TypePrecedence
- func (t *CapabilityType) QualifiedString() string
- func (t *CapabilityType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
- func (t *CapabilityType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *CapabilityType) String() string
- func (t *CapabilityType) Tag() TypeTag
- func (t *CapabilityType) TypeAnnotationState() TypeAnnotationState
- func (t *CapabilityType) TypeArguments() []Type
- func (t *CapabilityType) TypeParameters() []*TypeParameter
- func (t *CapabilityType) Unify(other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), ...) bool
- type CastTypes
- type CastingExpressionTypes
- type CheckHandlerFunc
- type Checker
- func (checker *Checker) Check() error
- func (checker *Checker) CheckProgram(program *ast.Program)
- func (checker *Checker) CheckStatement(element ast.Statement)
- func (checker *Checker) CheckerError() *CheckerError
- func (checker *Checker) ConvertType(t ast.Type) Type
- func (checker *Checker) ConvertTypeAnnotation(typeAnnotation *ast.TypeAnnotation) TypeAnnotation
- func (checker *Checker) CurrentPurityScope() PurityCheckScope
- func (checker *Checker) EffectiveCompositeMemberAccess(access Access) Access
- func (checker *Checker) EnforcePurity(operation ast.Element, purity FunctionPurity)
- func (checker *Checker) EntryPointParameters() []Parameter
- func (checker *Checker) InNewPurityScope(enforce bool, f func())
- func (checker *Checker) IsChecked() bool
- func (checker *Checker) ObserveImpureOperation(operation ast.Element)
- func (checker *Checker) PopPurityScope() PurityCheckScope
- func (checker *Checker) PushNewPurityScope(enforce bool, depth int)
- func (checker *Checker) ResetErrors()
- func (checker *Checker) SetMemoryGauge(gauge common.MemoryGauge)
- func (checker *Checker) SubChecker(program *ast.Program, location common.Location) (*Checker, error)
- func (checker *Checker) TypeActivationDepth() int
- func (checker *Checker) ValueActivationDepth() int
- func (checker *Checker) VisitArrayExpression(arrayExpression *ast.ArrayExpression) Type
- func (checker *Checker) VisitAssignmentStatement(assignment *ast.AssignmentStatement) (_ struct{})
- func (checker *Checker) VisitAttachExpression(expression *ast.AttachExpression) Type
- func (checker *Checker) VisitAttachmentDeclaration(declaration *ast.AttachmentDeclaration) (_ struct{})
- func (checker *Checker) VisitBinaryExpression(expression *ast.BinaryExpression) Type
- func (checker *Checker) VisitBoolExpression(_ *ast.BoolExpression) Type
- func (checker *Checker) VisitBreakStatement(statement *ast.BreakStatement) (_ struct{})
- func (checker *Checker) VisitCastingExpression(expression *ast.CastingExpression) Type
- func (checker *Checker) VisitCompositeDeclaration(declaration *ast.CompositeDeclaration) (_ struct{})
- func (checker *Checker) VisitConditionalExpression(expression *ast.ConditionalExpression) Type
- func (checker *Checker) VisitContinueStatement(statement *ast.ContinueStatement) (_ struct{})
- func (checker *Checker) VisitCreateExpression(expression *ast.CreateExpression) Type
- func (checker *Checker) VisitDestroyExpression(expression *ast.DestroyExpression) (resultType Type)
- func (checker *Checker) VisitDictionaryExpression(expression *ast.DictionaryExpression) Type
- func (checker *Checker) VisitEmitStatement(statement *ast.EmitStatement) (_ struct{})
- func (checker *Checker) VisitEntitlementDeclaration(declaration *ast.EntitlementDeclaration) (_ struct{})
- func (checker *Checker) VisitEntitlementMappingDeclaration(declaration *ast.EntitlementMappingDeclaration) (_ struct{})
- func (checker *Checker) VisitEnumCaseDeclaration(_ *ast.EnumCaseDeclaration) struct{}
- func (checker *Checker) VisitExpression(expr ast.Expression, parent ast.Element, expectedType Type) Type
- func (checker *Checker) VisitExpressionStatement(statement *ast.ExpressionStatement) (_ struct{})
- func (checker *Checker) VisitExpressionWithForceType(expr ast.Expression, parent ast.Element, expectedType Type, forceType bool) Type
- func (checker *Checker) VisitExpressionWithReferenceCheck(expr ast.Expression, parent ast.Element, targetType Type) Type
- func (checker *Checker) VisitFieldDeclaration(_ *ast.FieldDeclaration) struct{}
- func (checker *Checker) VisitFixedPointExpression(expression *ast.FixedPointExpression) Type
- func (checker *Checker) VisitForStatement(statement *ast.ForStatement) (_ struct{})
- func (checker *Checker) VisitForceExpression(expression *ast.ForceExpression) Type
- func (checker *Checker) VisitFunctionDeclaration(declaration *ast.FunctionDeclaration, _ bool) (_ struct{})
- func (checker *Checker) VisitFunctionExpression(expression *ast.FunctionExpression) Type
- func (checker *Checker) VisitIdentifierExpression(expression *ast.IdentifierExpression) Type
- func (checker *Checker) VisitIfStatement(statement *ast.IfStatement) (_ struct{})
- func (checker *Checker) VisitImportDeclaration(declaration *ast.ImportDeclaration) struct{}
- func (checker *Checker) VisitIndexExpression(expression *ast.IndexExpression) Type
- func (checker *Checker) VisitIntegerExpression(expression *ast.IntegerExpression) Type
- func (checker *Checker) VisitInterfaceDeclaration(declaration *ast.InterfaceDeclaration) (_ struct{})
- func (checker *Checker) VisitInvocationExpression(invocationExpression *ast.InvocationExpression) Type
- func (checker *Checker) VisitMemberExpression(expression *ast.MemberExpression) Type
- func (checker *Checker) VisitNilExpression(_ *ast.NilExpression) Type
- func (checker *Checker) VisitPathExpression(expression *ast.PathExpression) Type
- func (checker *Checker) VisitPragmaDeclaration(declaration *ast.PragmaDeclaration) (_ struct{})
- func (checker *Checker) VisitReferenceExpression(referenceExpression *ast.ReferenceExpression) Type
- func (checker *Checker) VisitRemoveStatement(statement *ast.RemoveStatement) (_ struct{})
- func (checker *Checker) VisitReturnStatement(statement *ast.ReturnStatement) (_ struct{})
- func (checker *Checker) VisitSpecialFunctionDeclaration(declaration *ast.SpecialFunctionDeclaration) struct{}
- func (checker *Checker) VisitStringExpression(expression *ast.StringExpression) Type
- func (checker *Checker) VisitStringTemplateExpression(stringTemplateExpression *ast.StringTemplateExpression) Type
- func (checker *Checker) VisitSwapStatement(swap *ast.SwapStatement) (_ struct{})
- func (checker *Checker) VisitSwitchStatement(statement *ast.SwitchStatement) (_ struct{})
- func (checker *Checker) VisitTransactionDeclaration(declaration *ast.TransactionDeclaration) (_ struct{})
- func (checker *Checker) VisitUnaryExpression(expression *ast.UnaryExpression) Type
- func (checker *Checker) VisitVariableDeclaration(declaration *ast.VariableDeclaration) (_ struct{})
- func (checker *Checker) VisitVoidExpression(_ *ast.VoidExpression) Type
- func (checker *Checker) VisitWhileStatement(statement *ast.WhileStatement) (_ struct{})
- type CheckerError
- type CompositeKindMismatchError
- type CompositeKindedType
- type CompositeType
- func (t *CompositeType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
- func (t *CompositeType) ComputeAndCacheMembers() map[string]MemberResolver
- func (t *CompositeType) ConstructorFunctionType() *FunctionType
- func (t *CompositeType) ContainFieldsOrElements() bool
- func (t *CompositeType) EffectiveInterfaceConformanceSet() *InterfaceSet
- func (t *CompositeType) EffectiveInterfaceConformances() []Conformance
- func (t *CompositeType) Equal(other Type) bool
- func (t *CompositeType) FieldPosition(name string, declaration ast.CompositeLikeDeclaration) ast.Position
- func (t *CompositeType) GetBaseType() Type
- func (t *CompositeType) GetCompositeKind() common.CompositeKind
- func (t *CompositeType) GetContainerType() Type
- func (t *CompositeType) GetIdentifier() string
- func (t *CompositeType) GetLocation() common.Location
- func (t *CompositeType) GetMembers() map[string]MemberResolver
- func (t *CompositeType) GetNestedTypes() *StringTypeOrderedMap
- func (t *CompositeType) ID() TypeID
- func (t *CompositeType) InitializerEffectiveArgumentLabels() []string
- func (t *CompositeType) InitializerFunctionType() *FunctionType
- func (*CompositeType) IsComparable() bool
- func (t *CompositeType) IsContainerType() bool
- func (t *CompositeType) IsEquatable() bool
- func (t *CompositeType) IsExportable(results map[*Member]bool) bool
- func (t *CompositeType) IsImportable(results map[*Member]bool) bool
- func (*CompositeType) IsInvalidType() bool
- func (*CompositeType) IsOrContainsReferenceType() bool
- func (t *CompositeType) IsPrimitiveType() bool
- func (t *CompositeType) IsResourceType() bool
- func (t *CompositeType) IsStorable(results map[*Member]bool) bool
- func (*CompositeType) IsType()
- func (t *CompositeType) IsValidIndexingType(ty Type) bool
- func (t *CompositeType) MemberMap() *StringMemberOrderedMap
- func (*CompositeType) Precedence() ast.TypePrecedence
- func (t *CompositeType) QualifiedIdentifier() string
- func (t *CompositeType) QualifiedString() string
- func (t *CompositeType) Resolve(_ *TypeParameterTypeOrderedMap) Type
- func (t *CompositeType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *CompositeType) SetContainerType(containerType Type)
- func (t *CompositeType) SetNestedType(name string, nestedType ContainedType)
- func (t *CompositeType) String() string
- func (t *CompositeType) SupportedEntitlements() *EntitlementSet
- func (t *CompositeType) Tag() TypeTag
- func (t *CompositeType) TypeAnnotationState() TypeAnnotationState
- func (t *CompositeType) TypeIndexingElementType(indexingType Type, _ func() ast.Range) (Type, error)
- func (*CompositeType) Unify(_ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), ...) bool
- type Config
- type Conformance
- type ConformanceError
- func (*ConformanceError) DocumentationLink() string
- func (e *ConformanceError) EndPosition(common.MemoryGauge) ast.Position
- func (e *ConformanceError) Error() string
- func (e *ConformanceError) ErrorNotes() (notes []errors.ErrorNote)
- func (*ConformanceError) IsUserError()
- func (e *ConformanceError) SecondaryError() string
- func (e *ConformanceError) StartPosition() ast.Position
- type ConformingType
- type ConstantSizedArrayLiteralSizeError
- type ConstantSizedType
- func (*ConstantSizedType) AllowsValueIndexingAssignment() bool
- func (t *ConstantSizedType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
- func (t *ConstantSizedType) ContainFieldsOrElements() bool
- func (t *ConstantSizedType) ElementType(_ bool) Type
- func (t *ConstantSizedType) Equal(other Type) bool
- func (t *ConstantSizedType) GetMembers() map[string]MemberResolver
- func (t *ConstantSizedType) ID() TypeID
- func (t *ConstantSizedType) IndexingType() Type
- func (t *ConstantSizedType) IsComparable() bool
- func (t *ConstantSizedType) IsEquatable() bool
- func (t *ConstantSizedType) IsExportable(results map[*Member]bool) bool
- func (t *ConstantSizedType) IsImportable(results map[*Member]bool) bool
- func (t *ConstantSizedType) IsInvalidType() bool
- func (t *ConstantSizedType) IsOrContainsReferenceType() bool
- func (t *ConstantSizedType) IsPrimitiveType() bool
- func (t *ConstantSizedType) IsResourceType() bool
- func (t *ConstantSizedType) IsStorable(results map[*Member]bool) bool
- func (*ConstantSizedType) IsType()
- func (*ConstantSizedType) Precedence() ast.TypePrecedence
- func (t *ConstantSizedType) QualifiedString() string
- func (t *ConstantSizedType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
- func (t *ConstantSizedType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *ConstantSizedType) String() string
- func (t *ConstantSizedType) SupportedEntitlements() *EntitlementSet
- func (t *ConstantSizedType) Tag() TypeTag
- func (t *ConstantSizedType) TypeAnnotationState() TypeAnnotationState
- func (t *ConstantSizedType) Unify(other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), ...) bool
- type ContainedType
- type ContainerKind
- type ContainerType
- type ContractValueHandlerFunc
- type ControlStatementError
- type CryptoAlgorithm
- type CyclicConformanceError
- type CyclicEntitlementMappingError
- type CyclicImportsError
- type DefaultDestroyEventInNonResourceError
- type DefaultDestroyInvalidArgumentError
- type DefaultDestroyInvalidArgumentKind
- type DefaultDestroyInvalidParameterError
- type DictionaryEntryType
- type DictionaryExpressionTypes
- type DictionaryType
- func (*DictionaryType) AllowsValueIndexingAssignment() bool
- func (t *DictionaryType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
- func (*DictionaryType) ContainFieldsOrElements() bool
- func (t *DictionaryType) ElementType(_ bool) Type
- func (t *DictionaryType) Equal(other Type) bool
- func (t *DictionaryType) GetMembers() map[string]MemberResolver
- func (t *DictionaryType) ID() TypeID
- func (t *DictionaryType) IndexingType() Type
- func (*DictionaryType) IsComparable() bool
- func (t *DictionaryType) IsEquatable() bool
- func (t *DictionaryType) IsExportable(results map[*Member]bool) bool
- func (t *DictionaryType) IsImportable(results map[*Member]bool) bool
- func (t *DictionaryType) IsInvalidType() bool
- func (t *DictionaryType) IsOrContainsReferenceType() bool
- func (t *DictionaryType) IsPrimitiveType() bool
- func (t *DictionaryType) IsResourceType() bool
- func (t *DictionaryType) IsStorable(results map[*Member]bool) bool
- func (*DictionaryType) IsType()
- func (*DictionaryType) Precedence() ast.TypePrecedence
- func (t *DictionaryType) QualifiedString() string
- func (t *DictionaryType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
- func (t *DictionaryType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *DictionaryType) String() string
- func (t *DictionaryType) SupportedEntitlements() *EntitlementSet
- func (t *DictionaryType) Tag() TypeTag
- func (t *DictionaryType) TypeAnnotationState() TypeAnnotationState
- func (t *DictionaryType) Unify(other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), ...) bool
- type DirectEntitlementAnnotationError
- type DisjunctionOrderedSet
- type DuplicateConformanceError
- func (*DuplicateConformanceError) DocumentationLink() string
- func (e *DuplicateConformanceError) Error() string
- func (*DuplicateConformanceError) IsUserError()
- func (*DuplicateConformanceError) SecondaryError() string
- func (e *DuplicateConformanceError) SuggestFixes(code string) []errors.SuggestedFix[ast.TextEdit]
- type DuplicateEntitlementMappingInclusionError
- type DuplicateImportAliasError
- func (*DuplicateImportAliasError) DocumentationLink() string
- func (e *DuplicateImportAliasError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *DuplicateImportAliasError) Error() string
- func (*DuplicateImportAliasError) IsUserError()
- func (*DuplicateImportAliasError) SecondaryError() string
- func (e *DuplicateImportAliasError) StartPosition() ast.Position
- type DuplicateImportError
- func (*DuplicateImportError) DocumentationLink() string
- func (e *DuplicateImportError) EndPosition(_ common.MemoryGauge) ast.Position
- func (e *DuplicateImportError) Error() string
- func (*DuplicateImportError) IsUserError()
- func (*DuplicateImportError) SecondaryError() string
- func (e *DuplicateImportError) StartPosition() ast.Position
- type Elaboration
- func (e *Elaboration) AllExpressionTypes() map[ast.Expression]ExpressionTypes
- func (e *Elaboration) AllImportDeclarationsResolvedLocations() map[*ast.ImportDeclaration][]ResolvedLocation
- func (e *Elaboration) AllStaticCastTypes() map[*ast.CastingExpression]CastTypes
- func (e *Elaboration) ArrayExpressionTypes(expression *ast.ArrayExpression) (types ArrayExpressionTypes)
- func (e *Elaboration) AssignmentStatementTypes(assignment *ast.AssignmentStatement) (types AssignmentStatementTypes)
- func (e *Elaboration) AttachTypes(expr *ast.AttachExpression) (ty AttachExpressionTypes)
- func (e *Elaboration) AttachmentAccessTypes(expression *ast.IndexExpression) (ty Type, ok bool)
- func (e *Elaboration) AttachmentRemoveTypes(stmt *ast.RemoveStatement) (ty Type)
- func (e *Elaboration) BinaryExpressionTypes(expression *ast.BinaryExpression) (types BinaryExpressionTypes)
- func (e *Elaboration) CastingExpressionTypes(expression *ast.CastingExpression) (types CastingExpressionTypes)
- func (e *Elaboration) CompositeDeclarationType(declaration ast.CompositeLikeDeclaration) *CompositeType
- func (e *Elaboration) CompositeNestedDeclarations(declaration ast.CompositeLikeDeclaration) map[string]ast.Declaration
- func (e *Elaboration) CompositeType(typeID common.TypeID) *CompositeType
- func (e *Elaboration) CompositeTypeDeclaration(compositeType *CompositeType) (decl ast.CompositeLikeDeclaration, ok bool)
- func (e *Elaboration) ConstructorFunctionType(initializer *ast.SpecialFunctionDeclaration) *FunctionType
- func (e *Elaboration) DefaultDestroyDeclaration(declaration ast.Declaration) *ast.CompositeDeclaration
- func (e *Elaboration) DictionaryExpressionTypes(expression *ast.DictionaryExpression) (types DictionaryExpressionTypes)
- func (e *Elaboration) EmitStatementEventType(statement *ast.EmitStatement) *CompositeType
- func (e *Elaboration) EntitlementDeclarationType(declaration *ast.EntitlementDeclaration) *EntitlementType
- func (e *Elaboration) EntitlementMapDeclarationType(declaration *ast.EntitlementMappingDeclaration) *EntitlementMapType
- func (e *Elaboration) EntitlementMapType(typeID common.TypeID) *EntitlementMapType
- func (e *Elaboration) EntitlementMapTypeDeclaration(entitlementMapType *EntitlementMapType) *ast.EntitlementMappingDeclaration
- func (e *Elaboration) EntitlementType(typeID common.TypeID) *EntitlementType
- func (e *Elaboration) EntitlementTypeDeclaration(entitlementType *EntitlementType) *ast.EntitlementDeclaration
- func (e *Elaboration) EnumLookupFunctionType(enumType *CompositeType) (functionType *FunctionType)
- func (e *Elaboration) ExpressionTypes(expression ast.Expression) ExpressionTypes
- func (e *Elaboration) FixedPointExpression(expression *ast.FixedPointExpression) Type
- func (e *Elaboration) ForEachGlobalType(f func(name string, variable *Variable))
- func (e *Elaboration) ForEachGlobalValue(f func(name string, variable *Variable))
- func (e *Elaboration) ForStatementType(statement *ast.ForStatement) (types ForStatementTypes)
- func (e *Elaboration) ForceExpressionType(expression *ast.ForceExpression) Type
- func (e *Elaboration) FunctionDeclarationFunctionType(declaration *ast.FunctionDeclaration) *FunctionType
- func (e *Elaboration) FunctionEntryPointType() (*FunctionType, error)
- func (e *Elaboration) FunctionExpressionFunctionType(expression *ast.FunctionExpression) *FunctionType
- func (e *Elaboration) GetGlobalType(name string) (*Variable, bool)
- func (e *Elaboration) GetGlobalValue(name string) (*Variable, bool)
- func (e *Elaboration) GetSemanticAccess(access ast.Access) (semaAccess Access, present bool)
- func (e *Elaboration) IdentifierInInvocationType(expression *ast.IdentifierExpression) Type
- func (e *Elaboration) ImportDeclarationAliases(declaration *ast.ImportDeclaration) map[string]string
- func (e *Elaboration) ImportDeclarationResolvedLocations(declaration *ast.ImportDeclaration) []ResolvedLocation
- func (e *Elaboration) IndexExpressionTypes(expression *ast.IndexExpression) (types IndexExpressionTypes, contains bool)
- func (e *Elaboration) IntegerExpressionType(expression *ast.IntegerExpression) Type
- func (e *Elaboration) InterfaceDeclarationType(declaration *ast.InterfaceDeclaration) *InterfaceType
- func (e *Elaboration) InterfaceNestedDeclarations(declaration *ast.InterfaceDeclaration) map[string]ast.Declaration
- func (e *Elaboration) InterfaceType(typeID common.TypeID) *InterfaceType
- func (e *Elaboration) InterfaceTypeDeclaration(interfaceType *InterfaceType) *ast.InterfaceDeclaration
- func (e *Elaboration) InvocationExpressionTypes(expression *ast.InvocationExpression) (types InvocationExpressionTypes)
- func (e *Elaboration) IsChecking() bool
- func (e *Elaboration) IsNestedResourceMoveExpression(expression ast.Expression) bool
- func (e *Elaboration) MemberExpressionExpectedType(expression *ast.MemberExpression) Type
- func (e *Elaboration) MemberExpressionMemberAccessInfo(expression *ast.MemberExpression) (memberInfo MemberAccessInfo, ok bool)
- func (e *Elaboration) NumberConversionArgumentTypes(expression ast.Expression) (types NumberConversionArgumentTypes)
- func (e *Elaboration) PostConditionsRewrite(conditions *ast.Conditions) (rewrite PostConditionsRewrite)
- func (e *Elaboration) ReferenceExpressionBorrowType(expression *ast.ReferenceExpression) Type
- func (e *Elaboration) ResultVariableType(declaration ast.Element) (typ Type, exist bool)
- func (e *Elaboration) ReturnStatementTypes(statement *ast.ReturnStatement) (types ReturnStatementTypes)
- func (e *Elaboration) RuntimeCastTypes(expression *ast.CastingExpression) (types RuntimeCastTypes)
- func (e *Elaboration) SetArrayExpressionTypes(expression *ast.ArrayExpression, types ArrayExpressionTypes)
- func (e *Elaboration) SetAssignmentStatementTypes(assignment *ast.AssignmentStatement, types AssignmentStatementTypes)
- func (e *Elaboration) SetAttachTypes(expr *ast.AttachExpression, types AttachExpressionTypes)
- func (e *Elaboration) SetAttachmentAccessTypes(expression *ast.IndexExpression, ty Type)
- func (e *Elaboration) SetAttachmentRemoveTypes(stmt *ast.RemoveStatement, ty Type)
- func (e *Elaboration) SetBinaryExpressionTypes(expression *ast.BinaryExpression, types BinaryExpressionTypes)
- func (e *Elaboration) SetCastingExpressionTypes(expression *ast.CastingExpression, types CastingExpressionTypes)
- func (e *Elaboration) SetCompositeDeclarationType(declaration ast.CompositeLikeDeclaration, compositeType *CompositeType)
- func (e *Elaboration) SetCompositeNestedDeclarations(declaration ast.CompositeLikeDeclaration, ...)
- func (e *Elaboration) SetCompositeType(typeID TypeID, ty *CompositeType)
- func (e *Elaboration) SetCompositeTypeDeclaration(compositeType *CompositeType, declaration ast.CompositeLikeDeclaration)
- func (e *Elaboration) SetConstructorFunctionType(initializer *ast.SpecialFunctionDeclaration, functionType *FunctionType)
- func (e *Elaboration) SetDefaultDestroyDeclaration(declaration ast.Declaration, eventDeclaration *ast.CompositeDeclaration)
- func (e *Elaboration) SetDictionaryExpressionTypes(expression *ast.DictionaryExpression, types DictionaryExpressionTypes)
- func (e *Elaboration) SetEmitStatementEventType(statement *ast.EmitStatement, compositeType *CompositeType)
- func (e *Elaboration) SetEntitlementDeclarationWithType(declaration *ast.EntitlementDeclaration, entitlementType *EntitlementType)
- func (e *Elaboration) SetEntitlementMapDeclarationWithType(declaration *ast.EntitlementMappingDeclaration, ...)
- func (e *Elaboration) SetEntitlementMapType(typeID TypeID, ty *EntitlementMapType)
- func (e *Elaboration) SetEntitlementType(typeID TypeID, ty *EntitlementType)
- func (e *Elaboration) SetEnumLookupFunctionType(enumType *CompositeType, functionType *FunctionType)
- func (e *Elaboration) SetExpressionTypes(expression ast.Expression, types ExpressionTypes)
- func (e *Elaboration) SetFixedPointExpression(expression *ast.FixedPointExpression, ty Type)
- func (e *Elaboration) SetForStatementType(statement *ast.ForStatement, types ForStatementTypes)
- func (e *Elaboration) SetForceExpressionType(expression *ast.ForceExpression, ty Type)
- func (e *Elaboration) SetFunctionDeclarationFunctionType(declaration *ast.FunctionDeclaration, functionType *FunctionType)
- func (e *Elaboration) SetFunctionExpressionFunctionType(expression *ast.FunctionExpression, functionType *FunctionType)
- func (e *Elaboration) SetGlobalType(name string, variable *Variable)
- func (e *Elaboration) SetGlobalValue(name string, variable *Variable)
- func (e *Elaboration) SetIdentifierInInvocationType(expression *ast.IdentifierExpression, valueType Type)
- func (e *Elaboration) SetImportDeclarationAliases(declaration *ast.ImportDeclaration, aliases map[string]string)
- func (e *Elaboration) SetImportDeclarationResolvedLocations(declaration *ast.ImportDeclaration, locations []ResolvedLocation)
- func (e *Elaboration) SetIndexExpressionTypes(expression *ast.IndexExpression, types IndexExpressionTypes)
- func (e *Elaboration) SetIntegerExpressionType(expression *ast.IntegerExpression, actualType Type)
- func (e *Elaboration) SetInterfaceDeclarationWithType(declaration *ast.InterfaceDeclaration, interfaceType *InterfaceType)
- func (e *Elaboration) SetInterfaceNestedDeclarations(declaration *ast.InterfaceDeclaration, ...)
- func (e *Elaboration) SetInterfaceType(typeID TypeID, ty *InterfaceType)
- func (e *Elaboration) SetInvocationExpressionTypes(expression *ast.InvocationExpression, types InvocationExpressionTypes)
- func (e *Elaboration) SetIsNestedResourceMoveExpression(expression ast.Expression)
- func (e *Elaboration) SetMemberExpressionExpectedType(expression *ast.MemberExpression, expectedType Type)
- func (e *Elaboration) SetMemberExpressionMemberAccessInfo(expression *ast.MemberExpression, memberAccessInfo MemberAccessInfo)
- func (e *Elaboration) SetNumberConversionArgumentTypes(expression ast.Expression, types NumberConversionArgumentTypes)
- func (e *Elaboration) SetPostConditionsRewrite(conditions *ast.Conditions, rewrite PostConditionsRewrite)
- func (e *Elaboration) SetReferenceExpressionBorrowType(expression *ast.ReferenceExpression, ty Type)
- func (e *Elaboration) SetResultVariableType(declaration ast.Element, typ Type)
- func (e *Elaboration) SetReturnStatementTypes(statement *ast.ReturnStatement, types ReturnStatementTypes)
- func (e *Elaboration) SetRuntimeCastTypes(expression *ast.CastingExpression, types RuntimeCastTypes)
- func (e *Elaboration) SetSemanticAccess(access ast.Access, semanticAccess Access)
- func (e *Elaboration) SetStaticCastTypes(expression *ast.CastingExpression, types CastTypes)
- func (e *Elaboration) SetStringExpressionType(expression *ast.StringExpression, ty Type)
- func (e *Elaboration) SetSwapStatementTypes(statement *ast.SwapStatement, types SwapStatementTypes)
- func (e *Elaboration) SetTransactionDeclarationType(declaration *ast.TransactionDeclaration, ty *TransactionType)
- func (e *Elaboration) SetVariableDeclarationTypes(declaration *ast.VariableDeclaration, types VariableDeclarationTypes)
- func (e *Elaboration) StaticCastTypes(expression *ast.CastingExpression) (types CastTypes)
- func (e *Elaboration) StringExpressionType(expression *ast.StringExpression) Type
- func (e *Elaboration) SwapStatementTypes(statement *ast.SwapStatement) (types SwapStatementTypes)
- func (e *Elaboration) TransactionDeclarationType(declaration *ast.TransactionDeclaration) *TransactionType
- func (e *Elaboration) VariableDeclarationTypes(declaration *ast.VariableDeclaration) (types VariableDeclarationTypes)
- func (e *Elaboration) VariableDeclarationTypesCount() int
- type ElaborationImport
- type EmitDefaultDestroyEventError
- func (*EmitDefaultDestroyEventError) DocumentationLink() string
- func (*EmitDefaultDestroyEventError) Error() string
- func (*EmitDefaultDestroyEventError) IsUserError()
- func (*EmitDefaultDestroyEventError) SecondaryError() string
- func (e *EmitDefaultDestroyEventError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
- type EmitImportedEventError
- type EmitNonEventError
- type EndPositionGetter
- type EntitlementMapAccess
- func (e *EntitlementMapAccess) Domain() EntitlementSetAccess
- func (e *EntitlementMapAccess) Equal(other Access) bool
- func (e *EntitlementMapAccess) ID() TypeID
- func (e *EntitlementMapAccess) Image(gauge common.MemoryGauge, inputs Access, pos ast.HasPosition) (Access, error)
- func (*EntitlementMapAccess) IsPrimitiveAccess() bool
- func (e *EntitlementMapAccess) PermitsAccess(other Access) bool
- func (e *EntitlementMapAccess) QualifiedKeyword() string
- func (e *EntitlementMapAccess) QualifiedString() string
- func (e *EntitlementMapAccess) String() string
- type EntitlementMapType
- func (t *EntitlementMapType) CheckInstantiated(_ ast.HasPosition, _ common.MemoryGauge, _ func(err error))
- func (*EntitlementMapType) ContainFieldsOrElements() bool
- func (t *EntitlementMapType) Equal(other Type) bool
- func (t *EntitlementMapType) GetContainerType() Type
- func (t *EntitlementMapType) GetLocation() common.Location
- func (t *EntitlementMapType) GetMembers() map[string]MemberResolver
- func (t *EntitlementMapType) ID() TypeID
- func (*EntitlementMapType) IsComparable() bool
- func (*EntitlementMapType) IsEquatable() bool
- func (*EntitlementMapType) IsExportable(_ map[*Member]bool) bool
- func (*EntitlementMapType) IsImportable(_ map[*Member]bool) bool
- func (*EntitlementMapType) IsInvalidType() bool
- func (*EntitlementMapType) IsOrContainsReferenceType() bool
- func (*EntitlementMapType) IsPrimitiveType() bool
- func (*EntitlementMapType) IsResourceType() bool
- func (*EntitlementMapType) IsStorable(_ map[*Member]bool) bool
- func (*EntitlementMapType) IsType()
- func (*EntitlementMapType) Precedence() ast.TypePrecedence
- func (t *EntitlementMapType) QualifiedIdentifier() string
- func (t *EntitlementMapType) QualifiedString() string
- func (t *EntitlementMapType) Resolve(_ *TypeParameterTypeOrderedMap) Type
- func (t *EntitlementMapType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *EntitlementMapType) SetContainerType(containerType Type)
- func (t *EntitlementMapType) String() string
- func (t *EntitlementMapType) Tag() TypeTag
- func (*EntitlementMapType) TypeAnnotationState() TypeAnnotationState
- func (*EntitlementMapType) Unify(_ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), ...) bool
- type EntitlementOrderedSet
- type EntitlementRelation
- type EntitlementSet
- func (s *EntitlementSet) Access() Access
- func (s *EntitlementSet) Add(entitlementType *EntitlementType)
- func (s *EntitlementSet) AddDisjunction(disjunction *EntitlementOrderedSet)
- func (s *EntitlementSet) IsMinimallyRepresentable() bool
- func (s *EntitlementSet) Merge(other *EntitlementSet)
- func (s *EntitlementSet) Minimize()
- type EntitlementSetAccess
- func (e EntitlementSetAccess) Equal(other Access) bool
- func (e EntitlementSetAccess) ID() TypeID
- func (EntitlementSetAccess) IsPrimitiveAccess() bool
- func (e EntitlementSetAccess) PermitsAccess(other Access) bool
- func (e EntitlementSetAccess) QualifiedKeyword() string
- func (e EntitlementSetAccess) QualifiedString() string
- func (e EntitlementSetAccess) String() string
- type EntitlementSetKind
- type EntitlementSupportingType
- type EntitlementType
- func (t *EntitlementType) CheckInstantiated(_ ast.HasPosition, _ common.MemoryGauge, _ func(err error))
- func (*EntitlementType) ContainFieldsOrElements() bool
- func (t *EntitlementType) Equal(other Type) bool
- func (t *EntitlementType) GetContainerType() Type
- func (t *EntitlementType) GetLocation() common.Location
- func (t *EntitlementType) GetMembers() map[string]MemberResolver
- func (t *EntitlementType) ID() TypeID
- func (*EntitlementType) IsComparable() bool
- func (*EntitlementType) IsEquatable() bool
- func (*EntitlementType) IsExportable(_ map[*Member]bool) bool
- func (*EntitlementType) IsImportable(_ map[*Member]bool) bool
- func (t *EntitlementType) IsInvalidType() bool
- func (*EntitlementType) IsOrContainsReferenceType() bool
- func (*EntitlementType) IsPrimitiveType() bool
- func (*EntitlementType) IsResourceType() bool
- func (*EntitlementType) IsStorable(_ map[*Member]bool) bool
- func (*EntitlementType) IsType()
- func (*EntitlementType) Precedence() ast.TypePrecedence
- func (t *EntitlementType) QualifiedIdentifier() string
- func (t *EntitlementType) QualifiedString() string
- func (t *EntitlementType) Resolve(_ *TypeParameterTypeOrderedMap) Type
- func (t *EntitlementType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *EntitlementType) SetContainerType(containerType Type)
- func (t *EntitlementType) String() string
- func (t *EntitlementType) Tag() TypeTag
- func (*EntitlementType) TypeAnnotationState() TypeAnnotationState
- func (*EntitlementType) Unify(_ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), ...) bool
- type ExcessiveArgumentsError
- type ExpressionTypes
- type FieldReinitializationError
- type FieldTypeNotStorableError
- func (*FieldTypeNotStorableError) DocumentationLink() string
- func (e *FieldTypeNotStorableError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *FieldTypeNotStorableError) Error() string
- func (*FieldTypeNotStorableError) IsUserError()
- func (*FieldTypeNotStorableError) SecondaryError() string
- func (e *FieldTypeNotStorableError) StartPosition() ast.Position
- type FieldUninitializedError
- func (*FieldUninitializedError) DocumentationLink() string
- func (e *FieldUninitializedError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *FieldUninitializedError) Error() string
- func (*FieldUninitializedError) IsUserError()
- func (*FieldUninitializedError) SecondaryError() string
- func (e *FieldUninitializedError) StartPosition() ast.Position
- type FixedPointNumericType
- func (t *FixedPointNumericType) AsSuperType() *FixedPointNumericType
- func (*FixedPointNumericType) CheckInstantiated(_ ast.HasPosition, _ common.MemoryGauge, _ func(err error))
- func (t *FixedPointNumericType) ContainFieldsOrElements() bool
- func (t *FixedPointNumericType) Equal(other Type) bool
- func (t *FixedPointNumericType) GetMembers() map[string]MemberResolver
- func (t *FixedPointNumericType) ID() TypeID
- func (t *FixedPointNumericType) IsComparable() bool
- func (*FixedPointNumericType) IsEquatable() bool
- func (*FixedPointNumericType) IsExportable(_ map[*Member]bool) bool
- func (t *FixedPointNumericType) IsImportable(_ map[*Member]bool) bool
- func (*FixedPointNumericType) IsInvalidType() bool
- func (*FixedPointNumericType) IsOrContainsReferenceType() bool
- func (*FixedPointNumericType) IsPrimitiveType() bool
- func (*FixedPointNumericType) IsResourceType() bool
- func (*FixedPointNumericType) IsStorable(_ map[*Member]bool) bool
- func (t *FixedPointNumericType) IsSuperType() bool
- func (*FixedPointNumericType) IsType()
- func (t *FixedPointNumericType) MaxFractional() *big.Int
- func (t *FixedPointNumericType) MaxInt() *big.Int
- func (t *FixedPointNumericType) MinFractional() *big.Int
- func (t *FixedPointNumericType) MinInt() *big.Int
- func (*FixedPointNumericType) Precedence() ast.TypePrecedence
- func (t *FixedPointNumericType) QualifiedString() string
- func (t *FixedPointNumericType) Resolve(_ *TypeParameterTypeOrderedMap) Type
- func (t *FixedPointNumericType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *FixedPointNumericType) Scale() uint
- func (t *FixedPointNumericType) String() string
- func (t *FixedPointNumericType) SupportsSaturatingAdd() bool
- func (t *FixedPointNumericType) SupportsSaturatingDivide() bool
- func (t *FixedPointNumericType) SupportsSaturatingMultiply() bool
- func (t *FixedPointNumericType) SupportsSaturatingSubtract() bool
- func (t *FixedPointNumericType) Tag() TypeTag
- func (*FixedPointNumericType) TypeAnnotationState() TypeAnnotationState
- func (*FixedPointNumericType) Unify(_ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), ...) bool
- func (t *FixedPointNumericType) WithFractionalRange(minFractional *big.Int, maxFractional *big.Int) *FixedPointNumericType
- func (t *FixedPointNumericType) WithIntRange(minInt *big.Int, maxInt *big.Int) *FixedPointNumericType
- func (t *FixedPointNumericType) WithSaturatingFunctions(saturatingArithmetic SaturatingArithmeticSupport) *FixedPointNumericType
- func (t *FixedPointNumericType) WithScale(scale uint) *FixedPointNumericType
- func (t *FixedPointNumericType) WithTag(tag TypeTag) *FixedPointNumericType
- type ForStatementTypes
- type FractionalRangedType
- type FunctionActivation
- type FunctionActivations
- func (a *FunctionActivations) Current() *FunctionActivation
- func (a *FunctionActivations) EnterFunction(functionType *FunctionType, valueActivationDepth int) *FunctionActivation
- func (a *FunctionActivations) IsLocal() bool
- func (a *FunctionActivations) LeaveFunction()
- func (a *FunctionActivations) WithFunction(functionType *FunctionType, valueActivationDepth int, ...)
- type FunctionExpressionInConditionError
- type FunctionInvocation
- type FunctionInvocations
- type FunctionPurity
- type FunctionType
- func ArrayAppendAllFunctionType(arrayType Type) *FunctionType
- func ArrayAppendFunctionType(elementType Type) *FunctionType
- func ArrayConcatFunctionType(arrayType Type) *FunctionType
- func ArrayContainsFunctionType(elementType Type) *FunctionType
- func ArrayFilterFunctionType(memoryGauge common.MemoryGauge, elementType Type) *FunctionType
- func ArrayFirstIndexFunctionType(elementType Type) *FunctionType
- func ArrayInsertFunctionType(elementType Type) *FunctionType
- func ArrayMapFunctionType(memoryGauge common.MemoryGauge, arrayType ArrayType) *FunctionType
- func ArrayRemoveFirstFunctionType(elementType Type) *FunctionType
- func ArrayRemoveFunctionType(elementType Type) *FunctionType
- func ArrayRemoveLastFunctionType(elementType Type) *FunctionType
- func ArrayReverseFunctionType(arrayType ArrayType) *FunctionType
- func ArraySliceFunctionType(elementType Type) *FunctionType
- func ArrayToConstantSizedFunctionType(elementType Type) *FunctionType
- func ArrayToVariableSizedFunctionType(elementType Type) *FunctionType
- func CapabilityTypeBorrowFunctionType(borrowType Type) *FunctionType
- func CapabilityTypeCheckFunctionType(borrowType Type) *FunctionType
- func CompositeForEachAttachmentFunctionType(t common.CompositeKind) *FunctionType
- func CompositeLikeConstructorType(elaboration *Elaboration, compositeDeclaration ast.CompositeLikeDeclaration, ...) (constructorFunctionType *FunctionType, argumentLabels []string)
- func DictionaryContainsKeyFunctionType(t *DictionaryType) *FunctionType
- func DictionaryForEachKeyFunctionType(t *DictionaryType) *FunctionType
- func DictionaryInsertFunctionType(t *DictionaryType) *FunctionType
- func DictionaryRemoveFunctionType(t *DictionaryType) *FunctionType
- func EnumLookupFunctionType(compositeType *CompositeType) *FunctionType
- func FromBigEndianBytesFunctionType(ty Type) *FunctionType
- func FromStringFunctionType(ty Type) *FunctionType
- func InclusiveRangeContainsFunctionType(elementType Type) *FunctionType
- func NewSimpleFunctionType(purity FunctionPurity, parameters []Parameter, ...) *FunctionType
- func NumberConversionFunctionType(numberType Type) *FunctionType
- func OptionalTypeMapFunctionType(typ Type) *FunctionType
- func (t *FunctionType) ArgumentLabels() (argumentLabels []string)
- func (t *FunctionType) ArityEqual(other *Arity) bool
- func (t *FunctionType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
- func (*FunctionType) ContainFieldsOrElements() bool
- func (t *FunctionType) Equal(other Type) bool
- func (t *FunctionType) GetMembers() map[string]MemberResolver
- func (t *FunctionType) HasSameArgumentLabels(other *FunctionType) bool
- func (t *FunctionType) ID() TypeID
- func (*FunctionType) IsComparable() bool
- func (*FunctionType) IsEquatable() bool
- func (t *FunctionType) IsExportable(_ map[*Member]bool) bool
- func (t *FunctionType) IsImportable(_ map[*Member]bool) bool
- func (t *FunctionType) IsInvalidType() bool
- func (*FunctionType) IsOrContainsReferenceType() bool
- func (t *FunctionType) IsPrimitiveType() bool
- func (*FunctionType) IsResourceType() bool
- func (t *FunctionType) IsStorable(_ map[*Member]bool) bool
- func (*FunctionType) IsType()
- func (t *FunctionType) NamedQualifiedString(functionName string) string
- func (t *FunctionType) ParameterTypes() []Type
- func (*FunctionType) Precedence() ast.TypePrecedence
- func (t *FunctionType) QualifiedString() string
- func (t *FunctionType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
- func (t *FunctionType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *FunctionType) String() string
- func (t *FunctionType) Tag() TypeTag
- func (t *FunctionType) TypeAnnotationState() TypeAnnotationState
- func (t *FunctionType) Unify(other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), ...) (result bool)
- type GenericType
- func (t *GenericType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
- func (t *GenericType) ContainFieldsOrElements() bool
- func (t *GenericType) Equal(other Type) bool
- func (t *GenericType) GetMembers() map[string]MemberResolver
- func (t *GenericType) ID() TypeID
- func (*GenericType) IsComparable() bool
- func (*GenericType) IsEquatable() bool
- func (*GenericType) IsExportable(_ map[*Member]bool) bool
- func (t *GenericType) IsImportable(_ map[*Member]bool) bool
- func (*GenericType) IsInvalidType() bool
- func (*GenericType) IsOrContainsReferenceType() bool
- func (*GenericType) IsPrimitiveType() bool
- func (*GenericType) IsResourceType() bool
- func (*GenericType) IsStorable(_ map[*Member]bool) bool
- func (*GenericType) IsType()
- func (*GenericType) Precedence() ast.TypePrecedence
- func (t *GenericType) QualifiedString() string
- func (t *GenericType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
- func (t *GenericType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *GenericType) String() string
- func (t *GenericType) Tag() TypeTag
- func (*GenericType) TypeAnnotationState() TypeAnnotationState
- func (t *GenericType) Unify(other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), ...) bool
- type HashAlgorithm
- type Import
- type ImportElement
- type ImportHandlerFunc
- type Imported
- type ImportedProgramError
- func (e *ImportedProgramError) ChildErrors() []error
- func (*ImportedProgramError) DocumentationLink() string
- func (e *ImportedProgramError) Error() string
- func (e *ImportedProgramError) ImportLocation() common.Location
- func (*ImportedProgramError) IsUserError()
- func (e *ImportedProgramError) SecondaryError() string
- func (e *ImportedProgramError) Unwrap() error
- type InclusiveRangeType
- func (*InclusiveRangeType) AllowsValueIndexingAssignment() bool
- func (t *InclusiveRangeType) BaseType() Type
- func (t *InclusiveRangeType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
- func (t *InclusiveRangeType) ContainFieldsOrElements() bool
- func (t *InclusiveRangeType) Equal(other Type) bool
- func (t *InclusiveRangeType) GetMembers() map[string]MemberResolver
- func (t *InclusiveRangeType) ID() TypeID
- func (t *InclusiveRangeType) Instantiate(memoryGauge common.MemoryGauge, typeArguments []Type, ...) Type
- func (*InclusiveRangeType) IsComparable() bool
- func (t *InclusiveRangeType) IsEquatable() bool
- func (t *InclusiveRangeType) IsExportable(results map[*Member]bool) bool
- func (t *InclusiveRangeType) IsImportable(results map[*Member]bool) bool
- func (t *InclusiveRangeType) IsInvalidType() bool
- func (t *InclusiveRangeType) IsOrContainsReferenceType() bool
- func (t *InclusiveRangeType) IsPrimitiveType() bool
- func (*InclusiveRangeType) IsResourceType() bool
- func (*InclusiveRangeType) IsStorable(_ map[*Member]bool) bool
- func (*InclusiveRangeType) IsType()
- func (*InclusiveRangeType) Precedence() ast.TypePrecedence
- func (t *InclusiveRangeType) QualifiedString() string
- func (t *InclusiveRangeType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
- func (t *InclusiveRangeType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *InclusiveRangeType) String() string
- func (*InclusiveRangeType) Tag() TypeTag
- func (t *InclusiveRangeType) TypeAnnotationState() TypeAnnotationState
- func (t *InclusiveRangeType) TypeArguments() []Type
- func (*InclusiveRangeType) TypeParameters() []*TypeParameter
- func (t *InclusiveRangeType) Unify(other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), ...) bool
- type IncorrectArgumentLabelError
- func (*IncorrectArgumentLabelError) DocumentationLink() string
- func (*IncorrectArgumentLabelError) Error() string
- func (*IncorrectArgumentLabelError) IsUserError()
- func (e *IncorrectArgumentLabelError) SecondaryError() string
- func (e *IncorrectArgumentLabelError) SuggestFixes(code string) []errors.SuggestedFix[ast.TextEdit]
- type IncorrectTransferOperationError
- func (*IncorrectTransferOperationError) DocumentationLink() string
- func (*IncorrectTransferOperationError) Error() string
- func (*IncorrectTransferOperationError) IsUserError()
- func (e *IncorrectTransferOperationError) SecondaryError() string
- func (e *IncorrectTransferOperationError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
- type IndexExpressionTypes
- type InitializationInfo
- type InitializerMismatch
- type InsufficientArgumentsError
- type IntegerRangedType
- type InterfaceMemberConflictError
- type InterfaceSet
- type InterfaceType
- func (t *InterfaceType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
- func (*InterfaceType) ContainFieldsOrElements() bool
- func (t *InterfaceType) EffectiveInterfaceConformanceSet() *InterfaceSet
- func (t *InterfaceType) EffectiveInterfaceConformances() []Conformance
- func (t *InterfaceType) Equal(other Type) bool
- func (t *InterfaceType) FieldPosition(name string, declaration *ast.InterfaceDeclaration) ast.Position
- func (t *InterfaceType) GetCompositeKind() common.CompositeKind
- func (t *InterfaceType) GetContainerType() Type
- func (t *InterfaceType) GetIdentifier() string
- func (t *InterfaceType) GetLocation() common.Location
- func (t *InterfaceType) GetMembers() map[string]MemberResolver
- func (t *InterfaceType) GetNestedTypes() *StringTypeOrderedMap
- func (t *InterfaceType) ID() TypeID
- func (*InterfaceType) IsComparable() bool
- func (t *InterfaceType) IsContainerType() bool
- func (*InterfaceType) IsEquatable() bool
- func (t *InterfaceType) IsExportable(results map[*Member]bool) bool
- func (t *InterfaceType) IsImportable(results map[*Member]bool) bool
- func (*InterfaceType) IsInvalidType() bool
- func (*InterfaceType) IsOrContainsReferenceType() bool
- func (*InterfaceType) IsPrimitiveType() bool
- func (t *InterfaceType) IsResourceType() bool
- func (t *InterfaceType) IsStorable(results map[*Member]bool) bool
- func (*InterfaceType) IsType()
- func (t *InterfaceType) MemberMap() *StringMemberOrderedMap
- func (*InterfaceType) Precedence() ast.TypePrecedence
- func (t *InterfaceType) QualifiedIdentifier() string
- func (t *InterfaceType) QualifiedString() string
- func (t *InterfaceType) Resolve(_ *TypeParameterTypeOrderedMap) Type
- func (t *InterfaceType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *InterfaceType) SetContainerType(containerType Type)
- func (t *InterfaceType) String() string
- func (t *InterfaceType) SupportedEntitlements() *EntitlementSet
- func (t *InterfaceType) Tag() TypeTag
- func (*InterfaceType) TypeAnnotationState() TypeAnnotationState
- func (*InterfaceType) Unify(_ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), ...) bool
- type IntersectionCompositeKindMismatchError
- type IntersectionMemberClashError
- type IntersectionType
- func (t *IntersectionType) CheckInstantiated(_ ast.HasPosition, _ common.MemoryGauge, _ func(err error))
- func (*IntersectionType) ContainFieldsOrElements() bool
- func (t *IntersectionType) EffectiveIntersectionSet() *InterfaceSet
- func (t *IntersectionType) Equal(other Type) bool
- func (t *IntersectionType) GetMembers() map[string]MemberResolver
- func (t *IntersectionType) ID() TypeID
- func (t *IntersectionType) IsComparable() bool
- func (*IntersectionType) IsEquatable() bool
- func (t *IntersectionType) IsExportable(results map[*Member]bool) bool
- func (t *IntersectionType) IsImportable(results map[*Member]bool) bool
- func (t *IntersectionType) IsInvalidType() bool
- func (t *IntersectionType) IsOrContainsReferenceType() bool
- func (*IntersectionType) IsPrimitiveType() bool
- func (t *IntersectionType) IsResourceType() bool
- func (t *IntersectionType) IsStorable(results map[*Member]bool) bool
- func (*IntersectionType) IsType()
- func (t *IntersectionType) IsValidIndexingType(ty Type) bool
- func (*IntersectionType) Precedence() ast.TypePrecedence
- func (t *IntersectionType) QualifiedString() string
- func (t *IntersectionType) Resolve(_ *TypeParameterTypeOrderedMap) Type
- func (t *IntersectionType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *IntersectionType) String() string
- func (t *IntersectionType) SupportedEntitlements() *EntitlementSet
- func (t *IntersectionType) Tag() TypeTag
- func (*IntersectionType) TypeAnnotationState() TypeAnnotationState
- func (t *IntersectionType) TypeIndexingElementType(indexingType Type, _ func() ast.Range) (Type, error)
- func (*IntersectionType) Unify(_ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), ...) bool
- type InvalidAccessError
- type InvalidAccessModifierError
- func (*InvalidAccessModifierError) DocumentationLink() string
- func (e *InvalidAccessModifierError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *InvalidAccessModifierError) Error() string
- func (*InvalidAccessModifierError) IsUserError()
- func (*InvalidAccessModifierError) SecondaryError() string
- func (e *InvalidAccessModifierError) StartPosition() ast.Position
- type InvalidAddressLiteralError
- type InvalidAssignmentAccessError
- type InvalidAssignmentTargetError
- type InvalidAttachmentAnnotationError
- type InvalidAttachmentConformancesError
- type InvalidAttachmentEntitlementError
- func (*InvalidAttachmentEntitlementError) DocumentationLink() string
- func (e *InvalidAttachmentEntitlementError) EndPosition(common.MemoryGauge) ast.Position
- func (e *InvalidAttachmentEntitlementError) Error() string
- func (*InvalidAttachmentEntitlementError) IsUserError()
- func (e *InvalidAttachmentEntitlementError) SecondaryError() string
- func (e *InvalidAttachmentEntitlementError) StartPosition() ast.Position
- type InvalidAttachmentRemoveError
- type InvalidAttachmentUsageError
- type InvalidBaseTypeError
- type InvalidBinaryOperandError
- type InvalidBinaryOperandsError
- type InvalidCharacterLiteralError
- type InvalidConditionalResourceOperandError
- type InvalidConformanceError
- type InvalidConstantSizedTypeBaseError
- type InvalidConstantSizedTypeSizeError
- type InvalidConstructionError
- func (*InvalidConstructionError) DocumentationLink() string
- func (e *InvalidConstructionError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (*InvalidConstructionError) Error() string
- func (*InvalidConstructionError) IsUserError()
- func (*InvalidConstructionError) SecondaryError() string
- func (e *InvalidConstructionError) StartPosition() ast.Position
- func (e *InvalidConstructionError) SuggestFixes(code string) []errors.SuggestedFix[ast.TextEdit]
- type InvalidDeclarationError
- type InvalidDestructionError
- func (*InvalidDestructionError) DocumentationLink() string
- func (*InvalidDestructionError) Error() string
- func (*InvalidDestructionError) IsUserError()
- func (*InvalidDestructionError) SecondaryError() string
- func (e *InvalidDestructionError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
- type InvalidDictionaryKeyTypeError
- type InvalidEmitConditionError
- type InvalidEntitlementAccessError
- func (*InvalidEntitlementAccessError) DocumentationLink() string
- func (e *InvalidEntitlementAccessError) EndPosition(common.MemoryGauge) ast.Position
- func (*InvalidEntitlementAccessError) Error() string
- func (*InvalidEntitlementAccessError) IsUserError()
- func (*InvalidEntitlementAccessError) SecondaryError() string
- func (e *InvalidEntitlementAccessError) StartPosition() ast.Position
- type InvalidEntitlementMappingInclusionError
- type InvalidEntitlementMappingTypeError
- func (*InvalidEntitlementMappingTypeError) DocumentationLink() string
- func (e *InvalidEntitlementMappingTypeError) EndPosition(common.MemoryGauge) ast.Position
- func (e *InvalidEntitlementMappingTypeError) Error() string
- func (*InvalidEntitlementMappingTypeError) IsUserError()
- func (*InvalidEntitlementMappingTypeError) SecondaryError() string
- func (e *InvalidEntitlementMappingTypeError) StartPosition() ast.Position
- type InvalidEntryPointTypeError
- type InvalidEnumCaseError
- type InvalidEnumConformancesError
- type InvalidEnumRawTypeError
- type InvalidEventParameterTypeError
- type InvalidEventUsageError
- type InvalidFailableResourceDowncastOutsideOptionalBindingError
- func (*InvalidFailableResourceDowncastOutsideOptionalBindingError) DocumentationLink() string
- func (*InvalidFailableResourceDowncastOutsideOptionalBindingError) Error() string
- func (*InvalidFailableResourceDowncastOutsideOptionalBindingError) IsUserError()
- func (*InvalidFailableResourceDowncastOutsideOptionalBindingError) SecondaryError() string
- type InvalidFieldVariableKindError
- type InvalidFixedPointLiteralRangeError
- type InvalidFixedPointLiteralScaleError
- type InvalidImplementationError
- func (*InvalidImplementationError) DocumentationLink() string
- func (e *InvalidImplementationError) EndPosition(common.MemoryGauge) ast.Position
- func (e *InvalidImplementationError) Error() string
- func (*InvalidImplementationError) IsUserError()
- func (e *InvalidImplementationError) SecondaryError() string
- func (e *InvalidImplementationError) StartPosition() ast.Position
- type InvalidIntegerLiteralRangeError
- type InvalidInterfaceConditionResourceInvalidationError
- func (*InvalidInterfaceConditionResourceInvalidationError) DocumentationLink() string
- func (*InvalidInterfaceConditionResourceInvalidationError) Error() string
- func (*InvalidInterfaceConditionResourceInvalidationError) IsUserError()
- func (*InvalidInterfaceConditionResourceInvalidationError) SecondaryError() string
- type InvalidInterfaceDeclarationError
- type InvalidInterfaceTypeError
- func (*InvalidInterfaceTypeError) DocumentationLink() string
- func (*InvalidInterfaceTypeError) Error() string
- func (*InvalidInterfaceTypeError) IsUserError()
- func (e *InvalidInterfaceTypeError) SecondaryError() string
- func (e *InvalidInterfaceTypeError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
- type InvalidIntersectedTypeError
- type InvalidIntersectionTypeDuplicateError
- type InvalidMappingAccessError
- func (*InvalidMappingAccessError) DocumentationLink() string
- func (e *InvalidMappingAccessError) EndPosition(_ common.MemoryGauge) ast.Position
- func (*InvalidMappingAccessError) Error() string
- func (*InvalidMappingAccessError) IsUserError()
- func (*InvalidMappingAccessError) SecondaryError() string
- func (e *InvalidMappingAccessError) StartPosition() ast.Position
- type InvalidMappingAccessMemberTypeError
- func (*InvalidMappingAccessMemberTypeError) DocumentationLink() string
- func (e *InvalidMappingAccessMemberTypeError) EndPosition(_ common.MemoryGauge) ast.Position
- func (*InvalidMappingAccessMemberTypeError) Error() string
- func (*InvalidMappingAccessMemberTypeError) IsUserError()
- func (*InvalidMappingAccessMemberTypeError) SecondaryError() string
- func (e *InvalidMappingAccessMemberTypeError) StartPosition() ast.Position
- type InvalidMappingAuthorizationError
- type InvalidMoveError
- type InvalidMoveOperationError
- func (*InvalidMoveOperationError) DocumentationLink() string
- func (e *InvalidMoveOperationError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (*InvalidMoveOperationError) Error() string
- func (*InvalidMoveOperationError) IsUserError()
- func (*InvalidMoveOperationError) SecondaryError() string
- func (e *InvalidMoveOperationError) StartPosition() ast.Position
- func (e *InvalidMoveOperationError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
- type InvalidNameError
- func (*InvalidNameError) DocumentationLink() string
- func (e *InvalidNameError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *InvalidNameError) Error() string
- func (*InvalidNameError) IsUserError()
- func (*InvalidNameError) SecondaryError() string
- func (e *InvalidNameError) StartPosition() ast.Position
- type InvalidNativeModifierError
- type InvalidNestedDeclarationError
- type InvalidNestedResourceMoveError
- type InvalidNestedTypeError
- func (*InvalidNestedTypeError) DocumentationLink() string
- func (e *InvalidNestedTypeError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *InvalidNestedTypeError) Error() string
- func (*InvalidNestedTypeError) IsUserError()
- func (e *InvalidNestedTypeError) SecondaryError() string
- func (e *InvalidNestedTypeError) StartPosition() ast.Position
- type InvalidNilCoalescingRightResourceOperandError
- type InvalidNonEntitlementAccessError
- type InvalidNonEntitlementTypeInMappingError
- func (*InvalidNonEntitlementTypeInMappingError) DocumentationLink() string
- func (e *InvalidNonEntitlementTypeInMappingError) EndPosition(common.MemoryGauge) ast.Position
- func (*InvalidNonEntitlementTypeInMappingError) Error() string
- func (*InvalidNonEntitlementTypeInMappingError) IsUserError()
- func (*InvalidNonEntitlementTypeInMappingError) SecondaryError() string
- func (e *InvalidNonEntitlementTypeInMappingError) StartPosition() ast.Position
- type InvalidNonEnumCaseError
- type InvalidNonIdentifierFailableResourceDowncast
- type InvalidNonImportableTransactionParameterTypeError
- func (*InvalidNonImportableTransactionParameterTypeError) DocumentationLink() string
- func (e *InvalidNonImportableTransactionParameterTypeError) Error() string
- func (*InvalidNonImportableTransactionParameterTypeError) IsUserError()
- func (*InvalidNonImportableTransactionParameterTypeError) SecondaryError() string
- type InvalidOptionalChainingError
- func (*InvalidOptionalChainingError) DocumentationLink() string
- func (e *InvalidOptionalChainingError) Error() string
- func (*InvalidOptionalChainingError) IsUserError()
- func (*InvalidOptionalChainingError) SecondaryError() string
- func (e *InvalidOptionalChainingError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
- type InvalidPathDomainError
- type InvalidPathIdentifierError
- type InvalidPragmaError
- type InvalidReferenceToOptionalTypeError
- func (*InvalidReferenceToOptionalTypeError) DocumentationLink() string
- func (*InvalidReferenceToOptionalTypeError) Error() string
- func (*InvalidReferenceToOptionalTypeError) IsUserError()
- func (e *InvalidReferenceToOptionalTypeError) SecondaryError() string
- func (e *InvalidReferenceToOptionalTypeError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
- type InvalidResourceAnnotationError
- func (*InvalidResourceAnnotationError) DocumentationLink() string
- func (e *InvalidResourceAnnotationError) Error() string
- func (*InvalidResourceAnnotationError) IsUserError()
- func (e *InvalidResourceAnnotationError) SecondaryError() string
- func (e *InvalidResourceAnnotationError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
- type InvalidResourceArrayMemberError
- type InvalidResourceAssignmentError
- type InvalidResourceCreationError
- type InvalidResourceDictionaryMemberError
- type InvalidResourceFieldError
- func (*InvalidResourceFieldError) DocumentationLink() string
- func (e *InvalidResourceFieldError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *InvalidResourceFieldError) Error() string
- func (*InvalidResourceFieldError) IsUserError()
- func (*InvalidResourceFieldError) SecondaryError() string
- func (e *InvalidResourceFieldError) StartPosition() ast.Position
- type InvalidResourceOptionalMemberError
- type InvalidResourceTransactionParameterError
- type InvalidSelfInvalidationError
- type InvalidStaticModifierError
- type InvalidSwapExpressionError
- type InvalidTopLevelDeclarationError
- type InvalidTransactionBlockError
- func (*InvalidTransactionBlockError) DocumentationLink() string
- func (e *InvalidTransactionBlockError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (*InvalidTransactionBlockError) Error() string
- func (*InvalidTransactionBlockError) IsUserError()
- func (e *InvalidTransactionBlockError) SecondaryError() string
- func (e *InvalidTransactionBlockError) StartPosition() ast.Position
- type InvalidTransactionFieldAccessModifierError
- func (*InvalidTransactionFieldAccessModifierError) DocumentationLink() string
- func (e *InvalidTransactionFieldAccessModifierError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *InvalidTransactionFieldAccessModifierError) Error() string
- func (*InvalidTransactionFieldAccessModifierError) IsUserError()
- func (*InvalidTransactionFieldAccessModifierError) SecondaryError() string
- func (e *InvalidTransactionFieldAccessModifierError) StartPosition() ast.Position
- type InvalidTransactionPrepareParameterTypeError
- type InvalidTypeArgumentCountError
- type InvalidTypeArgumentError
- type InvalidTypeIndexingError
- type InvalidTypeParameterizedNonNativeFunctionError
- type InvalidUnaryOperandError
- type InvalidatedResourceReferenceError
- func (*InvalidatedResourceReferenceError) DocumentationLink() string
- func (*InvalidatedResourceReferenceError) Error() string
- func (e *InvalidatedResourceReferenceError) ErrorNotes() []errors.ErrorNote
- func (*InvalidatedResourceReferenceError) IsUserError()
- func (e *InvalidatedResourceReferenceError) SecondaryError() string
- type InvocationExpressionTypes
- type InvocationTypeInferenceError
- type LocatedType
- type LocationHandlerFunc
- type MappingAccessMissingKeywordError
- type Member
- func NewConstructorMember(memoryGauge common.MemoryGauge, containerType Type, access Access, ...) *Member
- func NewFieldMember(memoryGauge common.MemoryGauge, containerType Type, access Access, ...) *Member
- func NewFunctionMember(memoryGauge common.MemoryGauge, containerType Type, access Access, ...) *Member
- func NewPublicConstantFieldMember(memoryGauge common.MemoryGauge, containerType Type, identifier string, ...) *Member
- func NewPublicFunctionMember(memoryGauge common.MemoryGauge, containerType Type, identifier string, ...) *Member
- func NewUnmeteredConstructorMember(containerType Type, access Access, identifier string, ...) *Member
- func NewUnmeteredFieldMember(containerType Type, access Access, variableKind ast.VariableKind, ...) *Member
- func NewUnmeteredFunctionMember(containerType Type, access Access, identifier string, ...) *Member
- func NewUnmeteredPublicConstantFieldMember(containerType Type, identifier string, fieldType Type, docString string) *Member
- func NewUnmeteredPublicFunctionMember(containerType Type, identifier string, functionType *FunctionType, ...) *Member
- type MemberAccess
- type MemberAccessInfo
- type MemberAccesses
- type MemberAccountAccessHandlerFunc
- type MemberFieldDeclarationOrderedMap
- type MemberMismatch
- type MemberMismatchNote
- type MemberResolver
- type MissingAccessModifierError
- func (*MissingAccessModifierError) DocumentationLink() string
- func (e *MissingAccessModifierError) EndPosition(common.MemoryGauge) ast.Position
- func (e *MissingAccessModifierError) Error() string
- func (*MissingAccessModifierError) IsUserError()
- func (*MissingAccessModifierError) SecondaryError() string
- func (e *MissingAccessModifierError) StartPosition() ast.Position
- type MissingArgumentLabelError
- func (*MissingArgumentLabelError) DocumentationLink() string
- func (e *MissingArgumentLabelError) Error() string
- func (*MissingArgumentLabelError) IsUserError()
- func (e *MissingArgumentLabelError) SecondaryError() string
- func (e *MissingArgumentLabelError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
- type MissingConformanceError
- type MissingCreateError
- type MissingEntryPointError
- type MissingEnumRawTypeError
- func (*MissingEnumRawTypeError) DocumentationLink() string
- func (e *MissingEnumRawTypeError) EndPosition(common.MemoryGauge) ast.Position
- func (*MissingEnumRawTypeError) Error() string
- func (*MissingEnumRawTypeError) IsUserError()
- func (*MissingEnumRawTypeError) SecondaryError() string
- func (e *MissingEnumRawTypeError) StartPosition() ast.Position
- type MissingFunctionBodyError
- func (*MissingFunctionBodyError) DocumentationLink() string
- func (e *MissingFunctionBodyError) EndPosition(common.MemoryGauge) ast.Position
- func (*MissingFunctionBodyError) Error() string
- func (*MissingFunctionBodyError) IsUserError()
- func (*MissingFunctionBodyError) SecondaryError() string
- func (e *MissingFunctionBodyError) StartPosition() ast.Position
- func (e *MissingFunctionBodyError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
- type MissingInitializerError
- func (*MissingInitializerError) DocumentationLink() string
- func (e *MissingInitializerError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *MissingInitializerError) Error() string
- func (*MissingInitializerError) IsUserError()
- func (*MissingInitializerError) SecondaryError() string
- func (e *MissingInitializerError) StartPosition() ast.Position
- type MissingMoveOperationError
- func (*MissingMoveOperationError) DocumentationLink() string
- func (e *MissingMoveOperationError) EndPosition(common.MemoryGauge) ast.Position
- func (*MissingMoveOperationError) Error() string
- func (*MissingMoveOperationError) IsUserError()
- func (*MissingMoveOperationError) SecondaryError() string
- func (e *MissingMoveOperationError) StartPosition() ast.Position
- func (e *MissingMoveOperationError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
- type MissingResourceAnnotationError
- func (*MissingResourceAnnotationError) DocumentationLink() string
- func (*MissingResourceAnnotationError) Error() string
- func (*MissingResourceAnnotationError) IsUserError()
- func (*MissingResourceAnnotationError) SecondaryError() string
- func (e *MissingResourceAnnotationError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
- type MissingReturnStatementError
- type MissingReturnValueError
- type MissingSwitchCaseStatementsError
- func (*MissingSwitchCaseStatementsError) DocumentationLink() string
- func (e *MissingSwitchCaseStatementsError) EndPosition(common.MemoryGauge) ast.Position
- func (*MissingSwitchCaseStatementsError) Error() string
- func (*MissingSwitchCaseStatementsError) IsUserError()
- func (*MissingSwitchCaseStatementsError) SecondaryError() string
- func (e *MissingSwitchCaseStatementsError) StartPosition() ast.Position
- type MissingTypeArgumentError
- type MissingTypeError
- type MultipleInterfaceDefaultImplementationsError
- type NativeFunctionWithImplementationError
- type NestedReferenceError
- type NominalType
- type NonReferenceTypeReferenceError
- type NonResourceTypeError
- type NotCallableError
- type NotDeclaredError
- func (*NotDeclaredError) DocumentationLink() string
- func (e *NotDeclaredError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *NotDeclaredError) Error() string
- func (*NotDeclaredError) IsUserError()
- func (*NotDeclaredError) SecondaryError() string
- func (e *NotDeclaredError) StartPosition() ast.Position
- type NotDeclaredMemberError
- type NotEquatableTypeError
- type NotExportedError
- func (*NotExportedError) DocumentationLink() string
- func (e *NotExportedError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *NotExportedError) Error() string
- func (*NotExportedError) IsUserError()
- func (e *NotExportedError) SecondaryError() string
- func (e *NotExportedError) StartPosition() ast.Position
- type NotIndexableTypeError
- type NotIndexingAssignableTypeError
- type NumberConversionArgumentTypes
- type NumericType
- func (t *NumericType) AsSuperType() *NumericType
- func (t *NumericType) ByteSize() int
- func (*NumericType) CheckInstantiated(_ ast.HasPosition, _ common.MemoryGauge, _ func(err error))
- func (t *NumericType) ContainFieldsOrElements() bool
- func (t *NumericType) EffectiveInterfaceConformanceSet() *InterfaceSet
- func (t *NumericType) EffectiveInterfaceConformances() []Conformance
- func (t *NumericType) Equal(other Type) bool
- func (t *NumericType) GetMembers() map[string]MemberResolver
- func (t *NumericType) ID() TypeID
- func (t *NumericType) IsComparable() bool
- func (*NumericType) IsEquatable() bool
- func (*NumericType) IsExportable(_ map[*Member]bool) bool
- func (t *NumericType) IsImportable(_ map[*Member]bool) bool
- func (*NumericType) IsInvalidType() bool
- func (*NumericType) IsOrContainsReferenceType() bool
- func (*NumericType) IsPrimitiveType() bool
- func (*NumericType) IsResourceType() bool
- func (*NumericType) IsStorable(_ map[*Member]bool) bool
- func (t *NumericType) IsSuperType() bool
- func (*NumericType) IsType()
- func (t *NumericType) MaxInt() *big.Int
- func (t *NumericType) MinInt() *big.Int
- func (*NumericType) Precedence() ast.TypePrecedence
- func (t *NumericType) QualifiedString() string
- func (t *NumericType) Resolve(_ *TypeParameterTypeOrderedMap) Type
- func (t *NumericType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *NumericType) String() string
- func (t *NumericType) SupportsSaturatingAdd() bool
- func (t *NumericType) SupportsSaturatingDivide() bool
- func (t *NumericType) SupportsSaturatingMultiply() bool
- func (t *NumericType) SupportsSaturatingSubtract() bool
- func (t *NumericType) Tag() TypeTag
- func (*NumericType) TypeAnnotationState() TypeAnnotationState
- func (*NumericType) Unify(_ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), ...) bool
- func (t *NumericType) WithByteSize(size int) *NumericType
- func (t *NumericType) WithIntRange(min *big.Int, max *big.Int) *NumericType
- func (t *NumericType) WithSaturatingFunctions(saturatingArithmetic SaturatingArithmeticSupport) *NumericType
- func (t *NumericType) WithTag(tag TypeTag) *NumericType
- type Occurrence
- type Occurrences
- type OptionalType
- func (t *OptionalType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
- func (t *OptionalType) ContainFieldsOrElements() bool
- func (t *OptionalType) Equal(other Type) bool
- func (t *OptionalType) GetMembers() map[string]MemberResolver
- func (t *OptionalType) ID() TypeID
- func (*OptionalType) IsComparable() bool
- func (t *OptionalType) IsEquatable() bool
- func (t *OptionalType) IsExportable(results map[*Member]bool) bool
- func (t *OptionalType) IsImportable(results map[*Member]bool) bool
- func (t *OptionalType) IsInvalidType() bool
- func (t *OptionalType) IsOrContainsReferenceType() bool
- func (t *OptionalType) IsPrimitiveType() bool
- func (t *OptionalType) IsResourceType() bool
- func (t *OptionalType) IsStorable(results map[*Member]bool) bool
- func (*OptionalType) IsType()
- func (*OptionalType) Precedence() ast.TypePrecedence
- func (t *OptionalType) QualifiedString() string
- func (t *OptionalType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
- func (t *OptionalType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *OptionalType) String() string
- func (t *OptionalType) SupportedEntitlements() *EntitlementSet
- func (t *OptionalType) Tag() TypeTag
- func (t *OptionalType) TypeAnnotationState() TypeAnnotationState
- func (t *OptionalType) Unify(other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), ...) bool
- type Origin
- type Parameter
- type ParameterizedType
- type Position
- type PositionInfo
- type PostConditionsRewrite
- type PreviousResourceInvalidationNote
- type PrimitiveAccess
- func (a PrimitiveAccess) Equal(other Access) bool
- func (PrimitiveAccess) ID() TypeID
- func (PrimitiveAccess) IsPrimitiveAccess() bool
- func (a PrimitiveAccess) PermitsAccess(otherAccess Access) bool
- func (a PrimitiveAccess) QualifiedKeyword() string
- func (a PrimitiveAccess) QualifiedString() string
- func (a PrimitiveAccess) String() string
- type PurityCheckScope
- type PurityError
- type Range
- type Ranges
- type ReadOnlyTargetAssignmentError
- type RedeclarationError
- func (*RedeclarationError) DocumentationLink() string
- func (e *RedeclarationError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *RedeclarationError) Error() string
- func (e *RedeclarationError) ErrorNotes() []errors.ErrorNote
- func (*RedeclarationError) IsUserError()
- func (*RedeclarationError) SecondaryError() string
- func (e *RedeclarationError) StartPosition() ast.Position
- type RedeclarationNote
- type ReferenceToAnOptionalError
- type ReferenceType
- func (t *ReferenceType) AllowsValueIndexingAssignment() bool
- func (t *ReferenceType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
- func (*ReferenceType) ContainFieldsOrElements() bool
- func (t *ReferenceType) ElementType(isAssignment bool) Type
- func (t *ReferenceType) Equal(other Type) bool
- func (t *ReferenceType) GetMembers() map[string]MemberResolver
- func (t *ReferenceType) ID() TypeID
- func (t *ReferenceType) IndexingType() Type
- func (*ReferenceType) IsComparable() bool
- func (*ReferenceType) IsEquatable() bool
- func (t *ReferenceType) IsExportable(_ map[*Member]bool) bool
- func (t *ReferenceType) IsImportable(_ map[*Member]bool) bool
- func (t *ReferenceType) IsInvalidType() bool
- func (*ReferenceType) IsOrContainsReferenceType() bool
- func (t *ReferenceType) IsPrimitiveType() bool
- func (t *ReferenceType) IsResourceType() bool
- func (t *ReferenceType) IsStorable(_ map[*Member]bool) bool
- func (*ReferenceType) IsType()
- func (t *ReferenceType) IsValidIndexingType(ty Type) bool
- func (*ReferenceType) Precedence() ast.TypePrecedence
- func (t *ReferenceType) QualifiedString() string
- func (t *ReferenceType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
- func (t *ReferenceType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *ReferenceType) String() string
- func (t *ReferenceType) Tag() TypeTag
- func (t *ReferenceType) TypeAnnotationState() TypeAnnotationState
- func (t *ReferenceType) TypeIndexingElementType(indexingType Type, _ func() ast.Range) (Type, error)
- func (t *ReferenceType) Unify(other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), ...) bool
- type ResolvedLocation
- type Resource
- type ResourceCapturingError
- func (*ResourceCapturingError) DocumentationLink() string
- func (e *ResourceCapturingError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *ResourceCapturingError) Error() string
- func (*ResourceCapturingError) IsUserError()
- func (*ResourceCapturingError) SecondaryError() string
- func (e *ResourceCapturingError) StartPosition() ast.Position
- type ResourceFieldNotInvalidatedError
- func (*ResourceFieldNotInvalidatedError) DocumentationLink() string
- func (e *ResourceFieldNotInvalidatedError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *ResourceFieldNotInvalidatedError) Error() string
- func (*ResourceFieldNotInvalidatedError) IsUserError()
- func (*ResourceFieldNotInvalidatedError) SecondaryError() string
- func (e *ResourceFieldNotInvalidatedError) StartPosition() ast.Position
- type ResourceInfo
- func (ris *ResourceInfo) Clone() ResourceInfo
- func (ris ResourceInfo) DefinitivelyInvalidated() bool
- func (ris *ResourceInfo) DeleteLocally(invalidation ResourceInvalidation)
- func (ris ResourceInfo) Invalidation() *ResourceInvalidation
- func (ris *ResourceInfo) MaybeRecordInvalidation(invalidation ResourceInvalidation) ResourceInvalidation
- type ResourceInvalidation
- type ResourceInvalidationKind
- func (i ResourceInvalidationKind) AsPotential() ResourceInvalidationKind
- func (i ResourceInvalidationKind) CoarseNoun() string
- func (i ResourceInvalidationKind) CoarsePassiveVerb() string
- func (i ResourceInvalidationKind) DetailedNoun() string
- func (i ResourceInvalidationKind) IsDefinite() bool
- func (i ResourceInvalidationKind) String() string
- type ResourceLossError
- type ResourceMethodBindingError
- type ResourceUseAfterInvalidationError
- func (*ResourceUseAfterInvalidationError) DocumentationLink() string
- func (e *ResourceUseAfterInvalidationError) Error() string
- func (e *ResourceUseAfterInvalidationError) ErrorNotes() []errors.ErrorNote
- func (*ResourceUseAfterInvalidationError) IsUserError()
- func (e *ResourceUseAfterInvalidationError) SecondaryError() string
- type Resources
- func (ris *Resources) Clone() *Resources
- func (ris *Resources) ForEach(f func(resource Resource, info ResourceInfo))
- func (ris *Resources) Get(resource Resource) ResourceInfo
- func (ris *Resources) MaybeRecordInvalidation(resource Resource, invalidation ResourceInvalidation)
- func (ris *Resources) MergeBranches(thenResources *Resources, thenReturnInfo *ReturnInfo, elseResources *Resources, ...)
- func (ris *Resources) Reclaim()
- func (ris *Resources) RemoveTemporaryMoveInvalidation(resource Resource, invalidation ResourceInvalidation)
- func (ris *Resources) Size() int
- func (ris *Resources) String() string
- type ResultVariableConflictError
- func (*ResultVariableConflictError) DocumentationLink() string
- func (e *ResultVariableConflictError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *ResultVariableConflictError) Error() string
- func (e *ResultVariableConflictError) ErrorNotes() []errors.ErrorNote
- func (*ResultVariableConflictError) IsUserError()
- func (*ResultVariableConflictError) SecondaryError() string
- func (e *ResultVariableConflictError) StartPosition() ast.Position
- type ResultVariablePostConditionsNote
- type ResultVariableReturnTypeNote
- type ReturnInfo
- func (ri *ReturnInfo) AddJumpOffset(offset int)
- func (ri *ReturnInfo) Clone() *ReturnInfo
- func (ri *ReturnInfo) IsUnreachable() bool
- func (ri *ReturnInfo) MaybeJumped() bool
- func (ri *ReturnInfo) MergeBranches(thenReturnInfo *ReturnInfo, elseReturnInfo *ReturnInfo)
- func (ri *ReturnInfo) MergePotentiallyUnevaluated(temporaryReturnInfo *ReturnInfo)
- func (ri *ReturnInfo) WithNewJumpTarget(f func())
- type ReturnStatementTypes
- type RuntimeCastTypes
- type RuntimeTypeConstructor
- type SaturatingArithmeticSupport
- type SaturatingArithmeticType
- type SemanticError
- type SignatureAlgorithm
- type SimpleType
- func (t *SimpleType) AllowsValueIndexingAssignment() bool
- func (t *SimpleType) CheckInstantiated(_ ast.HasPosition, _ common.MemoryGauge, _ func(err error))
- func (t *SimpleType) CompositeKind() common.CompositeKind
- func (t *SimpleType) ContainFieldsOrElements() bool
- func (t *SimpleType) EffectiveInterfaceConformanceSet() *InterfaceSet
- func (t *SimpleType) EffectiveInterfaceConformances() []Conformance
- func (t *SimpleType) ElementType(isAssignment bool) Type
- func (t *SimpleType) Equal(other Type) bool
- func (t *SimpleType) GetMembers() map[string]MemberResolver
- func (t *SimpleType) GetNestedTypes() *StringTypeOrderedMap
- func (t *SimpleType) ID() TypeID
- func (t *SimpleType) IndexingType() Type
- func (t *SimpleType) IsComparable() bool
- func (t *SimpleType) IsContainerType() bool
- func (t *SimpleType) IsEquatable() bool
- func (t *SimpleType) IsExportable(_ map[*Member]bool) bool
- func (t *SimpleType) IsImportable(_ map[*Member]bool) bool
- func (t *SimpleType) IsInvalidType() bool
- func (*SimpleType) IsOrContainsReferenceType() bool
- func (t *SimpleType) IsPrimitiveType() bool
- func (t *SimpleType) IsResourceType() bool
- func (t *SimpleType) IsStorable(_ map[*Member]bool) bool
- func (*SimpleType) IsType()
- func (*SimpleType) Precedence() ast.TypePrecedence
- func (t *SimpleType) QualifiedString() string
- func (t *SimpleType) Resolve(_ *TypeParameterTypeOrderedMap) Type
- func (t *SimpleType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *SimpleType) String() string
- func (t *SimpleType) Tag() TypeTag
- func (*SimpleType) TypeAnnotationState() TypeAnnotationState
- func (*SimpleType) Unify(_ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), ...) bool
- type SpecialFunctionDefaultImplementationError
- func (*SpecialFunctionDefaultImplementationError) DocumentationLink() string
- func (e *SpecialFunctionDefaultImplementationError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *SpecialFunctionDefaultImplementationError) Error() string
- func (*SpecialFunctionDefaultImplementationError) IsUserError()
- func (*SpecialFunctionDefaultImplementationError) SecondaryError() string
- func (e *SpecialFunctionDefaultImplementationError) StartPosition() ast.Position
- type StringImportElementOrderedMap
- type StringMemberOrderedMap
- type StringTypeOrderedMap
- type StringVariableOrderedMap
- type SwapStatementTypes
- type SwitchDefaultPositionError
- type TransactionMissingPrepareError
- func (*TransactionMissingPrepareError) DocumentationLink() string
- func (e *TransactionMissingPrepareError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *TransactionMissingPrepareError) Error() string
- func (*TransactionMissingPrepareError) IsUserError()
- func (*TransactionMissingPrepareError) SecondaryError() string
- func (e *TransactionMissingPrepareError) StartPosition() ast.Position
- type TransactionType
- func (t *TransactionType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
- func (*TransactionType) ContainFieldsOrElements() bool
- func (t *TransactionType) EntryPointFunctionType() *FunctionType
- func (*TransactionType) Equal(other Type) bool
- func (*TransactionType) ExecuteFunctionType() *FunctionType
- func (t *TransactionType) GetMembers() map[string]MemberResolver
- func (t *TransactionType) ID() TypeID
- func (*TransactionType) IsComparable() bool
- func (*TransactionType) IsEquatable() bool
- func (*TransactionType) IsExportable(_ map[*Member]bool) bool
- func (t *TransactionType) IsImportable(_ map[*Member]bool) bool
- func (*TransactionType) IsInvalidType() bool
- func (*TransactionType) IsOrContainsReferenceType() bool
- func (*TransactionType) IsPrimitiveType() bool
- func (*TransactionType) IsResourceType() bool
- func (*TransactionType) IsStorable(_ map[*Member]bool) bool
- func (*TransactionType) IsType()
- func (*TransactionType) Precedence() ast.TypePrecedence
- func (t *TransactionType) PrepareFunctionType() *FunctionType
- func (*TransactionType) QualifiedString() string
- func (t *TransactionType) Resolve(_ *TypeParameterTypeOrderedMap) Type
- func (t *TransactionType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (*TransactionType) String() string
- func (t *TransactionType) Tag() TypeTag
- func (*TransactionType) TypeAnnotationState() TypeAnnotationState
- func (*TransactionType) Unify(_ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), ...) bool
- type Type
- func CheckIntersectionType(memoryGauge common.MemoryGauge, types []*InterfaceType, ...) Type
- func CheckPathLiteral(gauge common.MemoryGauge, domain string, identifier string, ...) (Type, error)
- func LeastCommonSuperType(types ...Type) Type
- func MustInstantiate(t ParameterizedType, typeArguments ...Type) Type
- func RewriteWithIntersectionTypes(ty Type) (Type, bool)
- func RewriteWithOptionalReferenceTypes(ty Type) (Type, bool)
- func TypeActivationNestedType(typeActivation *VariableActivation, qualifiedIdentifier string) Type
- func UnwrapOptionalType(ty Type) Type
- type TypeAnnotation
- type TypeAnnotationRequiredError
- func (*TypeAnnotationRequiredError) DocumentationLink() string
- func (e *TypeAnnotationRequiredError) EndPosition(common.MemoryGauge) ast.Position
- func (e *TypeAnnotationRequiredError) Error() string
- func (*TypeAnnotationRequiredError) IsUserError()
- func (*TypeAnnotationRequiredError) SecondaryError() string
- func (e *TypeAnnotationRequiredError) StartPosition() ast.Position
- type TypeAnnotationState
- type TypeArgumentsCheck
- type TypeCheckFunc
- type TypeDeclaration
- type TypeID
- type TypeIDOrderedSet
- type TypeIndexableType
- type TypeMismatchError
- type TypeMismatchWithDescriptionError
- type TypeParameter
- type TypeParameterTypeInferenceError
- type TypeParameterTypeMismatchError
- type TypeParameterTypeOrderedMap
- type TypeRewriter
- type TypeTag
- type UnauthorizedReferenceAssignmentError
- type UnconvertibleTypeError
- type UninitializedFieldAccessError
- func (*UninitializedFieldAccessError) DocumentationLink() string
- func (e *UninitializedFieldAccessError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *UninitializedFieldAccessError) Error() string
- func (*UninitializedFieldAccessError) IsUserError()
- func (*UninitializedFieldAccessError) SecondaryError() string
- func (e *UninitializedFieldAccessError) StartPosition() ast.Position
- type UninitializedUseError
- func (*UninitializedUseError) DocumentationLink() string
- func (e *UninitializedUseError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
- func (e *UninitializedUseError) Error() string
- func (*UninitializedUseError) IsUserError()
- func (*UninitializedUseError) SecondaryError() string
- func (e *UninitializedUseError) StartPosition() ast.Position
- type UnknownSpecialFunctionError
- func (*UnknownSpecialFunctionError) DocumentationLink() string
- func (e *UnknownSpecialFunctionError) EndPosition(common.MemoryGauge) ast.Position
- func (*UnknownSpecialFunctionError) Error() string
- func (*UnknownSpecialFunctionError) IsUserError()
- func (*UnknownSpecialFunctionError) SecondaryError() string
- func (e *UnknownSpecialFunctionError) StartPosition() ast.Position
- type UnparameterizedTypeInstantiationError
- type UnreachableStatementError
- func (*UnreachableStatementError) DocumentationLink() string
- func (*UnreachableStatementError) Error() string
- func (*UnreachableStatementError) IsUserError()
- func (*UnreachableStatementError) SecondaryError() string
- func (e *UnreachableStatementError) SuggestFixes(code string) []errors.SuggestedFix[ast.TextEdit]
- type UnrepresentableEntitlementMapOutputError
- func (*UnrepresentableEntitlementMapOutputError) DocumentationLink() string
- func (e *UnrepresentableEntitlementMapOutputError) EndPosition(common.MemoryGauge) ast.Position
- func (e *UnrepresentableEntitlementMapOutputError) Error() string
- func (*UnrepresentableEntitlementMapOutputError) IsUserError()
- func (e *UnrepresentableEntitlementMapOutputError) SecondaryError() string
- func (e *UnrepresentableEntitlementMapOutputError) StartPosition() ast.Position
- type UnresolvedImportError
- type UnsupportedOptionalChainingAssignmentError
- type UnsupportedOverloadingError
- type UnsupportedResourceForLoopError
- type ValidTopLevelDeclarationsHandlerFunc
- type ValueDeclaration
- type ValueIndexableType
- type ValueIndexingInfo
- type Variable
- type VariableActivation
- func (a *VariableActivation) Clear()
- func (a *VariableActivation) DeclareType(declaration TypeDeclaration)
- func (a *VariableActivation) DeclareValue(declaration ValueDeclaration)
- func (a *VariableActivation) Find(name string) *Variable
- func (a *VariableActivation) ForEach(cb func(string, *Variable) error) error
- func (a *VariableActivation) Set(name string, variable *Variable)
- func (a *VariableActivation) SetParent(parent *VariableActivation)
- type VariableActivations
- func (a *VariableActivations) Current() *VariableActivation
- func (a *VariableActivations) DeclareValue(declaration ValueDeclaration) (*Variable, error)
- func (a *VariableActivations) Depth() int
- func (a *VariableActivations) Enter()
- func (a *VariableActivations) Find(name string) *Variable
- func (a *VariableActivations) ForEachVariableDeclaredInAndBelow(depth int, f func(name string, value *Variable))
- func (a *VariableActivations) Leave(getEndPosition func(common.MemoryGauge) ast.Position)
- func (a *VariableActivations) Set(name string, variable *Variable)
- type VariableDeclarationTypes
- type VariableSizedType
- func (*VariableSizedType) AllowsValueIndexingAssignment() bool
- func (t *VariableSizedType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
- func (t *VariableSizedType) ContainFieldsOrElements() bool
- func (t *VariableSizedType) ElementType(_ bool) Type
- func (t *VariableSizedType) Equal(other Type) bool
- func (t *VariableSizedType) GetMembers() map[string]MemberResolver
- func (t *VariableSizedType) ID() TypeID
- func (t *VariableSizedType) IndexingType() Type
- func (t *VariableSizedType) IsComparable() bool
- func (t *VariableSizedType) IsEquatable() bool
- func (t *VariableSizedType) IsExportable(results map[*Member]bool) bool
- func (t *VariableSizedType) IsImportable(results map[*Member]bool) bool
- func (t *VariableSizedType) IsInvalidType() bool
- func (t *VariableSizedType) IsOrContainsReferenceType() bool
- func (t *VariableSizedType) IsPrimitiveType() bool
- func (t *VariableSizedType) IsResourceType() bool
- func (t *VariableSizedType) IsStorable(results map[*Member]bool) bool
- func (*VariableSizedType) IsType()
- func (*VariableSizedType) Precedence() ast.TypePrecedence
- func (t *VariableSizedType) QualifiedString() string
- func (t *VariableSizedType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
- func (t *VariableSizedType) Rewrite(rewrite TypeRewriter) (Type, bool)
- func (t *VariableSizedType) String() string
- func (t *VariableSizedType) SupportedEntitlements() *EntitlementSet
- func (t *VariableSizedType) Tag() TypeTag
- func (t *VariableSizedType) TypeAnnotationState() TypeAnnotationState
- func (t *VariableSizedType) Unify(other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), ...) bool
- type VirtualImport
Constants ¶
const ( Int8TypeSize uint = 1 UInt8TypeSize uint = 1 Word8TypeSize uint = 1 Int16TypeSize uint = 2 UInt16TypeSize uint = 2 Word16TypeSize uint = 2 Int32TypeSize uint = 4 UInt32TypeSize uint = 4 Word32TypeSize uint = 4 Int64TypeSize uint = 8 UInt64TypeSize uint = 8 Word64TypeSize uint = 8 Fix64TypeSize uint = 8 UFix64TypeSize uint = 8 Int128TypeSize uint = 16 UInt128TypeSize uint = 16 Fix128TypeSize uint = 16 UFix128TypeSize uint = 16 Word128TypeSize uint = 16 Int256TypeSize uint = 32 UInt256TypeSize uint = 32 Word256TypeSize uint = 32 )
size constants (in bytes) for fixed-width numeric types
const ( NumberTypeName = "Number" SignedNumberTypeName = "SignedNumber" IntegerTypeName = "Integer" SignedIntegerTypeName = "SignedInteger" FixedSizeUnsignedIntegerTypeName = "FixedSizeUnsignedInteger" FixedPointTypeName = "FixedPoint" SignedFixedPointTypeName = "SignedFixedPoint" IntTypeName = "Int" Int8TypeName = "Int8" Int16TypeName = "Int16" Int32TypeName = "Int32" Int64TypeName = "Int64" Int128TypeName = "Int128" Int256TypeName = "Int256" UIntTypeName = "UInt" UInt8TypeName = "UInt8" UInt16TypeName = "UInt16" UInt32TypeName = "UInt32" UInt64TypeName = "UInt64" UInt128TypeName = "UInt128" UInt256TypeName = "UInt256" Word8TypeName = "Word8" Word16TypeName = "Word16" Word32TypeName = "Word32" Word64TypeName = "Word64" Word128TypeName = "Word128" Word256TypeName = "Word256" Fix64TypeName = "Fix64" Fix128TypeName = "Fix128" UFix64TypeName = "UFix64" UFix128TypeName = "UFix128" )
const AccountCapabilityControllerTypeBorrowTypeFieldDocString = `
The type of the controlled capability, i.e. the T in ` + "`Capability<T>`" + `.
`
const AccountCapabilityControllerTypeBorrowTypeFieldName = "borrowType"
const AccountCapabilityControllerTypeCapabilityFieldDocString = `
The capability that is controlled by this controller.
`
const AccountCapabilityControllerTypeCapabilityFieldName = "capability"
const AccountCapabilityControllerTypeCapabilityIDFieldDocString = `
The identifier of the controlled capability.
All copies of a capability have the same ID.
`
const AccountCapabilityControllerTypeCapabilityIDFieldName = "capabilityID"
const AccountCapabilityControllerTypeDeleteFunctionDocString = `` /* 380-byte string literal not displayed */
const AccountCapabilityControllerTypeDeleteFunctionName = "delete"
const AccountCapabilityControllerTypeName = "AccountCapabilityController"
const AccountCapabilityControllerTypeSetTagFunctionDocString = `
Updates this controller's tag to the provided string
`
const AccountCapabilityControllerTypeSetTagFunctionName = "setTag"
const AccountCapabilityControllerTypeTagFieldDocString = `` /* 131-byte string literal not displayed */
const AccountCapabilityControllerTypeTagFieldName = "tag"
const AccountKeyHashAlgoFieldName = "hashAlgorithm"
const AccountKeyIsRevokedFieldName = "isRevoked"
const AccountKeyKeyIndexFieldName = "keyIndex"
const AccountKeyPublicKeyFieldName = "publicKey"
const AccountKeyTypeName = "AccountKey"
const AccountKeyWeightFieldName = "weight"
const AccountTypeAddressFieldDocString = `
The address of the account.
`
const AccountTypeAddressFieldName = "address"
const AccountTypeAvailableBalanceFieldDocString = `
The FLOW balance of the default vault of this account that is available to be moved.
`
const AccountTypeAvailableBalanceFieldName = "availableBalance"
const AccountTypeBalanceFieldDocString = `
The FLOW balance of the default vault of this account.
`
const AccountTypeBalanceFieldName = "balance"
const AccountTypeCapabilitiesFieldDocString = `
The capabilities of the account.
`
const AccountTypeCapabilitiesFieldName = "capabilities"
const AccountTypeContractsFieldDocString = `
The contracts deployed to the account.
`
const AccountTypeContractsFieldName = "contracts"
const AccountTypeInboxFieldDocString = `
The inbox allows bootstrapping (sending and receiving) capabilities.
`
const AccountTypeInboxFieldName = "inbox"
const AccountTypeKeysFieldDocString = `
The keys assigned to the account.
`
const AccountTypeKeysFieldName = "keys"
const AccountTypeName = "Account"
const AccountTypeStorageFieldDocString = `
The storage of the account.
`
const AccountTypeStorageFieldName = "storage"
const Account_AccountCapabilitiesTypeForEachControllerFunctionDocString = `
Iterate over all account capability controllers for all account capabilities,
passing a reference to each controller to the provided callback function.
Iteration is stopped early if the callback function returns ` + "`false`" + `.
If a new account capability controller is issued for the account,
or an existing account capability controller for the account is deleted,
then the callback must stop iteration by returning false.
Otherwise, iteration aborts.
`
const Account_AccountCapabilitiesTypeForEachControllerFunctionName = "forEachController"
const Account_AccountCapabilitiesTypeGetControllerFunctionDocString = `` /* 139-byte string literal not displayed */
const Account_AccountCapabilitiesTypeGetControllerFunctionName = "getController"
const Account_AccountCapabilitiesTypeGetControllersFunctionDocString = `
Get all capability controllers for all account capabilities.
`
const Account_AccountCapabilitiesTypeGetControllersFunctionName = "getControllers"
const Account_AccountCapabilitiesTypeIssueFunctionDocString = `
Issue/create a new account capability.
`
const Account_AccountCapabilitiesTypeIssueFunctionName = "issue"
const Account_AccountCapabilitiesTypeIssueWithTypeFunctionDocString = `
Issue/create a new account capability.
`
const Account_AccountCapabilitiesTypeIssueWithTypeFunctionName = "issueWithType"
const Account_AccountCapabilitiesTypeName = "AccountCapabilities"
const Account_CapabilitiesTypeAccountFieldDocString = `
The account capabilities of the account.
`
const Account_CapabilitiesTypeAccountFieldName = "account"
const Account_CapabilitiesTypeBorrowFunctionDocString = `
Borrows the capability at the given public path.
Returns nil if the capability does not exist, or cannot be borrowed using the given type.
The function is equivalent to ` + "`get(path).borrow()`" + `.
`
const Account_CapabilitiesTypeBorrowFunctionName = "borrow"
const Account_CapabilitiesTypeExistsFunctionDocString = `
Returns true if a capability exists at the given public path.
`
const Account_CapabilitiesTypeExistsFunctionName = "exists"
const Account_CapabilitiesTypeGetFunctionDocString = `
Returns the capability at the given public path.
If the capability does not exist,
or if the given type is not a supertype of the capability's borrow type,
returns an "invalid" capability with ID 0 that will always fail to ` + "`check`" + ` or ` + "`borrow`" + `
`
const Account_CapabilitiesTypeGetFunctionName = "get"
const Account_CapabilitiesTypeName = "Capabilities"
const Account_CapabilitiesTypePublishFunctionDocString = `
Publish the capability at the given public path.
If there is already a capability published under the given path, the program aborts.
The path must be a public path, i.e., only the domain ` + "`public`" + ` is allowed.
`
const Account_CapabilitiesTypePublishFunctionName = "publish"
const Account_CapabilitiesTypeStorageFieldDocString = `
The storage capabilities of the account.
`
const Account_CapabilitiesTypeStorageFieldName = "storage"
const Account_CapabilitiesTypeUnpublishFunctionDocString = `` /* 169-byte string literal not displayed */
const Account_CapabilitiesTypeUnpublishFunctionName = "unpublish"
const Account_ContractsTypeAddFunctionDocString = `
Adds the given contract to the account.
The ` + "`code`" + ` parameter is the UTF-8 encoded representation of the source code.
The code must contain exactly one contract or contract interface,
which must have the same name as the ` + "`name`" + ` parameter.
All additional arguments that are given are passed further to the initializer
of the contract that is being deployed.
The function fails if a contract/contract interface with the given name already exists in the account,
if the given code does not declare exactly one contract or contract interface,
or if the given name does not match the name of the contract/contract interface declaration in the code.
Returns the deployed contract.
`
const Account_ContractsTypeAddFunctionName = "add"
const Account_ContractsTypeBorrowFunctionDocString = `` /* 225-byte string literal not displayed */
const Account_ContractsTypeBorrowFunctionName = "borrow"
const Account_ContractsTypeGetFunctionDocString = `` /* 201-byte string literal not displayed */
const Account_ContractsTypeGetFunctionName = "get"
const Account_ContractsTypeName = "Contracts"
const Account_ContractsTypeNamesFieldDocString = `
The names of all contracts deployed in the account.
`
const Account_ContractsTypeNamesFieldName = "names"
const Account_ContractsTypeRemoveFunctionDocString = `` /* 230-byte string literal not displayed */
const Account_ContractsTypeRemoveFunctionName = "remove"
const Account_ContractsTypeTryUpdateFunctionDocString = `
Updates the code for the contract/contract interface in the account,
and handle any deployment errors gracefully.
The ` + "`code`" + ` parameter is the UTF-8 encoded representation of the source code.
The code must contain exactly one contract or contract interface,
which must have the same name as the ` + "`name`" + ` parameter.
Does **not** run the initializer of the contract/contract interface again.
The contract instance in the world state stays as is.
Fails if no contract/contract interface with the given name exists in the account,
if the given code does not declare exactly one contract or contract interface,
or if the given name does not match the name of the contract/contract interface declaration in the code.
Returns the deployment result.
Result would contain the deployed contract for the updated contract, if the update was successful.
Otherwise, the deployed contract would be nil.
`
const Account_ContractsTypeTryUpdateFunctionName = "tryUpdate"
const Account_ContractsTypeUpdateFunctionDocString = `
Updates the code for the contract/contract interface in the account.
The ` + "`code`" + ` parameter is the UTF-8 encoded representation of the source code.
The code must contain exactly one contract or contract interface,
which must have the same name as the ` + "`name`" + ` parameter.
Does **not** run the initializer of the contract/contract interface again.
The contract instance in the world state stays as is.
Fails if no contract/contract interface with the given name exists in the account,
if the given code does not declare exactly one contract or contract interface,
or if the given name does not match the name of the contract/contract interface declaration in the code.
Returns the deployed contract for the updated contract.
`
const Account_ContractsTypeUpdateFunctionName = "update"
const Account_InboxTypeClaimFunctionDocString = `
Claims a Capability previously published by the specified provider.
Returns ` + "`nil`" + ` if no Capability is published under the given name,
or if this account is not its intended recipient.
Errors if the Capability under that name does not match the provided type.
`
const Account_InboxTypeClaimFunctionName = "claim"
const Account_InboxTypeName = "Inbox"
const Account_InboxTypePublishFunctionDocString = `
Publishes a new Capability under the given name,
to be claimed by the specified recipient.
`
const Account_InboxTypePublishFunctionName = "publish"
const Account_InboxTypeUnpublishFunctionDocString = `
Unpublishes a Capability previously published by this account.
Returns ` + "`nil`" + ` if no Capability is published under the given name.
Errors if the Capability under that name does not match the provided type.
`
const Account_InboxTypeUnpublishFunctionName = "unpublish"
const Account_KeysTypeAddFunctionDocString = `
Adds a new key with the given hashing algorithm and a weight.
Returns the added key.
`
const Account_KeysTypeAddFunctionName = "add"
const Account_KeysTypeCountFieldDocString = `
The total number of unrevoked keys in this account.
`
const Account_KeysTypeCountFieldName = "count"
const Account_KeysTypeForEachFunctionDocString = `
Iterate over all unrevoked keys in this account,
passing each key in turn to the provided function.
Iteration is stopped early if the function returns ` + "`false`" + `.
The order of iteration is undefined.
`
const Account_KeysTypeForEachFunctionName = "forEach"
const Account_KeysTypeGetFunctionDocString = `
Returns the key at the given index, if it exists, or nil otherwise.
Revoked keys are always returned, but they have ` + "`isRevoked`" + ` field set to true.
`
const Account_KeysTypeGetFunctionName = "get"
const Account_KeysTypeName = "Keys"
const Account_KeysTypeRevokeFunctionDocString = `
Marks the key at the given index revoked, but does not delete it.
Returns the revoked key if it exists, or nil otherwise.
`
const Account_KeysTypeRevokeFunctionName = "revoke"
const Account_StorageCapabilitiesTypeForEachControllerFunctionDocString = `
Iterate over all storage capability controllers for capabilities that target this storage path,
passing a reference to each controller to the provided callback function.
Iteration is stopped early if the callback function returns ` + "`false`" + `.
If a new storage capability controller is issued for the path,
an existing storage capability controller for the path is deleted,
or a storage capability controller is retargeted from or to the path,
then the callback must stop iteration by returning false.
Otherwise, iteration aborts.
`
const Account_StorageCapabilitiesTypeForEachControllerFunctionName = "forEachController"
const Account_StorageCapabilitiesTypeGetControllerFunctionDocString = `` /* 155-byte string literal not displayed */
const Account_StorageCapabilitiesTypeGetControllerFunctionName = "getController"
const Account_StorageCapabilitiesTypeGetControllersFunctionDocString = `
Get all storage capability controllers for capabilities that target this storage path
`
const Account_StorageCapabilitiesTypeGetControllersFunctionName = "getControllers"
const Account_StorageCapabilitiesTypeIssueFunctionDocString = `
Issue/create a new storage capability.
`
const Account_StorageCapabilitiesTypeIssueFunctionName = "issue"
const Account_StorageCapabilitiesTypeIssueWithTypeFunctionDocString = `
Issue/create a new storage capability.
`
const Account_StorageCapabilitiesTypeIssueWithTypeFunctionName = "issueWithType"
const Account_StorageCapabilitiesTypeName = "StorageCapabilities"
const Account_StorageTypeBorrowFunctionDocString = `
Returns a reference to an object in storage without removing it from storage.
If no object is stored under the given path, the function returns nil.
If there is an object stored, a reference is returned as an optional,
provided it can be borrowed using the given type.
If the stored object cannot be borrowed using the given type, the function panics.
The given type must not necessarily be exactly the same as the type of the borrowed object.
The path must be a storage path, i.e., only the domain ` + "`storage`" + ` is allowed
`
const Account_StorageTypeBorrowFunctionName = "borrow"
const Account_StorageTypeCapacityFieldDocString = `
The storage capacity of the account in bytes.
`
const Account_StorageTypeCapacityFieldName = "capacity"
const Account_StorageTypeCheckFunctionDocString = `
Returns true if the object in account storage under the given path satisfies the given type,
i.e. could be borrowed using the given type.
The given type must not necessarily be exactly the same as the type of the borrowed object.
The path must be a storage path, i.e., only the domain ` + "`storage`" + ` is allowed.
`
const Account_StorageTypeCheckFunctionName = "check"
const Account_StorageTypeCopyFunctionDocString = `
Returns a copy of a structure stored in account storage under the given path,
without removing it from storage,
or nil if no object is stored under the given path.
If there is a structure stored, it is copied.
The structure stays stored in storage after the function returns.
The given type must be a supertype of the type of the copied structure.
If it is not, the function panics.
The given type must not necessarily be exactly the same as the type of the copied structure.
The path must be a storage path, i.e., only the domain ` + "`storage`" + ` is allowed.
`
const Account_StorageTypeCopyFunctionName = "copy"
const Account_StorageTypeForEachPublicFunctionDocString = `
Iterate over all the public paths of an account,
passing each path and type in turn to the provided callback function.
The callback function takes two arguments:
1. The path of the stored object
2. The runtime type of that object
Iteration is stopped early if the callback function returns ` + "`false`" + `.
The order of iteration is undefined.
If an object is stored under a new public path,
or an existing object is removed from a public path,
then the callback must stop iteration by returning false.
Otherwise, iteration aborts.
`
const Account_StorageTypeForEachPublicFunctionName = "forEachPublic"
const Account_StorageTypeForEachStoredFunctionDocString = `
Iterate over all the stored paths of an account,
passing each path and type in turn to the provided callback function.
The callback function takes two arguments:
1. The path of the stored object
2. The runtime type of that object
Iteration is stopped early if the callback function returns ` + "`false`" + `.
If an object is stored under a new storage path,
or an existing object is removed from a storage path,
then the callback must stop iteration by returning false.
Otherwise, iteration aborts.
`
const Account_StorageTypeForEachStoredFunctionName = "forEachStored"
const Account_StorageTypeLoadFunctionDocString = `
Loads an object from the account's storage which is stored under the given path,
or nil if no object is stored under the given path.
If there is an object stored,
the stored resource or structure is moved out of storage and returned as an optional.
When the function returns, the storage no longer contains an object under the given path.
The given type must be a supertype of the type of the loaded object.
If it is not, the function panics.
The given type must not necessarily be exactly the same as the type of the loaded object.
The path must be a storage path, i.e., only the domain ` + "`storage`" + ` is allowed.
`
const Account_StorageTypeLoadFunctionName = "load"
const Account_StorageTypeName = "Storage"
const Account_StorageTypePublicPathsFieldDocString = `
All public paths of this account.
`
const Account_StorageTypePublicPathsFieldName = "publicPaths"
const Account_StorageTypeSaveFunctionDocString = `
Saves the given object into the account's storage at the given path.
Resources are moved into storage, and structures are copied.
If there is already an object stored under the given path, the program aborts.
The path must be a storage path, i.e., only the domain ` + "`storage`" + ` is allowed.
`
const Account_StorageTypeSaveFunctionName = "save"
const Account_StorageTypeStoragePathsFieldDocString = `
All storage paths of this account.
`
const Account_StorageTypeStoragePathsFieldName = "storagePaths"
const Account_StorageTypeTypeFunctionDocString = `
Reads the type of an object from the account's storage which is stored under the given path,
or nil if no object is stored under the given path.
If there is an object stored, the type of the object is returned without modifying the stored object.
The path must be a storage path, i.e., only the domain ` + "`storage`" + ` is allowed.
`
const Account_StorageTypeTypeFunctionName = "type"
const Account_StorageTypeUsedFieldDocString = `
The current amount of storage used by the account in bytes.
`
const Account_StorageTypeUsedFieldName = "used"
const AddressTypeFromBytesFunctionDocString = `
Returns an Address from the given byte array
`
const AddressTypeFromBytesFunctionName = "fromBytes"
const AddressTypeFromStringFunctionDocString = `
Attempts to parse an Address from the input string. Returns nil on invalid input.
`
const AddressTypeFromStringFunctionName = "fromString"
const AddressTypeName = "Address"
const AddressTypeToBytesFunctionName = `toBytes`
const AnyResourceAttachmentTypeName = "AnyResourceAttachment"
const AnyStructAttachmentTypeName = "AnyStructAttachment"
const ArgumentLabelNotRequired = "_"
const ArrayTypeAppendAllFunctionName = "appendAll"
const ArrayTypeAppendFunctionName = "append"
const ArrayTypeConcatFunctionName = "concat"
const ArrayTypeContainsFunctionName = "contains"
const ArrayTypeFilterFunctionName = "filter"
const ArrayTypeFirstIndexFunctionName = "firstIndex"
const ArrayTypeInsertFunctionName = "insert"
const ArrayTypeMapFunctionName = "map"
const ArrayTypeRemoveFirstFunctionName = "removeFirst"
const ArrayTypeRemoveFunctionName = "remove"
const ArrayTypeRemoveLastFunctionName = "removeLast"
const ArrayTypeReverseFunctionName = "reverse"
const ArrayTypeSliceFunctionName = "slice"
const ArrayTypeToConstantSizedFunctionName = "toConstantSized"
const ArrayTypeToVariableSizedFunctionName = "toVariableSized"
const BaseIdentifier = "base"
const BeforeIdentifier = "before"
const BlockTypeHeightFieldDocString = `` /* 184-byte string literal not displayed */
const BlockTypeHeightFieldName = "height"
const BlockTypeIdFieldDocString = `
The ID of the block.
It is essentially the hash of the block
`
const BlockTypeIdFieldName = "id"
const BlockTypeName = "Block"
const BlockTypeTimestampFieldDocString = `
Consider observing blocks' status changes off-chain yourself to get a more reliable value.
`
const BlockTypeTimestampFieldName = "timestamp"
const BlockTypeViewFieldDocString = `` /* 275-byte string literal not displayed */
const BlockTypeViewFieldName = "view"
const CapabilityTypeAddressFieldName = "address"
const CapabilityTypeBorrowFunctionName = "borrow"
const CapabilityTypeCheckFunctionName = "check"
const CapabilityTypeFunctionName = "CapabilityType"
const CapabilityTypeIDFieldName = "id"
const CharacterTypeName = "Character"
const CharacterTypeToStringFunctionDocString = `
Returns this character as a String.
`
const CharacterTypeToStringFunctionName = "toString"
const CharacterTypeUtf8FieldDocString = `
The byte array of the UTF-8 encoding.
`
const CharacterTypeUtf8FieldName = "utf8"
const CompareSubtypingResults = false
const CompositeForEachAttachmentFunctionName = "forEachAttachment"
const CompositeTypeFunctionName = "CompositeType"
const ConstantSizedArrayTypeFunctionName = "ConstantSizedArrayType"
const ContractAccountFieldName = "account"
const DeployedContractTypeAddressFieldDocString = `
The address of the account where the contract is deployed at.
`
const DeployedContractTypeAddressFieldName = "address"
const DeployedContractTypeCodeFieldDocString = `
The code of the contract.
`
const DeployedContractTypeCodeFieldName = "code"
const DeployedContractTypeName = "DeployedContract"
const DeployedContractTypeNameFieldDocString = `
The name of the contract.
`
const DeployedContractTypeNameFieldName = "name"
const DeployedContractTypePublicTypesFunctionDocString = `
Returns an array of ` + "`Type`" + ` objects representing all the public type declarations in this contract
(e.g. structs, resources, enums).
For example, given a contract
` + `
contract Foo {
access(all) struct Bar {...}
access(all) resource Qux {...}
}
` + `
then ` + "`.publicTypes()`" + ` will return an array equivalent to the expression ` + "`[Type<Bar>(), Type<Qux>()]`" + `
`
const DeployedContractTypePublicTypesFunctionName = "publicTypes"
const DeploymentResultTypeDeployedContractFieldDocString = `
The deployed contract.
If the deployment was unsuccessful, this will be nil.
`
const DeploymentResultTypeDeployedContractFieldName = "deployedContract"
const DeploymentResultTypeName = "DeploymentResult"
const DictionaryTypeContainsKeyFunctionName = "containsKey"
const DictionaryTypeForEachKeyFunctionName = "forEachKey"
const DictionaryTypeFunctionName = "DictionaryType"
const DictionaryTypeInsertFunctionName = "insert"
const DictionaryTypeRemoveFunctionName = "remove"
const EnumRawValueFieldName = "rawValue"
const Fix128Scale = fixedpoint.Fix128Scale
const Fix64Factor = fixedpoint.Fix64Factor
const Fix64Scale = fixedpoint.Fix64Scale
const Fix64TypeMaxFractional = fixedpoint.Fix64TypeMaxFractional
const Fix64TypeMaxInt = fixedpoint.Fix64TypeMaxInt
const Fix64TypeMinFractional = fixedpoint.Fix64TypeMinFractional
const Fix64TypeMinInt = fixedpoint.Fix64TypeMinInt
const FromBigEndianBytesFunctionName = "fromBigEndianBytes"
const FromStringFunctionName = "fromString"
fromString
const FunctionEntryPointName = "main"
const FunctionTypeFunctionName = "FunctionType"
const GetTypeFunctionName = "getType"
const HashAlgorithmDocStringKECCAK_256 = `` /* 187-byte string literal not displayed */
const HashAlgorithmDocStringKMAC128_BLS_BLS12_381 = `` /* 546-byte string literal not displayed */
const HashAlgorithmDocStringSHA2_256 = `
SHA2_256 is SHA-2 with a 256-bit digest (also referred to as SHA256)
`
const HashAlgorithmDocStringSHA2_384 = `
SHA2_384 is SHA-2 with a 384-bit digest (also referred to as SHA384)
`
const HashAlgorithmDocStringSHA3_256 = `
SHA3_256 is SHA-3 with a 256-bit digest
`
const HashAlgorithmDocStringSHA3_384 = `
SHA3_384 is SHA-3 with a 384-bit digest
`
const HashAlgorithmTypeHashFunctionDocString = `
Returns the hash of the given data
`
const HashAlgorithmTypeHashFunctionName = "hash"
const HashAlgorithmTypeHashWithTagFunctionDocString = `
Returns the hash of the given data and tag
`
const HashAlgorithmTypeHashWithTagFunctionName = "hashWithTag"
const HashAlgorithmTypeName = "HashAlgorithm"
const HashableStructTypeName = "HashableStruct"
const IdentityMappingIdentifier string = "Identity"
const InclusiveRangeTypeContainsFunctionName = "contains"
const InclusiveRangeTypeEndFieldName = "end"
const InclusiveRangeTypeFunctionName = "InclusiveRangeType"
const InclusiveRangeTypeStartFieldName = "start"
const InclusiveRangeTypeStepFieldName = "step"
const IntersectionTypeFunctionName = "IntersectionType"
const IsInstanceFunctionName = "isInstance"
const MetaTypeAddressFieldName = "address"
const MetaTypeContractNameFieldName = "contractName"
const MetaTypeIdentifierFieldName = "identifier"
const MetaTypeIsRecoveredFieldName = "isRecovered"
const MetaTypeIsSubtypeFunctionName = "isSubtype"
const MetaTypeName = "Type"
const NumberTypeMaxFieldName = "max"
const NumberTypeMinFieldName = "min"
const NumericTypeSaturatingAddFunctionName = "saturatingAdd"
const NumericTypeSaturatingDivideFunctionName = "saturatingDivide"
const NumericTypeSaturatingMultiplyFunctionName = "saturatingMultiply"
const NumericTypeSaturatingSubtractFunctionName = "saturatingSubtract"
const OptionalTypeFunctionName = "OptionalType"
const OptionalTypeMapFunctionName = "map"
const PublicKeyTypeName = "PublicKey"
const PublicKeyTypePublicKeyFieldName = "publicKey"
const PublicKeyTypeSignatureAlgorithmFieldName = "signatureAlgorithm"
const PublicKeyTypeVerifyFunctionName = "verify"
const PublicKeyTypeVerifyPoPFunctionName = "verifyPoP"
const ReferenceTypeFunctionName = "ReferenceType"
const ResourceOwnerFieldName = "owner"
const ResourceUUIDFieldName = "uuid"
const ResultIdentifier = "result"
const SelfIdentifier = "self"
const SignatureAlgorithmDocStringBLS_BLS12_381 = `` /* 244-byte string literal not displayed */
const SignatureAlgorithmDocStringECDSA_P256 = `
ECDSA_P256 is ECDSA on the NIST P-256 curve
`
const SignatureAlgorithmDocStringECDSA_secp256k1 = `
ECDSA_secp256k1 is ECDSA on the secp256k1 curve
`
const SignatureAlgorithmTypeName = "SignatureAlgorithm"
const StorageCapabilityControllerTypeBorrowTypeFieldDocString = `
The type of the controlled capability, i.e. the T in ` + "`Capability<T>`" + `.
`
const StorageCapabilityControllerTypeBorrowTypeFieldName = "borrowType"
const StorageCapabilityControllerTypeCapabilityFieldDocString = `
The capability that is controlled by this controller.
`
const StorageCapabilityControllerTypeCapabilityFieldName = "capability"
const StorageCapabilityControllerTypeCapabilityIDFieldDocString = `
The identifier of the controlled capability.
All copies of a capability have the same ID.
`
const StorageCapabilityControllerTypeCapabilityIDFieldName = "capabilityID"
const StorageCapabilityControllerTypeDeleteFunctionDocString = `` /* 380-byte string literal not displayed */
const StorageCapabilityControllerTypeDeleteFunctionName = "delete"
const StorageCapabilityControllerTypeName = "StorageCapabilityController"
const StorageCapabilityControllerTypeRetargetFunctionDocString = `
Retarget the controlled capability to the given storage path.
The path may be different or the same as the current path.
`
const StorageCapabilityControllerTypeRetargetFunctionName = "retarget"
const StorageCapabilityControllerTypeSetTagFunctionDocString = `
Updates this controller's tag to the provided string
`
const StorageCapabilityControllerTypeSetTagFunctionName = "setTag"
const StorageCapabilityControllerTypeTagFieldDocString = `` /* 131-byte string literal not displayed */
const StorageCapabilityControllerTypeTagFieldName = "tag"
const StorageCapabilityControllerTypeTargetFunctionDocString = `
Returns the targeted storage path of the controlled capability.
`
const StorageCapabilityControllerTypeTargetFunctionName = "target"
const StringTypeConcatFunctionName = "concat"
const StringTypeContainsFunctionName = "contains"
const StringTypeCountFunctionName = "count"
const StringTypeDecodeHexFunctionName = "decodeHex"
const StringTypeEncodeHexFunctionDocString = `
Returns a hexadecimal string for the given byte array
`
const StringTypeEncodeHexFunctionName = "encodeHex"
const StringTypeFromCharactersFunctionDocString = `
Returns a string from the given array of characters
`
const StringTypeFromCharactersFunctionName = "fromCharacters"
const StringTypeFromUtf8FunctionDocString = `
Attempt to decode the input as a UTF-8 encoded string. Returns nil if the input bytes are malformed UTF-8
`
const StringTypeFromUtf8FunctionName = "fromUTF8"
const StringTypeIndexFunctionName = "index"
const StringTypeJoinFunctionDocString = `
Returns a string after joining the array of strings with the provided separator.
`
const StringTypeJoinFunctionName = "join"
const StringTypeLengthFieldName = "length"
const StringTypeReplaceAllFunctionDocString = `
Returns a new string after replacing all the occurrences of parameter ` + "`of` with the parameter `with`" + `.
If ` + "`with`" + ` is empty, it matches at the beginning of the string and after each UTF-8 sequence, yielding k+1 replacements for a string of length k.
`
const StringTypeReplaceAllFunctionName = "replaceAll"
const StringTypeSliceFunctionName = "slice"
const StringTypeSplitFunctionDocString = `
Returns a variable-sized array of strings after splitting the string on the delimiter.
`
const StringTypeSplitFunctionName = "split"
const StringTypeToLowerFunctionName = "toLower"
const StringTypeUtf8FieldName = "utf8"
const StructStringerTypeName = "StructStringer"
const StructStringerTypeToStringFunctionDocString = `
Returns the string representation of this object.
`
const StructStringerTypeToStringFunctionName = "toString"
const ToBigEndianBytesFunctionName = "toBigEndianBytes"
const ToStringFunctionName = "toString"
const TransactionTypeName = "transaction"
const TypeIDSeparator = '.'
const UFix64TypeMaxFractional = fixedpoint.UFix64TypeMaxFractional
const UFix64TypeMaxInt = fixedpoint.UFix64TypeMaxInt
const UFix64TypeMinFractional = fixedpoint.UFix64TypeMinFractional
const UFix64TypeMinInt = fixedpoint.UFix64TypeMinInt
const VariableSizedArrayTypeFunctionName = "VariableSizedArrayType"
Variables ¶
var ( Int8TypeMinInt = new(big.Int).SetInt64(math.MinInt8) Int8TypeMaxInt = new(big.Int).SetInt64(math.MaxInt8) Int16TypeMinInt = new(big.Int).SetInt64(math.MinInt16) Int16TypeMaxInt = new(big.Int).SetInt64(math.MaxInt16) Int32TypeMinInt = new(big.Int).SetInt64(math.MinInt32) Int32TypeMaxInt = new(big.Int).SetInt64(math.MaxInt32) Int64TypeMinInt = new(big.Int).SetInt64(math.MinInt64) Int64TypeMaxInt = new(big.Int).SetInt64(math.MaxInt64) Int128TypeMinIntBig = integer.Int128TypeMinIntBig Int128TypeMaxIntBig = integer.Int128TypeMaxIntBig Int256TypeMinIntBig = func() *big.Int { int256TypeMin := big.NewInt(-1) int256TypeMin.Lsh(int256TypeMin, 255) return int256TypeMin }() Int256TypeMaxIntBig = func() *big.Int { int256TypeMax := big.NewInt(1) int256TypeMax.Lsh(int256TypeMax, 255) int256TypeMax.Sub(int256TypeMax, big.NewInt(1)) return int256TypeMax }() UIntTypeMin = new(big.Int) UInt8TypeMinInt = new(big.Int) UInt8TypeMaxInt = new(big.Int).SetUint64(math.MaxUint8) UInt16TypeMinInt = new(big.Int) UInt16TypeMaxInt = new(big.Int).SetUint64(math.MaxUint16) UInt32TypeMinInt = new(big.Int) UInt32TypeMaxInt = new(big.Int).SetUint64(math.MaxUint32) UInt64TypeMinInt = new(big.Int) UInt64TypeMaxInt = new(big.Int).SetUint64(math.MaxUint64) UInt128TypeMinIntBig = new(big.Int) UInt128TypeMaxIntBig = integer.UInt128TypeMaxIntBig UInt256TypeMinIntBig = new(big.Int) UInt256TypeMaxIntBig = func() *big.Int { uInt256TypeMax := big.NewInt(1) uInt256TypeMax.Lsh(uInt256TypeMax, 256) uInt256TypeMax.Sub(uInt256TypeMax, big.NewInt(1)) return uInt256TypeMax }() Word8TypeMinInt = new(big.Int) Word8TypeMaxInt = new(big.Int).SetUint64(math.MaxUint8) Word16TypeMinInt = new(big.Int) Word16TypeMaxInt = new(big.Int).SetUint64(math.MaxUint16) Word32TypeMinInt = new(big.Int) Word32TypeMaxInt = new(big.Int).SetUint64(math.MaxUint32) Word64TypeMinInt = new(big.Int) Word64TypeMaxInt = new(big.Int).SetUint64(math.MaxUint64) // 1 << 128 Word128TypeMaxIntPlusOneBig = func() *big.Int { word128TypeMaxPlusOne := big.NewInt(1) word128TypeMaxPlusOne.Lsh(word128TypeMaxPlusOne, 128) return word128TypeMaxPlusOne }() Word128TypeMinIntBig = new(big.Int) Word128TypeMaxIntBig = func() *big.Int { word128TypeMax := new(big.Int) word128TypeMax.Sub(Word128TypeMaxIntPlusOneBig, big.NewInt(1)) return word128TypeMax }() // 1 << 256 Word256TypeMaxIntPlusOneBig = func() *big.Int { word256TypeMaxPlusOne := big.NewInt(1) word256TypeMaxPlusOne.Lsh(word256TypeMaxPlusOne, 256) return word256TypeMaxPlusOne }() Word256TypeMinIntBig = new(big.Int) Word256TypeMaxIntBig = func() *big.Int { word256TypeMax := new(big.Int) word256TypeMax.Sub(Word256TypeMaxIntPlusOneBig, big.NewInt(1)) return word256TypeMax }() Fix64FactorBig = new(big.Int).SetUint64(uint64(Fix64Factor)) Fix64TypeMinIntBig = fixedpoint.Fix64TypeMinIntBig Fix64TypeMaxIntBig = fixedpoint.Fix64TypeMaxIntBig Fix64TypeMinFractionalBig = fixedpoint.Fix64TypeMinFractionalBig Fix64TypeMaxFractionalBig = fixedpoint.Fix64TypeMaxFractionalBig Fix128FactorIntBig = fixedpoint.Fix128FactorAsBigInt Fix128TypeMinIntBig = fixedpoint.Fix128TypeMinIntBig Fix128TypeMaxIntBig = fixedpoint.Fix128TypeMaxIntBig Fix128TypeMinFractionalBig = fixedpoint.Fix128TypeMinFractionalBig Fix128TypeMaxFractionalBig = fixedpoint.Fix128TypeMaxFractionalBig UFix64TypeMinIntBig = fixedpoint.UFix64TypeMinIntBig UFix64TypeMaxIntBig = fixedpoint.UFix64TypeMaxIntBig UFix64TypeMinFractionalBig = fixedpoint.UFix64TypeMinFractionalBig UFix64TypeMaxFractionalBig = fixedpoint.UFix64TypeMaxFractionalBig UFix128FactorIntBig = fixedpoint.UFix128FactorAsBigInt UFix128TypeMinIntBig = fixedpoint.UFix128TypeMinIntBig UFix128TypeMaxIntBig = fixedpoint.UFix128TypeMaxIntBig UFix128TypeMinFractionalBig = fixedpoint.UFix128TypeMinFractionalBig UFix128TypeMaxFractionalBig = fixedpoint.UFix128TypeMaxFractionalBig )
Numeric type ranges
var ( // NoTypeTag is a special tag to represent mask with no types included NoTypeTag = newTypeTagFromLowerMask(noTypeMask) SignedIntegerTypeTag = newTypeTagFromLowerMask(signedIntegerTypeMask). Or(IntTypeTag). Or(Int8TypeTag). Or(Int16TypeTag). Or(Int32TypeTag). Or(Int64TypeTag). Or(Int128TypeTag). Or(Int256TypeTag) FixedSizeUnsignedIntegerTypeTag = newTypeTagFromUpperMask(fixedSizeUnsignedIntegerTypeMask). Or(UInt8TypeTag). Or(UInt16TypeTag). Or(UInt32TypeTag). Or(UInt64TypeTag). Or(UInt128TypeTag). Or(UInt256TypeTag). Or(Word8TypeTag). Or(Word16TypeTag). Or(Word32TypeTag). Or(Word64TypeTag). Or(Word128TypeTag). Or(Word256TypeTag) UnsignedIntegerTypeTag = newTypeTagFromLowerMask(unsignedIntegerTypeMask). Or(UIntTypeTag). Or(FixedSizeUnsignedIntegerTypeTag) IntegerTypeTag = newTypeTagFromLowerMask(integerTypeMask). Or(SignedIntegerTypeTag). Or(UnsignedIntegerTypeTag) SignedFixedPointTypeTag = newTypeTagFromLowerMask(signedFixedPointTypeMask). Or(Fix64TypeTag). Or(Fix128TypeTag) UnsignedFixedPointTypeTag = newTypeTagFromLowerMask(unsignedFixedPointTypeMask). Or(UFix64TypeTag). Or(UFix128TypeTag) FixedPointTypeTag = newTypeTagFromLowerMask(fixedPointTypeMask). Or(SignedFixedPointTypeTag). Or(UnsignedFixedPointTypeTag) SignedNumberTypeTag = newTypeTagFromLowerMask(signedNumberTypeMask). Or(SignedIntegerTypeTag). Or(SignedFixedPointTypeTag) NumberTypeTag = newTypeTagFromLowerMask(numberTypeMask). Or(IntegerTypeTag). Or(FixedPointTypeTag). Or(SignedNumberTypeTag) UIntTypeTag = newTypeTagFromLowerMask(uintTypeMask) UInt8TypeTag = newTypeTagFromLowerMask(uint8TypeMask) UInt16TypeTag = newTypeTagFromLowerMask(uint16TypeMask) UInt32TypeTag = newTypeTagFromLowerMask(uint32TypeMask) UInt64TypeTag = newTypeTagFromLowerMask(uint64TypeMask) UInt128TypeTag = newTypeTagFromLowerMask(uint128TypeMask) UInt256TypeTag = newTypeTagFromLowerMask(uint256TypeMask) IntTypeTag = newTypeTagFromLowerMask(intTypeMask) Int8TypeTag = newTypeTagFromLowerMask(int8TypeMask) Int16TypeTag = newTypeTagFromLowerMask(int16TypeMask) Int32TypeTag = newTypeTagFromLowerMask(int32TypeMask) Int64TypeTag = newTypeTagFromLowerMask(int64TypeMask) Int128TypeTag = newTypeTagFromLowerMask(int128TypeMask) Int256TypeTag = newTypeTagFromLowerMask(int256TypeMask) Word8TypeTag = newTypeTagFromLowerMask(word8TypeMask) Word16TypeTag = newTypeTagFromLowerMask(word16TypeMask) Word32TypeTag = newTypeTagFromLowerMask(word32TypeMask) Word64TypeTag = newTypeTagFromLowerMask(word64TypeMask) Word128TypeTag = newTypeTagFromLowerMask(word128TypeMask) Word256TypeTag = newTypeTagFromLowerMask(word256TypeMask) Fix64TypeTag = newTypeTagFromLowerMask(fix64TypeMask) Fix128TypeTag = newTypeTagFromLowerMask(fix128TypeMask) UFix64TypeTag = newTypeTagFromLowerMask(ufix64TypeMask) UFix128TypeTag = newTypeTagFromLowerMask(ufix128TypeMask) StringTypeTag = newTypeTagFromLowerMask(stringTypeMask) CharacterTypeTag = newTypeTagFromLowerMask(characterTypeMask) BoolTypeTag = newTypeTagFromLowerMask(boolTypeMask) NilTypeTag = newTypeTagFromLowerMask(nilTypeMask) VoidTypeTag = newTypeTagFromLowerMask(voidTypeMask) AddressTypeTag = newTypeTagFromLowerMask(addressTypeMask) MetaTypeTag = newTypeTagFromLowerMask(metaTypeMask) NeverTypeTag = newTypeTagFromLowerMask(neverTypeMask) BlockTypeTag = newTypeTagFromLowerMask(blockTypeMask) DeployedContractTypeTag = newTypeTagFromLowerMask(deployedContractMask) StoragePathTypeTag = newTypeTagFromLowerMask(storagePathTypeMask) PublicPathTypeTag = newTypeTagFromLowerMask(publicPathTypeMask) PrivatePathTypeTag = newTypeTagFromLowerMask(privatePathTypeMask) CapabilityPathTypeTag = newTypeTagFromLowerMask(capabilityPathTypeMask). Or(PublicPathTypeTag). Or(PrivatePathTypeTag) PathTypeTag = newTypeTagFromLowerMask(pathTypeMask). Or(CapabilityPathTypeTag). Or(StoragePathTypeTag) ConstantSizedTypeTag = newTypeTagFromLowerMask(constantSizedTypeMask) VariableSizedTypeTag = newTypeTagFromLowerMask(variableSizedTypeMask) DictionaryTypeTag = newTypeTagFromLowerMask(dictionaryTypeMask) CompositeTypeTag = newTypeTagFromLowerMask(compositeTypeMask) ReferenceTypeTag = newTypeTagFromLowerMask(referenceTypeMask) GenericTypeTag = newTypeTagFromLowerMask(genericTypeMask) FunctionTypeTag = newTypeTagFromUpperMask(functionTypeMask) InterfaceTypeTag = newTypeTagFromUpperMask(interfaceTypeMask) IntersectionTypeTag = newTypeTagFromUpperMask(intersectionTypeMask) CapabilityTypeTag = newTypeTagFromUpperMask(capabilityTypeMask) InclusiveRangeTypeTag = newTypeTagFromUpperMask(inclusiveRangeTypeMask) InvalidTypeTag = newTypeTagFromUpperMask(invalidTypeMask) TransactionTypeTag = newTypeTagFromUpperMask(transactionTypeMask) AnyResourceAttachmentTypeTag = newTypeTagFromUpperMask(anyResourceAttachmentMask) AnyStructAttachmentTypeTag = newTypeTagFromUpperMask(anyStructAttachmentMask) StorageCapabilityControllerTypeTag = newTypeTagFromUpperMask(storageCapabilityControllerTypeMask) AccountCapabilityControllerTypeTag = newTypeTagFromUpperMask(accountCapabilityControllerTypeMask) HashableStructTypeTag = newTypeTagFromUpperMask(hashableStructMask). Or(AddressTypeTag). Or(NeverTypeTag). Or(BoolTypeTag). Or(CharacterTypeTag). Or(StringTypeTag). Or(MetaTypeTag). Or(NumberTypeTag). Or(PathTypeTag) // AnyStructTypeTag only includes the types that are pre-known // to belong to AnyStruct type. This is more of an optimization. // Other types (derived types such as collections, etc.) are not possible // to be included in the mask without knowing their member types. // Hence, they are checked on demand in `getSuperTypeOfDerivedTypes()`. AnyStructTypeTag = newTypeTagFromLowerMask(anyStructTypeMask). Or(AnyStructAttachmentTypeTag). Or(NeverTypeTag). Or(NumberTypeTag). Or(StringTypeTag). Or(ReferenceTypeTag). Or(NilTypeTag). Or(BoolTypeTag). Or(CharacterTypeTag). Or(VoidTypeTag). Or(MetaTypeTag). Or(PathTypeTag). Or(AddressTypeTag). Or(BlockTypeTag). Or(DeployedContractTypeTag). Or(CapabilityTypeTag). Or(FunctionTypeTag). Or(StorageCapabilityControllerTypeTag). Or(AccountCapabilityControllerTypeTag). Or(HashableStructTypeTag). Or(InclusiveRangeTypeTag) AnyResourceTypeTag = newTypeTagFromLowerMask(anyResourceTypeMask). Or(AnyResourceAttachmentTypeTag) AnyTypeTag = newTypeTagFromLowerMask(anyTypeMask). Or(AnyStructTypeTag). Or(AnyResourceTypeTag). Or(ConstantSizedTypeTag). Or(VariableSizedTypeTag). Or(DictionaryTypeTag). Or(GenericTypeTag). Or(InterfaceTypeTag). Or(TransactionTypeTag). Or(IntersectionTypeTag) )
var AccessCheckModes = []AccessCheckMode{ AccessCheckModeStrict, AccessCheckModeNotSpecifiedRestricted, AccessCheckModeNotSpecifiedUnrestricted, AccessCheckModeNone, }
var AccountCapabilitiesType = &EntitlementType{
Identifier: "AccountCapabilities",
}
var AccountCapabilityControllerType = &SimpleType{ Name: AccountCapabilityControllerTypeName, QualifiedName: AccountCapabilityControllerTypeName, TypeID: AccountCapabilityControllerTypeName, TypeTag: AccountCapabilityControllerTypeTag, IsResource: false, Storable: false, Primitive: false, Equatable: false, Comparable: false, Exportable: false, Importable: false, ContainFields: true, }
var AccountCapabilityControllerTypeAnnotation = NewTypeAnnotation(AccountCapabilityControllerType)
var AccountCapabilityControllerTypeBorrowTypeFieldType = MetaType
var AccountCapabilityControllerTypeCapabilityFieldType = &CapabilityType{}
var AccountCapabilityControllerTypeCapabilityIDFieldType = UInt64Type
var AccountCapabilityControllerTypeDeleteFunctionType = &FunctionType{ ReturnTypeAnnotation: NewTypeAnnotation( VoidType, ), }
var AccountCapabilityControllerTypeSetTagFunctionType = &FunctionType{ Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "tag", TypeAnnotation: NewTypeAnnotation(StringType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( VoidType, ), }
var AccountCapabilityControllerTypeTagFieldType = StringType
var AccountKeyType = func() *CompositeType { accountKeyType := &CompositeType{ Identifier: AccountKeyTypeName, Kind: common.CompositeKindStructure, ImportableBuiltin: false, } const accountKeyKeyIndexFieldDocString = `The index of the account key` const accountKeyPublicKeyFieldDocString = `The public key of the account` const accountKeyHashAlgorithmFieldDocString = `The hash algorithm used by the public key` const accountKeyWeightFieldDocString = `The weight assigned to the public key` const accountKeyIsRevokedFieldDocString = `Flag indicating whether the key is revoked` var members = []*Member{ NewUnmeteredPublicConstantFieldMember( accountKeyType, AccountKeyKeyIndexFieldName, IntType, accountKeyKeyIndexFieldDocString, ), NewUnmeteredPublicConstantFieldMember( accountKeyType, AccountKeyPublicKeyFieldName, PublicKeyType, accountKeyPublicKeyFieldDocString, ), NewUnmeteredPublicConstantFieldMember( accountKeyType, AccountKeyHashAlgoFieldName, HashAlgorithmType, accountKeyHashAlgorithmFieldDocString, ), NewUnmeteredPublicConstantFieldMember( accountKeyType, AccountKeyWeightFieldName, UFix64Type, accountKeyWeightFieldDocString, ), NewUnmeteredPublicConstantFieldMember( accountKeyType, AccountKeyIsRevokedFieldName, BoolType, accountKeyIsRevokedFieldDocString, ), } accountKeyType.Members = MembersAsMap(members) accountKeyType.Fields = MembersFieldNames(members) return accountKeyType }()
AccountKeyType represents the key associated with an account.
var AccountKeyTypeAnnotation = NewTypeAnnotation(AccountKeyType)
var AccountMappingType = &EntitlementMapType{ Identifier: "AccountMapping", IncludesIdentity: true, Relations: []EntitlementRelation{ EntitlementRelation{ Input: StorageType, Output: SaveValueType, }, EntitlementRelation{ Input: StorageType, Output: LoadValueType, }, EntitlementRelation{ Input: StorageType, Output: CopyValueType, }, EntitlementRelation{ Input: StorageType, Output: BorrowValueType, }, EntitlementRelation{ Input: ContractsType, Output: AddContractType, }, EntitlementRelation{ Input: ContractsType, Output: UpdateContractType, }, EntitlementRelation{ Input: ContractsType, Output: RemoveContractType, }, EntitlementRelation{ Input: KeysType, Output: AddKeyType, }, EntitlementRelation{ Input: KeysType, Output: RevokeKeyType, }, EntitlementRelation{ Input: InboxType, Output: PublishInboxCapabilityType, }, EntitlementRelation{ Input: InboxType, Output: UnpublishInboxCapabilityType, }, EntitlementRelation{ Input: InboxType, Output: ClaimInboxCapabilityType, }, EntitlementRelation{ Input: CapabilitiesType, Output: StorageCapabilitiesType, }, EntitlementRelation{ Input: CapabilitiesType, Output: AccountCapabilitiesType, }, }, }
var AccountReferenceType = &ReferenceType{ Authorization: UnauthorizedAccess, Type: AccountType, }
var AccountReferenceTypeAnnotation = NewTypeAnnotation(AccountReferenceType)
var AccountType = func() *CompositeType { var t = &CompositeType{ Identifier: AccountTypeName, Kind: common.CompositeKindStructure, ImportableBuiltin: false, HasComputedMembers: true, } t.SetNestedType(Account_StorageTypeName, Account_StorageType) t.SetNestedType(Account_ContractsTypeName, Account_ContractsType) t.SetNestedType(Account_KeysTypeName, Account_KeysType) t.SetNestedType(Account_InboxTypeName, Account_InboxType) t.SetNestedType(Account_CapabilitiesTypeName, Account_CapabilitiesType) t.SetNestedType(Account_StorageCapabilitiesTypeName, Account_StorageCapabilitiesType) t.SetNestedType(Account_AccountCapabilitiesTypeName, Account_AccountCapabilitiesType) return t }()
var AccountTypeAddressFieldType = TheAddressType
var AccountTypeAnnotation = NewTypeAnnotation(AccountType)
var AccountTypeAvailableBalanceFieldType = UFix64Type
var AccountTypeBalanceFieldType = UFix64Type
var AccountTypeCapabilitiesFieldType = Account_CapabilitiesType
var AccountTypeContractsFieldType = Account_ContractsType
var AccountTypeInboxFieldType = Account_InboxType
var AccountTypeKeysFieldType = Account_KeysType
var AccountTypeStorageFieldType = Account_StorageType
var Account_AccountCapabilitiesType = func() *CompositeType { var t = &CompositeType{ Identifier: Account_AccountCapabilitiesTypeName, Kind: common.CompositeKindStructure, ImportableBuiltin: false, HasComputedMembers: true, } return t }()
var Account_AccountCapabilitiesTypeForEachControllerFunctionType = &FunctionType{ Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "function", TypeAnnotation: NewTypeAnnotation(&FunctionType{ Parameters: []Parameter{ { TypeAnnotation: NewTypeAnnotation(&ReferenceType{ Type: AccountCapabilityControllerType, Authorization: UnauthorizedAccess, }), }, }, ReturnTypeAnnotation: NewTypeAnnotation( BoolType, ), }), }, }, ReturnTypeAnnotation: NewTypeAnnotation( VoidType, ), }
var Account_AccountCapabilitiesTypeGetControllerFunctionType = &FunctionType{ Purity: FunctionPurityView, Parameters: []Parameter{ { Identifier: "byCapabilityID", TypeAnnotation: NewTypeAnnotation(UInt64Type), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &OptionalType{ Type: &ReferenceType{ Type: AccountCapabilityControllerType, Authorization: UnauthorizedAccess, }, }, ), }
var Account_AccountCapabilitiesTypeGetControllersFunctionType = &FunctionType{ Purity: FunctionPurityView, ReturnTypeAnnotation: NewTypeAnnotation( &VariableSizedType{ Type: &ReferenceType{ Type: AccountCapabilityControllerType, Authorization: UnauthorizedAccess, }, }, ), }
var Account_AccountCapabilitiesTypeIssueFunctionType = &FunctionType{ TypeParameters: []*TypeParameter{ Account_AccountCapabilitiesTypeIssueFunctionTypeParameterT, }, ReturnTypeAnnotation: NewTypeAnnotation( MustInstantiate( &CapabilityType{}, &GenericType{ TypeParameter: Account_AccountCapabilitiesTypeIssueFunctionTypeParameterT, }, ), ), }
var Account_AccountCapabilitiesTypeIssueFunctionTypeParameterT = &TypeParameter{ Name: "T", TypeBound: &ReferenceType{ Type: AccountType, Authorization: UnauthorizedAccess, }, }
var Account_AccountCapabilitiesTypeIssueWithTypeFunctionType = &FunctionType{ Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "type", TypeAnnotation: NewTypeAnnotation(MetaType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &CapabilityType{}, ), }
var Account_CapabilitiesType = func() *CompositeType { var t = &CompositeType{ Identifier: Account_CapabilitiesTypeName, Kind: common.CompositeKindStructure, ImportableBuiltin: false, HasComputedMembers: true, } return t }()
var Account_CapabilitiesTypeAccountFieldType = Account_AccountCapabilitiesType
var Account_CapabilitiesTypeBorrowFunctionType = &FunctionType{ Purity: FunctionPurityView, TypeParameters: []*TypeParameter{ Account_CapabilitiesTypeBorrowFunctionTypeParameterT, }, Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "path", TypeAnnotation: NewTypeAnnotation(PublicPathType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &OptionalType{ Type: &GenericType{ TypeParameter: Account_CapabilitiesTypeBorrowFunctionTypeParameterT, }, }, ), }
var Account_CapabilitiesTypeBorrowFunctionTypeParameterT = &TypeParameter{ Name: "T", TypeBound: &ReferenceType{ Type: AnyType, Authorization: UnauthorizedAccess, }, }
var Account_CapabilitiesTypeExistsFunctionType = &FunctionType{ Purity: FunctionPurityView, Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "path", TypeAnnotation: NewTypeAnnotation(PublicPathType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( BoolType, ), }
var Account_CapabilitiesTypeGetFunctionType = &FunctionType{ Purity: FunctionPurityView, TypeParameters: []*TypeParameter{ Account_CapabilitiesTypeGetFunctionTypeParameterT, }, Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "path", TypeAnnotation: NewTypeAnnotation(PublicPathType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( MustInstantiate( &CapabilityType{}, &GenericType{ TypeParameter: Account_CapabilitiesTypeGetFunctionTypeParameterT, }, ), ), }
var Account_CapabilitiesTypeGetFunctionTypeParameterT = &TypeParameter{ Name: "T", TypeBound: &ReferenceType{ Type: AnyType, Authorization: UnauthorizedAccess, }, }
var Account_CapabilitiesTypePublishFunctionType = &FunctionType{ Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "capability", TypeAnnotation: NewTypeAnnotation(&CapabilityType{}), }, { Identifier: "at", TypeAnnotation: NewTypeAnnotation(PublicPathType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( VoidType, ), }
var Account_CapabilitiesTypeStorageFieldType = Account_StorageCapabilitiesType
var Account_CapabilitiesTypeUnpublishFunctionType = &FunctionType{ Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "path", TypeAnnotation: NewTypeAnnotation(PublicPathType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &OptionalType{ Type: &CapabilityType{}, }, ), }
var Account_ContractsType = func() *CompositeType { var t = &CompositeType{ Identifier: Account_ContractsTypeName, Kind: common.CompositeKindStructure, ImportableBuiltin: false, HasComputedMembers: true, } return t }()
var Account_ContractsTypeAddFunctionType = &FunctionType{ Parameters: []Parameter{ { Identifier: "name", TypeAnnotation: NewTypeAnnotation(StringType), }, { Identifier: "code", TypeAnnotation: NewTypeAnnotation(&VariableSizedType{ Type: UInt8Type, }), }, }, ReturnTypeAnnotation: NewTypeAnnotation( DeployedContractType, ), }
var Account_ContractsTypeBorrowFunctionType = &FunctionType{ Purity: FunctionPurityView, TypeParameters: []*TypeParameter{ Account_ContractsTypeBorrowFunctionTypeParameterT, }, Parameters: []Parameter{ { Identifier: "name", TypeAnnotation: NewTypeAnnotation(StringType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &OptionalType{ Type: &GenericType{ TypeParameter: Account_ContractsTypeBorrowFunctionTypeParameterT, }, }, ), }
var Account_ContractsTypeBorrowFunctionTypeParameterT = &TypeParameter{ Name: "T", TypeBound: &ReferenceType{ Type: AnyType, Authorization: UnauthorizedAccess, }, }
var Account_ContractsTypeGetFunctionType = &FunctionType{ Purity: FunctionPurityView, Parameters: []Parameter{ { Identifier: "name", TypeAnnotation: NewTypeAnnotation(StringType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &OptionalType{ Type: DeployedContractType, }, ), }
var Account_ContractsTypeNamesFieldType = &VariableSizedType{ Type: StringType, }
var Account_ContractsTypeRemoveFunctionType = &FunctionType{ Parameters: []Parameter{ { Identifier: "name", TypeAnnotation: NewTypeAnnotation(StringType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &OptionalType{ Type: DeployedContractType, }, ), }
var Account_ContractsTypeTryUpdateFunctionType = &FunctionType{ Parameters: []Parameter{ { Identifier: "name", TypeAnnotation: NewTypeAnnotation(StringType), }, { Identifier: "code", TypeAnnotation: NewTypeAnnotation(&VariableSizedType{ Type: UInt8Type, }), }, }, ReturnTypeAnnotation: NewTypeAnnotation( DeploymentResultType, ), }
var Account_ContractsTypeUpdateFunctionType = &FunctionType{ Parameters: []Parameter{ { Identifier: "name", TypeAnnotation: NewTypeAnnotation(StringType), }, { Identifier: "code", TypeAnnotation: NewTypeAnnotation(&VariableSizedType{ Type: UInt8Type, }), }, }, ReturnTypeAnnotation: NewTypeAnnotation( DeployedContractType, ), }
var Account_InboxType = func() *CompositeType { var t = &CompositeType{ Identifier: Account_InboxTypeName, Kind: common.CompositeKindStructure, ImportableBuiltin: false, HasComputedMembers: true, } return t }()
var Account_InboxTypeClaimFunctionType = &FunctionType{ TypeParameters: []*TypeParameter{ Account_InboxTypeClaimFunctionTypeParameterT, }, Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "name", TypeAnnotation: NewTypeAnnotation(StringType), }, { Identifier: "provider", TypeAnnotation: NewTypeAnnotation(TheAddressType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &OptionalType{ Type: MustInstantiate( &CapabilityType{}, &GenericType{ TypeParameter: Account_InboxTypeClaimFunctionTypeParameterT, }, ), }, ), }
var Account_InboxTypeClaimFunctionTypeParameterT = &TypeParameter{ Name: "T", TypeBound: &ReferenceType{ Type: AnyType, Authorization: UnauthorizedAccess, }, }
var Account_InboxTypePublishFunctionType = &FunctionType{ Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "value", TypeAnnotation: NewTypeAnnotation(&CapabilityType{}), }, { Identifier: "name", TypeAnnotation: NewTypeAnnotation(StringType), }, { Identifier: "recipient", TypeAnnotation: NewTypeAnnotation(TheAddressType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( VoidType, ), }
var Account_InboxTypeUnpublishFunctionType = &FunctionType{ TypeParameters: []*TypeParameter{ Account_InboxTypeUnpublishFunctionTypeParameterT, }, Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "name", TypeAnnotation: NewTypeAnnotation(StringType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &OptionalType{ Type: MustInstantiate( &CapabilityType{}, &GenericType{ TypeParameter: Account_InboxTypeUnpublishFunctionTypeParameterT, }, ), }, ), }
var Account_InboxTypeUnpublishFunctionTypeParameterT = &TypeParameter{ Name: "T", TypeBound: &ReferenceType{ Type: AnyType, Authorization: UnauthorizedAccess, }, }
var Account_KeysType = func() *CompositeType { var t = &CompositeType{ Identifier: Account_KeysTypeName, Kind: common.CompositeKindStructure, ImportableBuiltin: false, HasComputedMembers: true, } return t }()
var Account_KeysTypeAddFunctionType = &FunctionType{ Parameters: []Parameter{ { Identifier: "publicKey", TypeAnnotation: NewTypeAnnotation(PublicKeyType), }, { Identifier: "hashAlgorithm", TypeAnnotation: NewTypeAnnotation(HashAlgorithmType), }, { Identifier: "weight", TypeAnnotation: NewTypeAnnotation(UFix64Type), }, }, ReturnTypeAnnotation: NewTypeAnnotation( AccountKeyType, ), }
var Account_KeysTypeCountFieldType = UInt64Type
var Account_KeysTypeForEachFunctionType = &FunctionType{ Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "function", TypeAnnotation: NewTypeAnnotation(&FunctionType{ Parameters: []Parameter{ { TypeAnnotation: NewTypeAnnotation(AccountKeyType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( BoolType, ), }), }, }, ReturnTypeAnnotation: NewTypeAnnotation( VoidType, ), }
var Account_KeysTypeGetFunctionType = &FunctionType{ Purity: FunctionPurityView, Parameters: []Parameter{ { Identifier: "keyIndex", TypeAnnotation: NewTypeAnnotation(IntType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &OptionalType{ Type: AccountKeyType, }, ), }
var Account_KeysTypeRevokeFunctionType = &FunctionType{ Parameters: []Parameter{ { Identifier: "keyIndex", TypeAnnotation: NewTypeAnnotation(IntType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &OptionalType{ Type: AccountKeyType, }, ), }
var Account_StorageCapabilitiesType = func() *CompositeType { var t = &CompositeType{ Identifier: Account_StorageCapabilitiesTypeName, Kind: common.CompositeKindStructure, ImportableBuiltin: false, HasComputedMembers: true, } return t }()
var Account_StorageCapabilitiesTypeForEachControllerFunctionType = &FunctionType{ Parameters: []Parameter{ { Identifier: "forPath", TypeAnnotation: NewTypeAnnotation(StoragePathType), }, { Label: ArgumentLabelNotRequired, Identifier: "function", TypeAnnotation: NewTypeAnnotation(&FunctionType{ Parameters: []Parameter{ { TypeAnnotation: NewTypeAnnotation(&ReferenceType{ Type: StorageCapabilityControllerType, Authorization: UnauthorizedAccess, }), }, }, ReturnTypeAnnotation: NewTypeAnnotation( BoolType, ), }), }, }, ReturnTypeAnnotation: NewTypeAnnotation( VoidType, ), }
var Account_StorageCapabilitiesTypeGetControllerFunctionType = &FunctionType{ Purity: FunctionPurityView, Parameters: []Parameter{ { Identifier: "byCapabilityID", TypeAnnotation: NewTypeAnnotation(UInt64Type), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &OptionalType{ Type: &ReferenceType{ Type: StorageCapabilityControllerType, Authorization: UnauthorizedAccess, }, }, ), }
var Account_StorageCapabilitiesTypeGetControllersFunctionType = &FunctionType{ Purity: FunctionPurityView, Parameters: []Parameter{ { Identifier: "forPath", TypeAnnotation: NewTypeAnnotation(StoragePathType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &VariableSizedType{ Type: &ReferenceType{ Type: StorageCapabilityControllerType, Authorization: UnauthorizedAccess, }, }, ), }
var Account_StorageCapabilitiesTypeIssueFunctionType = &FunctionType{ TypeParameters: []*TypeParameter{ Account_StorageCapabilitiesTypeIssueFunctionTypeParameterT, }, Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "path", TypeAnnotation: NewTypeAnnotation(StoragePathType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( MustInstantiate( &CapabilityType{}, &GenericType{ TypeParameter: Account_StorageCapabilitiesTypeIssueFunctionTypeParameterT, }, ), ), }
var Account_StorageCapabilitiesTypeIssueFunctionTypeParameterT = &TypeParameter{ Name: "T", TypeBound: &ReferenceType{ Type: AnyType, Authorization: UnauthorizedAccess, }, }
var Account_StorageCapabilitiesTypeIssueWithTypeFunctionType = &FunctionType{ Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "path", TypeAnnotation: NewTypeAnnotation(StoragePathType), }, { Identifier: "type", TypeAnnotation: NewTypeAnnotation(MetaType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &CapabilityType{}, ), }
var Account_StorageType = func() *CompositeType { var t = &CompositeType{ Identifier: Account_StorageTypeName, Kind: common.CompositeKindStructure, ImportableBuiltin: false, HasComputedMembers: true, } return t }()
var Account_StorageTypeBorrowFunctionType = &FunctionType{ Purity: FunctionPurityView, TypeParameters: []*TypeParameter{ Account_StorageTypeBorrowFunctionTypeParameterT, }, Parameters: []Parameter{ { Identifier: "from", TypeAnnotation: NewTypeAnnotation(StoragePathType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &OptionalType{ Type: &GenericType{ TypeParameter: Account_StorageTypeBorrowFunctionTypeParameterT, }, }, ), }
var Account_StorageTypeBorrowFunctionTypeParameterT = &TypeParameter{ Name: "T", TypeBound: &ReferenceType{ Type: AnyType, Authorization: UnauthorizedAccess, }, }
var Account_StorageTypeCapacityFieldType = UInt64Type
var Account_StorageTypeCheckFunctionType = &FunctionType{ Purity: FunctionPurityView, TypeParameters: []*TypeParameter{ Account_StorageTypeCheckFunctionTypeParameterT, }, Parameters: []Parameter{ { Identifier: "from", TypeAnnotation: NewTypeAnnotation(StoragePathType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( BoolType, ), }
var Account_StorageTypeCheckFunctionTypeParameterT = &TypeParameter{ Name: "T", TypeBound: AnyType, }
var Account_StorageTypeCopyFunctionType = &FunctionType{ Purity: FunctionPurityView, TypeParameters: []*TypeParameter{ Account_StorageTypeCopyFunctionTypeParameterT, }, Parameters: []Parameter{ { Identifier: "from", TypeAnnotation: NewTypeAnnotation(StoragePathType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &OptionalType{ Type: &GenericType{ TypeParameter: Account_StorageTypeCopyFunctionTypeParameterT, }, }, ), }
var Account_StorageTypeCopyFunctionTypeParameterT = &TypeParameter{ Name: "T", TypeBound: AnyStructType, }
var Account_StorageTypeForEachPublicFunctionType = &FunctionType{ Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "function", TypeAnnotation: NewTypeAnnotation(&FunctionType{ Parameters: []Parameter{ { TypeAnnotation: NewTypeAnnotation(PublicPathType), }, { TypeAnnotation: NewTypeAnnotation(MetaType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( BoolType, ), }), }, }, ReturnTypeAnnotation: NewTypeAnnotation( VoidType, ), }
var Account_StorageTypeForEachStoredFunctionType = &FunctionType{ Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "function", TypeAnnotation: NewTypeAnnotation(&FunctionType{ Parameters: []Parameter{ { TypeAnnotation: NewTypeAnnotation(StoragePathType), }, { TypeAnnotation: NewTypeAnnotation(MetaType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( BoolType, ), }), }, }, ReturnTypeAnnotation: NewTypeAnnotation( VoidType, ), }
var Account_StorageTypeLoadFunctionType = &FunctionType{ TypeParameters: []*TypeParameter{ Account_StorageTypeLoadFunctionTypeParameterT, }, Parameters: []Parameter{ { Identifier: "from", TypeAnnotation: NewTypeAnnotation(StoragePathType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &OptionalType{ Type: &GenericType{ TypeParameter: Account_StorageTypeLoadFunctionTypeParameterT, }, }, ), }
var Account_StorageTypeLoadFunctionTypeParameterT = &TypeParameter{ Name: "T", TypeBound: StorableType, }
var Account_StorageTypePublicPathsFieldType = &VariableSizedType{ Type: PublicPathType, }
var Account_StorageTypeSaveFunctionType = &FunctionType{ TypeParameters: []*TypeParameter{ Account_StorageTypeSaveFunctionTypeParameterT, }, Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "value", TypeAnnotation: NewTypeAnnotation(&GenericType{ TypeParameter: Account_StorageTypeSaveFunctionTypeParameterT, }), }, { Identifier: "to", TypeAnnotation: NewTypeAnnotation(StoragePathType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( VoidType, ), }
var Account_StorageTypeSaveFunctionTypeParameterT = &TypeParameter{ Name: "T", TypeBound: StorableType, }
var Account_StorageTypeStoragePathsFieldType = &VariableSizedType{ Type: StoragePathType, }
var Account_StorageTypeTypeFunctionType = &FunctionType{ Purity: FunctionPurityView, Parameters: []Parameter{ { Label: "at", Identifier: "path", TypeAnnotation: NewTypeAnnotation(StoragePathType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( &OptionalType{ Type: MetaType, }, ), }
var Account_StorageTypeUsedFieldType = UInt64Type
var AddContractType = &EntitlementType{
Identifier: "AddContract",
}
var AddKeyType = &EntitlementType{
Identifier: "AddKey",
}
var AddressConversionFunctionType = &FunctionType{ Purity: FunctionPurityView, TypeFunctionType: TheAddressType, Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "value", TypeAnnotation: IntegerTypeAnnotation, }, }, ReturnTypeAnnotation: AddressTypeAnnotation, ArgumentExpressionsCheck: func(checker *Checker, argumentExpressions []ast.Expression, _ ast.HasPosition) { if len(argumentExpressions) < 1 { return } intExpression, ok := argumentExpressions[0].(*ast.IntegerExpression) if !ok { return } CheckAddressLiteral(nil, intExpression, checker.report) }, }
var AddressTypeAnnotation = NewTypeAnnotation(TheAddressType)
var AddressTypeFromBytesFunctionType = &FunctionType{ Purity: FunctionPurityView, Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "bytes", TypeAnnotation: NewTypeAnnotation(ByteArrayType), }, }, ReturnTypeAnnotation: NewTypeAnnotation(TheAddressType), }
var AddressTypeFromStringFunctionType = FromStringFunctionType(TheAddressType)
var AddressTypeMinIntBig = new(big.Int)
var AddressTypeToBytesFunctionType = NewSimpleFunctionType( FunctionPurityView, nil, ByteArrayTypeAnnotation, )
var AllBuiltinTypes = common.Concat( AllNumberTypes, []Type{ MetaType, VoidType, AnyStructType, AnyStructAttachmentType, AnyResourceType, AnyResourceAttachmentType, NeverType, BoolType, CharacterType, StringType, TheAddressType, AccountType, PathType, StoragePathType, CapabilityPathType, PrivatePathType, PublicPathType, &CapabilityType{}, DeployedContractType, BlockType, AccountKeyType, PublicKeyType, SignatureAlgorithmType, HashAlgorithmType, StorageCapabilityControllerType, AccountCapabilityControllerType, DeploymentResultType, HashableStructType, &InclusiveRangeType{}, StructStringerType, }, )
var AllFixedPointTypes = common.Concat( AllUnsignedFixedPointTypes, AllSignedFixedPointTypes, []Type{ FixedPointType, SignedFixedPointType, }, )
var AllFixedSizeUnsignedIntegerTypes = []Type{ UInt8Type, UInt16Type, UInt32Type, UInt64Type, UInt128Type, UInt256Type, Word8Type, Word16Type, Word32Type, Word64Type, Word128Type, Word256Type, }
var AllIntegerTypes = common.Concat( AllUnsignedIntegerTypes, AllSignedIntegerTypes, AllNonLeafIntegerTypes, )
var AllNonLeafIntegerTypes = []Type{ IntegerType, SignedIntegerType, FixedSizeUnsignedIntegerType, }
var AllNumberTypes = common.Concat( AllIntegerTypes, AllFixedPointTypes, []Type{ NumberType, SignedNumberType, }, )
var AllSignedFixedPointTypes = []Type{ Fix64Type, Fix128Type, }
var AllSignedIntegerTypes = []Type{ IntType, Int8Type, Int16Type, Int32Type, Int64Type, Int128Type, Int256Type, }
var AllUnsignedFixedPointTypes = []Type{ UFix64Type, UFix128Type, }
var AllUnsignedIntegerTypes = common.Concat( AllFixedSizeUnsignedIntegerTypes, []Type{ UIntType, }, )
var AnyResourceAttachmentType = &SimpleType{ Name: AnyResourceAttachmentTypeName, QualifiedName: AnyResourceAttachmentTypeName, TypeID: AnyResourceAttachmentTypeName, TypeTag: AnyResourceAttachmentTypeTag, IsResource: true, Primitive: false, Storable: true, Equatable: false, Comparable: false, Exportable: true, Importable: false, }
AnyResourceAttachmentType represents the top type of all resource attachment types
var AnyResourceType = &SimpleType{ Name: "AnyResource", QualifiedName: "AnyResource", TypeID: "AnyResource", TypeTag: AnyResourceTypeTag, IsResource: true, Primitive: false, Storable: true, Equatable: false, Comparable: false, Exportable: true, Importable: false, ContainFields: true, }
AnyResourceType represents the top type of all resource types
var AnyStructAttachmentType = &SimpleType{ Name: AnyStructAttachmentTypeName, QualifiedName: AnyStructAttachmentTypeName, TypeID: AnyStructAttachmentTypeName, TypeTag: AnyStructAttachmentTypeTag, IsResource: false, Primitive: false, Storable: true, Equatable: false, Comparable: false, Exportable: true, Importable: false, }
AnyStructAttachmentType represents the top type of all struct attachment types
var AnyStructType = &SimpleType{ Name: "AnyStruct", QualifiedName: "AnyStruct", TypeID: "AnyStruct", TypeTag: AnyStructTypeTag, IsResource: false, Storable: true, Primitive: false, Equatable: false, Comparable: false, Exportable: true, Importable: true, ContainFields: true, }
AnyStructType represents the top type of all non-resource types
var AnyStructTypeAnnotation = NewTypeAnnotation(AnyStructType)
var AnyType = &SimpleType{ Name: "Any", QualifiedName: "Any", TypeID: "Any", TypeTag: AnyTypeTag, IsResource: false, Storable: true, Primitive: false, Equatable: false, Comparable: false, Exportable: false, Importable: false, }
AnyType represents the top type of all types. NOTE: This type is only used internally and is not available in programs.
var BaseTypeActivation = NewVariableActivation(nil)
BaseTypeActivation is the base activation that contains the types available in programs
var BaseValueActivation = NewVariableActivation(nil)
BaseValueActivation is the base activation that contains the values available in programs
var BlockType = &SimpleType{ Name: BlockTypeName, QualifiedName: BlockTypeName, TypeID: BlockTypeName, TypeTag: BlockTypeTag, IsResource: false, Storable: false, Primitive: false, Equatable: false, Comparable: false, Exportable: false, Importable: false, ContainFields: true, }
var BlockTypeAnnotation = NewTypeAnnotation(BlockType)
var BlockTypeHeightFieldType = UInt64Type
var BlockTypeIdFieldType = &ConstantSizedType{ Type: UInt8Type, Size: 32, }
var BlockTypeTimestampFieldType = UFix64Type
var BlockTypeViewFieldType = UInt64Type
var BoolType = &SimpleType{ Name: "Bool", QualifiedName: "Bool", TypeID: "Bool", TypeTag: BoolTypeTag, IsResource: false, Storable: true, Primitive: true, Equatable: true, Comparable: true, Exportable: true, Importable: true, conformances: []*InterfaceType{ StructStringerType, }, }
BoolType represents the boolean type
var BoolTypeAnnotation = NewTypeAnnotation(BoolType)
var BorrowValueType = &EntitlementType{
Identifier: "BorrowValue",
}
var BuiltinEntitlementMappings = map[string]*EntitlementMapType{ IdentityType.QualifiedIdentifier(): IdentityType, }
var BuiltinEntitlements = map[string]*EntitlementType{}
var ByteArrayArrayType = &VariableSizedType{ Type: ByteArrayType, }
ByteArrayArrayType represents the type [[UInt8]]
var ByteArrayArrayTypeAnnotation = NewTypeAnnotation(ByteArrayArrayType)
var ByteArrayType = &VariableSizedType{ Type: UInt8Type, }
ByteArrayType represents the type [UInt8]
var ByteArrayTypeAnnotation = NewTypeAnnotation(ByteArrayType)
var CapabilitiesMappingType = &EntitlementMapType{ Identifier: "CapabilitiesMapping", IncludesIdentity: true, Relations: []EntitlementRelation{ EntitlementRelation{ Input: StorageCapabilitiesType, Output: GetStorageCapabilityControllerType, }, EntitlementRelation{ Input: StorageCapabilitiesType, Output: IssueStorageCapabilityControllerType, }, EntitlementRelation{ Input: AccountCapabilitiesType, Output: GetAccountCapabilityControllerType, }, EntitlementRelation{ Input: AccountCapabilitiesType, Output: IssueAccountCapabilityControllerType, }, }, }
var CapabilitiesType = &EntitlementType{
Identifier: "Capabilities",
}
var CapabilityPathType = &SimpleType{ Name: "CapabilityPath", QualifiedName: "CapabilityPath", TypeID: "CapabilityPath", TypeTag: CapabilityPathTypeTag, IsResource: false, Storable: true, Primitive: true, Equatable: true, Comparable: false, Exportable: true, Importable: true, conformances: []*InterfaceType{ StructStringerType, }, }
CapabilityPathType
var CapabilityPathTypeAnnotation = NewTypeAnnotation(CapabilityPathType)
var CapabilityTypeAddressFieldType = TheAddressType
var CapabilityTypeFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "type", TypeAnnotation: MetaTypeAnnotation, }, }, OptionalMetaTypeAnnotation, )
var CapabilityTypeIDFieldType = UInt64Type
var CharacterType = &SimpleType{ Name: CharacterTypeName, QualifiedName: CharacterTypeName, TypeID: CharacterTypeName, TypeTag: CharacterTypeTag, IsResource: false, Storable: true, Primitive: true, Equatable: true, Comparable: true, Exportable: true, Importable: true, ContainFields: false, conformances: []*InterfaceType{StructStringerType}, }
var CharacterTypeToStringFunctionType = &FunctionType{ Purity: FunctionPurityView, ReturnTypeAnnotation: NewTypeAnnotation( StringType, ), }
var CharacterTypeUtf8FieldType = &VariableSizedType{ Type: UInt8Type, }
var ClaimInboxCapabilityType = &EntitlementType{
Identifier: "ClaimInboxCapability",
}
var CompositeTypeFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "identifier", TypeAnnotation: StringTypeAnnotation, }, }, OptionalMetaTypeAnnotation, )
var ConstantSizedArrayTypeFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Identifier: "type", TypeAnnotation: MetaTypeAnnotation, }, { Identifier: "size", TypeAnnotation: IntTypeAnnotation, }, }, MetaTypeAnnotation, )
var ContractAccountFieldType = &ReferenceType{ Type: AccountType, Authorization: FullyEntitledAccountAccess, }
var ContractsType = &EntitlementType{
Identifier: "Contracts",
}
var CopyValueType = &EntitlementType{
Identifier: "CopyValue",
}
var DeployedContractType = &SimpleType{ Name: DeployedContractTypeName, QualifiedName: DeployedContractTypeName, TypeID: DeployedContractTypeName, TypeTag: DeployedContractTypeTag, IsResource: false, Storable: false, Primitive: false, Equatable: false, Comparable: false, Exportable: false, Importable: false, ContainFields: true, }
var DeployedContractTypeAddressFieldType = TheAddressType
var DeployedContractTypeCodeFieldType = &VariableSizedType{ Type: UInt8Type, }
var DeployedContractTypeNameFieldType = StringType
var DeployedContractTypePublicTypesFunctionType = &FunctionType{ Purity: FunctionPurityView, ReturnTypeAnnotation: NewTypeAnnotation( &VariableSizedType{ Type: MetaType, }, ), }
var DeploymentResultType = func() *CompositeType { var t = &CompositeType{ Identifier: DeploymentResultTypeName, Kind: common.CompositeKindStructure, ImportableBuiltin: false, HasComputedMembers: true, } return t }()
var DeploymentResultTypeDeployedContractFieldType = &OptionalType{ Type: DeployedContractType, }
var DictionaryTypeFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Identifier: "key", TypeAnnotation: MetaTypeAnnotation, }, { Identifier: "value", TypeAnnotation: MetaTypeAnnotation, }, }, OptionalMetaTypeAnnotation, )
var Fix128Type = NewFixedPointNumericType(Fix128TypeName). WithTag(Fix128TypeTag). WithIntRange(Fix128TypeMinIntBig, Fix128TypeMaxIntBig). WithFractionalRange(Fix128TypeMinFractionalBig, Fix128TypeMaxFractionalBig). WithScale(Fix128Scale). WithSaturatingFunctions(SaturatingArithmeticSupport{ Add: true, Subtract: true, Multiply: true, Divide: true, })
Fix128Type represents the 128-bit signed decimal fixed-point type `Fix128` which has a scale of Fix128Scale, and checks for overflow and underflow.
var Fix128TypeAnnotation = NewTypeAnnotation(Fix128Type)
var Fix64Type = NewFixedPointNumericType(Fix64TypeName). WithTag(Fix64TypeTag). WithIntRange(Fix64TypeMinIntBig, Fix64TypeMaxIntBig). WithFractionalRange(Fix64TypeMinFractionalBig, Fix64TypeMaxFractionalBig). WithScale(Fix64Scale). WithSaturatingFunctions(SaturatingArithmeticSupport{ Add: true, Subtract: true, Multiply: true, Divide: true, })
Fix64Type represents the 64-bit signed decimal fixed-point type `Fix64` which has a scale of Fix64Scale, and checks for overflow and underflow
var Fix64TypeAnnotation = NewTypeAnnotation(Fix64Type)
var FixedPointType = NewNumericType(FixedPointTypeName). WithTag(FixedPointTypeTag). AsSuperType()
FixedPointType represents the super-type of all fixed-point types
var FixedPointTypeAnnotation = NewTypeAnnotation(FixedPointType)
var FixedSizeUnsignedIntegerType = NewNumericType(FixedSizeUnsignedIntegerTypeName). WithTag(FixedSizeUnsignedIntegerTypeTag). AsSuperType()
FixedSizeUnsignedIntegerType represents the super-type of all unsigned integer types which have a fixed size.
var FullyEntitledAccountAccess = NewEntitlementSetAccess( []*EntitlementType{ StorageType, ContractsType, KeysType, InboxType, CapabilitiesType, }, Conjunction, )
FullyEntitledAccountAccess represents
auth(Storage, Contracts, Keys, Inbox, Capabilities)
var FullyEntitledAccountReferenceType = &ReferenceType{ Authorization: FullyEntitledAccountAccess, Type: AccountType, }
FullyEntitledAccountReferenceType represents the type
auth(Storage, Contracts, Keys, Inbox, Capabilities) &Account
var FullyEntitledAccountReferenceTypeAnnotation = NewTypeAnnotation(FullyEntitledAccountReferenceType)
var FunctionTypeFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Identifier: "parameters", TypeAnnotation: NewTypeAnnotation( &VariableSizedType{ Type: MetaType, }, ), }, { Identifier: "return", TypeAnnotation: MetaTypeAnnotation, }, }, MetaTypeAnnotation, )
var GetAccountCapabilityControllerType = &EntitlementType{
Identifier: "GetAccountCapabilityController",
}
var GetStorageCapabilityControllerType = &EntitlementType{
Identifier: "GetStorageCapabilityController",
}
var GetTypeFunctionType = NewSimpleFunctionType( FunctionPurityView, nil, MetaTypeAnnotation, )
var HashAlgorithmType = newNativeEnumType( HashAlgorithmTypeName, UInt8Type, func(enumType *CompositeType) []*Member { return []*Member{ NewUnmeteredPublicFunctionMember( enumType, HashAlgorithmTypeHashFunctionName, HashAlgorithmTypeHashFunctionType, HashAlgorithmTypeHashFunctionDocString, ), NewUnmeteredPublicFunctionMember( enumType, HashAlgorithmTypeHashWithTagFunctionName, HashAlgorithmTypeHashWithTagFunctionType, HashAlgorithmTypeHashWithTagFunctionDocString, ), } }, )
var HashAlgorithmTypeAnnotation = NewTypeAnnotation(HashAlgorithmType)
var HashAlgorithmTypeHashFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "data", TypeAnnotation: ByteArrayTypeAnnotation, }, }, ByteArrayTypeAnnotation, )
var HashAlgorithmTypeHashWithTagFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "data", TypeAnnotation: ByteArrayTypeAnnotation, }, { Identifier: "tag", TypeAnnotation: StringTypeAnnotation, }, }, ByteArrayTypeAnnotation, )
var HashAlgorithms = []HashAlgorithm{ HashAlgorithmSHA2_256, HashAlgorithmSHA2_384, HashAlgorithmSHA3_256, HashAlgorithmSHA3_384, HashAlgorithmKMAC128_BLS_BLS12_381, HashAlgorithmKECCAK_256, }
var HashableStructType = &SimpleType{ Name: HashableStructTypeName, QualifiedName: HashableStructTypeName, TypeID: HashableStructTypeName, TypeTag: HashableStructTypeTag, IsResource: false, Storable: true, Primitive: false, Equatable: false, Comparable: false, Exportable: true, Importable: true, ContainFields: false, }
var IdentityType = func() *EntitlementMapType { m := NewEntitlementMapType(nil, nil, IdentityMappingIdentifier) m.IncludesIdentity = true m.resolveInclusions.Do(func() {}) return m }()
IdentityType represents the `Identity` entitlement mapping type. It is an empty map that includes the Identity map, and is considered already "resolved" with regards to its (vacuously empty) inclusions. defining it this way eliminates the need to do any special casing for its behavior
var InboxType = &EntitlementType{
Identifier: "Inbox",
}
var InclusiveRangeTypeFieldNames = []string{ InclusiveRangeTypeStartFieldName, InclusiveRangeTypeEndFieldName, InclusiveRangeTypeStepFieldName, }
var InclusiveRangeTypeFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "type", TypeAnnotation: MetaTypeAnnotation, }, }, OptionalMetaTypeAnnotation, )
var InsertType = &EntitlementType{
Identifier: "Insert",
}
var Int128Type = NewNumericType(Int128TypeName). WithTag(Int128TypeTag). WithIntRange(Int128TypeMinIntBig, Int128TypeMaxIntBig). WithByteSize(16). WithSaturatingFunctions(SaturatingArithmeticSupport{ Add: true, Subtract: true, Multiply: true, Divide: true, })
Int128Type represents the 128-bit signed integer type `Int128`
var Int128TypeAnnotation = NewTypeAnnotation(Int128Type)
var Int16Type = NewNumericType(Int16TypeName). WithTag(Int16TypeTag). WithIntRange(Int16TypeMinInt, Int16TypeMaxInt). WithByteSize(2). WithSaturatingFunctions(SaturatingArithmeticSupport{ Add: true, Subtract: true, Multiply: true, Divide: true, })
Int16Type represents the 16-bit signed integer type `Int16`
var Int16TypeAnnotation = NewTypeAnnotation(Int16Type)
var Int256Type = NewNumericType(Int256TypeName). WithTag(Int256TypeTag). WithIntRange(Int256TypeMinIntBig, Int256TypeMaxIntBig). WithByteSize(32). WithSaturatingFunctions(SaturatingArithmeticSupport{ Add: true, Subtract: true, Multiply: true, Divide: true, })
Int256Type represents the 256-bit signed integer type `Int256`
var Int256TypeAnnotation = NewTypeAnnotation(Int256Type)
var Int32Type = NewNumericType(Int32TypeName). WithTag(Int32TypeTag). WithIntRange(Int32TypeMinInt, Int32TypeMaxInt). WithByteSize(4). WithSaturatingFunctions(SaturatingArithmeticSupport{ Add: true, Subtract: true, Multiply: true, Divide: true, })
Int32Type represents the 32-bit signed integer type `Int32`
var Int32TypeAnnotation = NewTypeAnnotation(Int32Type)
var Int64Type = NewNumericType(Int64TypeName). WithTag(Int64TypeTag). WithIntRange(Int64TypeMinInt, Int64TypeMaxInt). WithByteSize(8). WithSaturatingFunctions(SaturatingArithmeticSupport{ Add: true, Subtract: true, Multiply: true, Divide: true, })
Int64Type represents the 64-bit signed integer type `Int64`
var Int64TypeAnnotation = NewTypeAnnotation(Int64Type)
var Int8Type = NewNumericType(Int8TypeName). WithTag(Int8TypeTag). WithIntRange(Int8TypeMinInt, Int8TypeMaxInt). WithByteSize(1). WithSaturatingFunctions(SaturatingArithmeticSupport{ Add: true, Subtract: true, Multiply: true, Divide: true, })
Int8Type represents the 8-bit signed integer type `Int8`
var Int8TypeAnnotation = NewTypeAnnotation(Int8Type)
var IntType = NewNumericType(IntTypeName). WithTag(IntTypeTag)
IntType represents the arbitrary-precision integer type `Int`
var IntTypeAnnotation = NewTypeAnnotation(IntType)
var IntegerType = NewNumericType(IntegerTypeName). WithTag(IntegerTypeTag). AsSuperType()
IntegerType represents the super-type of all integer types
var IntegerTypeAnnotation = NewTypeAnnotation(IntegerType)
var IntersectionTypeFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Identifier: "types", TypeAnnotation: NewTypeAnnotation( &VariableSizedType{ Type: StringType, }, ), }, }, OptionalMetaTypeAnnotation, )
var InvalidType = &SimpleType{ Name: "<<invalid>>", QualifiedName: "<<invalid>>", TypeID: "<<invalid>>", TypeTag: InvalidTypeTag, IsResource: false, Storable: false, Primitive: false, Equatable: false, Comparable: false, Exportable: false, Importable: false, }
InvalidType represents a type that is invalid. It is the result of type checking failing and can't be expressed in programs.
var IsInstanceFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "type", TypeAnnotation: MetaTypeAnnotation, }, }, BoolTypeAnnotation, )
var IssueAccountCapabilityControllerType = &EntitlementType{
Identifier: "IssueAccountCapabilityController",
}
var IssueStorageCapabilityControllerType = &EntitlementType{
Identifier: "IssueStorageCapabilityController",
}
var KeysType = &EntitlementType{
Identifier: "Keys",
}
var LoadValueType = &EntitlementType{
Identifier: "LoadValue",
}
var MetaType = &SimpleType{ Name: MetaTypeName, QualifiedName: MetaTypeName, TypeID: MetaTypeName, TypeTag: MetaTypeTag, IsResource: false, Storable: true, Primitive: false, Equatable: true, Comparable: false, Exportable: true, Importable: true, }
MetaType represents the type of a type.
var MetaTypeAddressFieldType = &OptionalType{ Type: TheAddressType, }
var MetaTypeAnnotation = NewTypeAnnotation(MetaType)
var MetaTypeContractNameFieldType = &OptionalType{ Type: StringType, }
var MetaTypeFunctionType = func() *FunctionType { return &FunctionType{ Purity: FunctionPurityView, TypeParameters: []*TypeParameter{ {Name: "T"}, }, ReturnTypeAnnotation: MetaTypeAnnotation, } }()
var MetaTypeIsRecoveredFieldType = BoolType
var MetaTypeIsSubtypeFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: "of", Identifier: "otherType", TypeAnnotation: MetaTypeAnnotation, }, }, BoolTypeAnnotation, )
var MutateType = &EntitlementType{
Identifier: "Mutate",
}
var NativeCompositeTypes = map[string]*CompositeType{}
var NativeInterfaceTypes = map[string]*InterfaceType{}
var NeverType = &SimpleType{ Name: "Never", QualifiedName: "Never", TypeID: "Never", TypeTag: NeverTypeTag, IsResource: false, Storable: false, Primitive: false, Equatable: false, Comparable: false, Exportable: false, Importable: false, }
NeverType represents the bottom type
var NeverTypeAnnotation = NewTypeAnnotation(NeverType)
var NilType = &OptionalType{ Type: NeverType, }
var NumberType = NewNumericType(NumberTypeName). WithTag(NumberTypeTag). AsSuperType()
NumberType represents the super-type of all number types
var NumberTypeAnnotation = NewTypeAnnotation(NumberType)
var OptionalMetaTypeAnnotation = NewTypeAnnotation(&OptionalType{ Type: MetaType, })
var OptionalTypeFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "type", TypeAnnotation: MetaTypeAnnotation, }, }, MetaTypeAnnotation, )
var PathType = &SimpleType{ Name: "Path", QualifiedName: "Path", TypeID: "Path", TypeTag: PathTypeTag, IsResource: false, Storable: true, Primitive: true, Equatable: true, Comparable: false, Exportable: true, Importable: true, conformances: []*InterfaceType{ StructStringerType, }, }
PathType
var PathTypeAnnotation = NewTypeAnnotation(PathType)
var PrivatePathConversionFunctionType = pathConversionFunctionType(PrivatePathType)
var PrivatePathType = &SimpleType{ Name: "PrivatePath", QualifiedName: "PrivatePath", TypeID: "PrivatePath", TypeTag: PrivatePathTypeTag, IsResource: false, Storable: true, Primitive: true, Equatable: true, Comparable: false, Exportable: true, Importable: true, conformances: []*InterfaceType{ StructStringerType, }, }
PrivatePathType
var PrivatePathTypeAnnotation = NewTypeAnnotation(PrivatePathType)
var PublicKeyArrayType = &VariableSizedType{ Type: PublicKeyType, }
var PublicKeyArrayTypeAnnotation = NewTypeAnnotation(PublicKeyArrayType)
var PublicKeyType = func() *CompositeType { publicKeyType := &CompositeType{ Identifier: PublicKeyTypeName, Kind: common.CompositeKindStructure, HasComputedMembers: true, ImportableBuiltin: true, } var members = []*Member{ NewUnmeteredPublicConstantFieldMember( publicKeyType, PublicKeyTypePublicKeyFieldName, ByteArrayType, publicKeyKeyFieldDocString, ), NewUnmeteredPublicConstantFieldMember( publicKeyType, PublicKeyTypeSignatureAlgorithmFieldName, SignatureAlgorithmType, publicKeySignAlgoFieldDocString, ), NewUnmeteredPublicFunctionMember( publicKeyType, PublicKeyTypeVerifyFunctionName, PublicKeyTypeVerifyFunctionType, publicKeyTypeVerifyFunctionDocString, ), NewUnmeteredPublicFunctionMember( publicKeyType, PublicKeyTypeVerifyPoPFunctionName, PublicKeyTypeVerifyPoPFunctionType, publicKeyTypeVerifyPoPFunctionDocString, ), } publicKeyType.Members = MembersAsMap(members) publicKeyType.Fields = MembersFieldNames(members) return publicKeyType }()
PublicKeyType represents the public key associated with an account key.
var PublicKeyTypeAnnotation = NewTypeAnnotation(PublicKeyType)
var PublicKeyTypeVerifyFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Identifier: "signature", TypeAnnotation: ByteArrayTypeAnnotation, }, { Identifier: "signedData", TypeAnnotation: ByteArrayTypeAnnotation, }, { Identifier: "domainSeparationTag", TypeAnnotation: StringTypeAnnotation, }, { Identifier: "hashAlgorithm", TypeAnnotation: HashAlgorithmTypeAnnotation, }, }, BoolTypeAnnotation, )
var PublicKeyTypeVerifyPoPFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "proof", TypeAnnotation: ByteArrayTypeAnnotation, }, }, BoolTypeAnnotation, )
var PublicPathConversionFunctionType = pathConversionFunctionType(PublicPathType)
var PublicPathType = &SimpleType{ Name: "PublicPath", QualifiedName: "PublicPath", TypeID: "PublicPath", TypeTag: PublicPathTypeTag, IsResource: false, Storable: true, Primitive: true, Equatable: true, Comparable: false, Exportable: true, Importable: true, conformances: []*InterfaceType{ StructStringerType, }, }
PublicPathType
var PublicPathTypeAnnotation = NewTypeAnnotation(PublicPathType)
var PublishCapabilityType = &EntitlementType{
Identifier: "PublishCapability",
}
var PublishInboxCapabilityType = &EntitlementType{
Identifier: "PublishInboxCapability",
}
var ReferenceTypeFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Identifier: "entitlements", TypeAnnotation: NewTypeAnnotation( &VariableSizedType{ Type: StringType, }, ), }, { Identifier: "type", TypeAnnotation: MetaTypeAnnotation, }, }, OptionalMetaTypeAnnotation, )
var RemoveContractType = &EntitlementType{
Identifier: "RemoveContract",
}
var RemoveType = &EntitlementType{
Identifier: "Remove",
}
var ResourceOwnerFieldType = &OptionalType{ Type: AccountReferenceType, }
var ResourceUUIDFieldType = UInt64Type
var RevokeKeyType = &EntitlementType{
Identifier: "RevokeKey",
}
var RuntimeTypeConstructors = []*RuntimeTypeConstructor{ { Name: MetaTypeName, Value: MetaTypeFunctionType, DocString: "Creates a run-time type representing the given static type as a value", }, { Name: OptionalTypeFunctionName, Value: OptionalTypeFunctionType, DocString: "Creates a run-time type representing an optional version of the given run-time type.", }, { Name: VariableSizedArrayTypeFunctionName, Value: VariableSizedArrayTypeFunctionType, DocString: "Creates a run-time type representing a variable-sized array type of the given run-time type.", }, { Name: ConstantSizedArrayTypeFunctionName, Value: ConstantSizedArrayTypeFunctionType, DocString: "Creates a run-time type representing a constant-sized array type of the given run-time type with the specified size.", }, { Name: DictionaryTypeFunctionName, Value: DictionaryTypeFunctionType, DocString: `Creates a run-time type representing a dictionary type of the given run-time key and value types. Returns nil if the key type is not a valid dictionary key.`, }, { Name: CompositeTypeFunctionName, Value: CompositeTypeFunctionType, DocString: `Creates a run-time type representing the composite type associated with the given type identifier. Returns nil if the identifier does not correspond to any composite type.`, }, { Name: FunctionTypeFunctionName, Value: FunctionTypeFunctionType, DocString: "Creates a run-time type representing a function type associated with the given parameters and return type.", }, { Name: ReferenceTypeFunctionName, Value: ReferenceTypeFunctionType, DocString: ` Creates a run-time type representing a reference type of the given type. The first argument specifies the set of entitlements to which this reference is entitled. Providing an empty array will result in an unauthorized return value. Providing invalid entitlements in the input array will result in a nil return value`, }, { Name: IntersectionTypeFunctionName, Value: IntersectionTypeFunctionType, DocString: `Creates a run-time type representing an intersection of the interface identifiers in the argument. Returns nil if the intersection is not valid.`, }, { Name: CapabilityTypeFunctionName, Value: CapabilityTypeFunctionType, DocString: "Creates a run-time type representing a capability type of the given reference type. Returns nil if the type is not a reference.", }, { Name: InclusiveRangeTypeFunctionName, Value: InclusiveRangeTypeFunctionType, DocString: `Creates a run-time type representing an inclusive range type of the given run-time member type. Returns nil if the member type is not a valid inclusive range member type.`, }, }
var SaturatingArithmeticTypeFunctionTypes = map[Type]*FunctionType{}
var SaveValueType = &EntitlementType{
Identifier: "SaveValue",
}
var SignatureAlgorithmType = newNativeEnumType( SignatureAlgorithmTypeName, UInt8Type, nil, )
var SignatureAlgorithmTypeAnnotation = NewTypeAnnotation(SignatureAlgorithmType)
var SignatureAlgorithms = []SignatureAlgorithm{ SignatureAlgorithmECDSA_P256, SignatureAlgorithmECDSA_secp256k1, SignatureAlgorithmBLS_BLS12_381, }
var SignedFixedPointType = NewNumericType(SignedFixedPointTypeName). WithTag(SignedFixedPointTypeTag). AsSuperType()
SignedFixedPointType represents the super-type of all signed fixed-point types
var SignedFixedPointTypeAnnotation = NewTypeAnnotation(SignedFixedPointType)
var SignedIntegerType = NewNumericType(SignedIntegerTypeName). WithTag(SignedIntegerTypeTag). AsSuperType()
SignedIntegerType represents the super-type of all signed integer types
var SignedIntegerTypeAnnotation = NewTypeAnnotation(SignedIntegerType)
var SignedNumberType = NewNumericType(SignedNumberTypeName). WithTag(SignedNumberTypeTag). AsSuperType()
SignedNumberType represents the super-type of all signed number types
var SignedNumberTypeAnnotation = NewTypeAnnotation(SignedNumberType)
var StorableType = &SimpleType{ Name: "Storable", QualifiedName: "Storable", TypeID: "Storable", IsResource: false, Storable: true, Primitive: false, Equatable: false, Comparable: false, Exportable: false, Importable: false, }
StorableType is the supertype of all types which are storable.
It is only used as e.g. a type bound, but is not accessible to user programs, i.e. can't be used in type annotations for e.g. parameters, return types, fields, etc.
var StorageCapabilitiesType = &EntitlementType{
Identifier: "StorageCapabilities",
}
var StorageCapabilityControllerType = &SimpleType{ Name: StorageCapabilityControllerTypeName, QualifiedName: StorageCapabilityControllerTypeName, TypeID: StorageCapabilityControllerTypeName, TypeTag: StorageCapabilityControllerTypeTag, IsResource: false, Storable: false, Primitive: false, Equatable: false, Comparable: false, Exportable: false, Importable: false, ContainFields: true, }
var StorageCapabilityControllerTypeAnnotation = NewTypeAnnotation(StorageCapabilityControllerType)
var StorageCapabilityControllerTypeBorrowTypeFieldType = MetaType
var StorageCapabilityControllerTypeCapabilityFieldType = &CapabilityType{}
var StorageCapabilityControllerTypeCapabilityIDFieldType = UInt64Type
var StorageCapabilityControllerTypeDeleteFunctionType = &FunctionType{ ReturnTypeAnnotation: NewTypeAnnotation( VoidType, ), }
var StorageCapabilityControllerTypeRetargetFunctionType = &FunctionType{ Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "target", TypeAnnotation: NewTypeAnnotation(StoragePathType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( VoidType, ), }
var StorageCapabilityControllerTypeSetTagFunctionType = &FunctionType{ Parameters: []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "tag", TypeAnnotation: NewTypeAnnotation(StringType), }, }, ReturnTypeAnnotation: NewTypeAnnotation( VoidType, ), }
var StorageCapabilityControllerTypeTagFieldType = StringType
var StorageCapabilityControllerTypeTargetFunctionType = &FunctionType{ ReturnTypeAnnotation: NewTypeAnnotation( StoragePathType, ), }
var StoragePathConversionFunctionType = pathConversionFunctionType(StoragePathType)
var StoragePathType = &SimpleType{ Name: "StoragePath", QualifiedName: "StoragePath", TypeID: "StoragePath", TypeTag: StoragePathTypeTag, IsResource: false, Storable: true, Primitive: true, Equatable: true, Comparable: false, Exportable: true, Importable: true, conformances: []*InterfaceType{ StructStringerType, }, }
StoragePathType
var StoragePathTypeAnnotation = NewTypeAnnotation(StoragePathType)
var StorageType = &EntitlementType{
Identifier: "Storage",
}
var StringFunctionType = func() *FunctionType { typeName := StringType.String() if BaseValueActivation.Find(typeName) != nil { panic(errors.NewUnreachableError()) } functionType := NewSimpleFunctionType( FunctionPurityView, nil, StringTypeAnnotation, ) functionType.TypeFunctionType = StringType addMember := func(member *Member) { if functionType.Members == nil { functionType.Members = &StringMemberOrderedMap{} } name := member.Identifier.Identifier if functionType.Members.Contains(name) { panic(errors.NewUnreachableError()) } functionType.Members.Set(name, member) } addMember(NewUnmeteredPublicFunctionMember( functionType, StringTypeEncodeHexFunctionName, StringTypeEncodeHexFunctionType, StringTypeEncodeHexFunctionDocString, )) addMember(NewUnmeteredPublicFunctionMember( functionType, StringTypeFromUtf8FunctionName, StringTypeFromUtf8FunctionType, StringTypeFromUtf8FunctionDocString, )) addMember(NewUnmeteredPublicFunctionMember( functionType, StringTypeFromCharactersFunctionName, StringTypeFromCharactersFunctionType, StringTypeFromCharactersFunctionDocString, )) addMember(NewUnmeteredPublicFunctionMember( functionType, StringTypeJoinFunctionName, StringTypeJoinFunctionType, StringTypeJoinFunctionDocString, )) BaseValueActivation.Set( typeName, baseFunctionVariable( typeName, functionType, stringFunctionDocString, ), ) return functionType }()
var StringType = &SimpleType{ Name: "String", QualifiedName: "String", TypeID: "String", TypeTag: StringTypeTag, IsResource: false, Storable: true, Primitive: true, Equatable: true, Comparable: true, Exportable: true, Importable: true, ValueIndexingInfo: ValueIndexingInfo{ IsValueIndexableType: true, AllowsValueIndexingAssignment: false, ElementType: func(_ bool) Type { return CharacterType }, IndexingType: IntegerType, }, conformances: []*InterfaceType{ StructStringerType, }, }
StringType represents the string type
var StringTypeAnnotation = NewTypeAnnotation(StringType)
var StringTypeConcatFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "other", TypeAnnotation: StringTypeAnnotation, }, }, StringTypeAnnotation, )
var StringTypeContainsFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "other", TypeAnnotation: StringTypeAnnotation, }, }, BoolTypeAnnotation, )
var StringTypeCountFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "other", TypeAnnotation: StringTypeAnnotation, }, }, IntTypeAnnotation, )
var StringTypeDecodeHexFunctionType = NewSimpleFunctionType( FunctionPurityView, nil, ByteArrayTypeAnnotation, )
var StringTypeEncodeHexFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "data", TypeAnnotation: ByteArrayTypeAnnotation, }, }, StringTypeAnnotation, )
var StringTypeFromCharactersFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "characters", TypeAnnotation: NewTypeAnnotation(&VariableSizedType{ Type: CharacterType, }), }, }, StringTypeAnnotation, )
var StringTypeFromUtf8FunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "bytes", TypeAnnotation: ByteArrayTypeAnnotation, }, }, NewTypeAnnotation( &OptionalType{ Type: StringType, }, ), )
var StringTypeIndexFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: "of", Identifier: "other", TypeAnnotation: StringTypeAnnotation, }, }, IntTypeAnnotation, )
var StringTypeJoinFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "strings", TypeAnnotation: NewTypeAnnotation(&VariableSizedType{ Type: StringType, }), }, { Identifier: "separator", TypeAnnotation: NewTypeAnnotation(StringType), }, }, StringTypeAnnotation, )
var StringTypeReplaceAllFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: "of", Identifier: "old", TypeAnnotation: StringTypeAnnotation, }, { Label: "with", Identifier: "replacement", TypeAnnotation: StringTypeAnnotation, }, }, StringTypeAnnotation, )
var StringTypeSliceFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Identifier: "from", TypeAnnotation: IntTypeAnnotation, }, { Identifier: "upTo", TypeAnnotation: IntTypeAnnotation, }, }, StringTypeAnnotation, )
var StringTypeSplitFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Identifier: "separator", TypeAnnotation: StringTypeAnnotation, }, }, NewTypeAnnotation( &VariableSizedType{ Type: StringType, }, ), )
var StringTypeToLowerFunctionType = NewSimpleFunctionType( FunctionPurityView, nil, StringTypeAnnotation, )
var StructStringerType = func() *InterfaceType { var t = &InterfaceType{ Identifier: StructStringerTypeName, CompositeKind: common.CompositeKindStructure, } return t }()
var StructStringerTypeToStringFunctionType = &FunctionType{ Purity: FunctionPurityView, ReturnTypeAnnotation: NewTypeAnnotation( StringType, ), }
var TheAddressType = &AddressType{}
var ToBigEndianBytesFunctionType = NewSimpleFunctionType( FunctionPurityView, nil, ByteArrayTypeAnnotation, )
var ToStringFunctionType = NewSimpleFunctionType( FunctionPurityView, nil, StringTypeAnnotation, )
var UFix128Type = NewFixedPointNumericType(UFix128TypeName). WithTag(UFix128TypeTag). WithIntRange(UFix128TypeMinIntBig, UFix128TypeMaxIntBig). WithFractionalRange(UFix128TypeMinFractionalBig, UFix128TypeMaxFractionalBig). WithScale(Fix128Scale). WithSaturatingFunctions(SaturatingArithmeticSupport{ Add: true, Subtract: true, Multiply: true, })
UFix128Type represents the 128-bit unsigned decimal fixed-point type `UFix128` which has a scale of Fix128Scale, and checks for overflow and underflow.
var UFix128TypeAnnotation = NewTypeAnnotation(UFix128Type)
var UFix64Type = NewFixedPointNumericType(UFix64TypeName). WithTag(UFix64TypeTag). WithIntRange(UFix64TypeMinIntBig, UFix64TypeMaxIntBig). WithFractionalRange(UFix64TypeMinFractionalBig, UFix64TypeMaxFractionalBig). WithScale(Fix64Scale). WithSaturatingFunctions(SaturatingArithmeticSupport{ Add: true, Subtract: true, Multiply: true, })
UFix64Type represents the 64-bit unsigned decimal fixed-point type `UFix64` which has a scale of 1E9, and checks for overflow and underflow
var UFix64TypeAnnotation = NewTypeAnnotation(UFix64Type)
var UInt128Type = NewNumericType(UInt128TypeName). WithTag(UInt128TypeTag). WithIntRange(UInt128TypeMinIntBig, UInt128TypeMaxIntBig). WithByteSize(16). WithSaturatingFunctions(SaturatingArithmeticSupport{ Add: true, Subtract: true, Multiply: true, })
UInt128Type represents the 128-bit unsigned integer type `UInt128` which checks for overflow and underflow
var UInt128TypeAnnotation = NewTypeAnnotation(UInt128Type)
var UInt16Type = NewNumericType(UInt16TypeName). WithTag(UInt16TypeTag). WithIntRange(UInt16TypeMinInt, UInt16TypeMaxInt). WithByteSize(2). WithSaturatingFunctions(SaturatingArithmeticSupport{ Add: true, Subtract: true, Multiply: true, })
UInt16Type represents the 16-bit unsigned integer type `UInt16` which checks for overflow and underflow
var UInt16TypeAnnotation = NewTypeAnnotation(UInt16Type)
var UInt256Type = NewNumericType(UInt256TypeName). WithTag(UInt256TypeTag). WithIntRange(UInt256TypeMinIntBig, UInt256TypeMaxIntBig). WithByteSize(32). WithSaturatingFunctions(SaturatingArithmeticSupport{ Add: true, Subtract: true, Multiply: true, })
UInt256Type represents the 256-bit unsigned integer type `UInt256` which checks for overflow and underflow
var UInt256TypeAnnotation = NewTypeAnnotation(UInt256Type)
var UInt32Type = NewNumericType(UInt32TypeName). WithTag(UInt32TypeTag). WithIntRange(UInt32TypeMinInt, UInt32TypeMaxInt). WithByteSize(4). WithSaturatingFunctions(SaturatingArithmeticSupport{ Add: true, Subtract: true, Multiply: true, })
UInt32Type represents the 32-bit unsigned integer type `UInt32` which checks for overflow and underflow
var UInt32TypeAnnotation = NewTypeAnnotation(UInt32Type)
var UInt64Type = NewNumericType(UInt64TypeName). WithTag(UInt64TypeTag). WithIntRange(UInt64TypeMinInt, UInt64TypeMaxInt). WithByteSize(8). WithSaturatingFunctions(SaturatingArithmeticSupport{ Add: true, Subtract: true, Multiply: true, })
UInt64Type represents the 64-bit unsigned integer type `UInt64` which checks for overflow and underflow
var UInt64TypeAnnotation = NewTypeAnnotation(UInt64Type)
var UInt8Type = NewNumericType(UInt8TypeName). WithTag(UInt8TypeTag). WithIntRange(UInt8TypeMinInt, UInt8TypeMaxInt). WithByteSize(1). WithSaturatingFunctions(SaturatingArithmeticSupport{ Add: true, Subtract: true, Multiply: true, })
UInt8Type represents the 8-bit unsigned integer type `UInt8` which checks for overflow and underflow
var UInt8TypeAnnotation = NewTypeAnnotation(UInt8Type)
var UIntType = NewNumericType(UIntTypeName). WithTag(UIntTypeTag). WithIntRange(UIntTypeMin, nil). WithSaturatingFunctions(SaturatingArithmeticSupport{ Subtract: true, })
UIntType represents the arbitrary-precision unsigned integer type `UInt`
var UIntTypeAnnotation = NewTypeAnnotation(UIntType)
var UnpublishCapabilityType = &EntitlementType{
Identifier: "UnpublishCapability",
}
var UnpublishInboxCapabilityType = &EntitlementType{
Identifier: "UnpublishInboxCapability",
}
var UpdateContractType = &EntitlementType{
Identifier: "UpdateContract",
}
var VariableSizedArrayTypeFunctionType = NewSimpleFunctionType( FunctionPurityView, []Parameter{ { Label: ArgumentLabelNotRequired, Identifier: "type", TypeAnnotation: MetaTypeAnnotation, }, }, MetaTypeAnnotation, )
var VoidType = &SimpleType{ Name: "Void", QualifiedName: "Void", TypeID: "Void", TypeTag: VoidTypeTag, IsResource: false, Storable: false, Primitive: true, Equatable: true, Comparable: false, Exportable: true, Importable: false, }
VoidType represents the void type
var VoidTypeAnnotation = NewTypeAnnotation(VoidType)
var Word128Type = NewNumericType(Word128TypeName). WithTag(Word128TypeTag). WithByteSize(16). WithIntRange(Word128TypeMinIntBig, Word128TypeMaxIntBig)
Word128Type represents the 128-bit unsigned integer type `Word128` which does NOT check for overflow and underflow
var Word128TypeAnnotation = NewTypeAnnotation(Word128Type)
var Word16Type = NewNumericType(Word16TypeName). WithTag(Word16TypeTag). WithByteSize(2). WithIntRange(Word16TypeMinInt, Word16TypeMaxInt)
Word16Type represents the 16-bit unsigned integer type `Word16` which does NOT check for overflow and underflow
var Word16TypeAnnotation = NewTypeAnnotation(Word16Type)
var Word256Type = NewNumericType(Word256TypeName). WithTag(Word256TypeTag). WithByteSize(32). WithIntRange(Word256TypeMinIntBig, Word256TypeMaxIntBig)
Word256Type represents the 256-bit unsigned integer type `Word256` which does NOT check for overflow and underflow
var Word256TypeAnnotation = NewTypeAnnotation(Word256Type)
var Word32Type = NewNumericType(Word32TypeName). WithTag(Word32TypeTag). WithByteSize(4). WithIntRange(Word32TypeMinInt, Word32TypeMaxInt)
Word32Type represents the 32-bit unsigned integer type `Word32` which does NOT check for overflow and underflow
var Word32TypeAnnotation = NewTypeAnnotation(Word32Type)
var Word64Type = NewNumericType(Word64TypeName). WithTag(Word64TypeTag). WithByteSize(8). WithIntRange(Word64TypeMinInt, Word64TypeMaxInt)
Word64Type represents the 64-bit unsigned integer type `Word64` which does NOT check for overflow and underflow
var Word64TypeAnnotation = NewTypeAnnotation(Word64Type)
var Word8Type = NewNumericType(Word8TypeName). WithTag(Word8TypeTag). WithByteSize(1). WithIntRange(Word8TypeMinInt, Word8TypeMaxInt)
Word8Type represents the 8-bit unsigned integer type `Word8` which does NOT check for overflow and underflow
var Word8TypeAnnotation = NewTypeAnnotation(Word8Type)
Functions ¶
func AreParamsContravariant ¶ added in v1.8.4
func AreParamsContravariant(source, target *FunctionType) bool
func AreReturnsCovariant ¶ added in v1.8.4
func AreReturnsCovariant(source, target *FunctionType) bool
func AreTypeArgumentsEqual ¶ added in v1.8.4
func AreTypeArgumentsEqual(source, target ParameterizedType) bool
func AreTypeParamsEqual ¶ added in v1.8.4
func AreTypeParamsEqual(source, target *FunctionType) bool
func CheckAddressLiteral ¶
func CheckAddressLiteral(memoryGauge common.MemoryGauge, expression *ast.IntegerExpression, report func(error)) bool
CheckAddressLiteral checks that the value of the integer literal fits into the range of an address (64 bits), and is hexadecimal
func CheckFixedPointLiteral ¶
func CheckFixedPointLiteral( memoryGauge common.MemoryGauge, expression *ast.FixedPointExpression, targetType Type, report func(error), ) bool
CheckFixedPointLiteral checks that the value of the fixed-point literal fits into range of the target fixed-point type
func CheckIntegerLiteral ¶
func CheckIntegerLiteral(memoryGauge common.MemoryGauge, expression *ast.IntegerExpression, targetType Type, report func(error)) bool
CheckIntegerLiteral checks that the value of the integer literal fits into range of the target integer type
func CheckParameterizedTypeInstantiated ¶
func CheckParameterizedTypeInstantiated( t ParameterizedType, pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error), )
func CheckSubTypeWithoutEquality ¶ added in v1.8.4
CheckSubTypeWithoutEquality determines if the given subtype is a subtype of the given supertype, BUT it does NOT check the equality of the two types, so does NOT return a specific value when the two types are equal or are not.
Consider using IsSubType or IsProperSubType
func CheckSubTypeWithoutEquality_gen ¶ added in v1.8.4
func FailableCastCanSucceed ¶
FailableCastCanSucceed checks a failable (dynamic) cast, i.e. a cast that might succeed at run-time. It returns true if the cast from subType to superType could potentially succeed at run-time, and returns false if the cast will definitely always fail.
func FormatCapabilityTypeID ¶
func FormatCapabilityTypeID[T ~string](borrowTypeID T) T
func FormatDictionaryTypeID ¶
func FormatDictionaryTypeID[T ~string](keyTypeID T, valueTypeID T) T
func FormatEntitlementSetTypeID ¶
func FormatEntitlementSetTypeID[T ~string](entitlementTypeIDs []T, kind EntitlementSetKind) T
func FormatFunctionTypeID ¶
func FormatIntersectionTypeID ¶
func FormatIntersectionTypeID[T ~string](interfaceTypeIDs []T) T
func FormatIntersectionTypeIDWithSingleInterface ¶ added in v1.7.0
func FormatIntersectionTypeIDWithSingleInterface[T ~string](interfaceTypeID T) T
func FormatOptionalTypeID ¶
func FormatOptionalTypeID[T ~string](elementTypeID T) T
func FormatReferenceTypeID ¶
func FormatReferenceTypeID[T ~string](authorization T, borrowTypeID T) T
func FormatVariableSizedTypeID ¶
func FormatVariableSizedTypeID[T ~string](elementTypeID T) T
func FunctionEntryPointDeclaration ¶
func FunctionEntryPointDeclaration(program *ast.Program) *ast.FunctionDeclaration
FunctionEntryPointDeclaration returns the entry point function declaration, if any.
Returns nil if there are multiple function declarations with the same function entry point name, or a transaction declaration.
func HasToStringFunction ¶ added in v1.5.0
func IsHashableStructType ¶
func IsIntersectionSubset ¶ added in v1.8.4
func IsIntersectionSubset(superType *IntersectionType, subType Type) bool
func IsProperSubType ¶
IsProperSubType is similar to IsSubType, i.e. it determines if the given subtype is a subtype of the given supertype, but returns false if the subtype and supertype refer to the same type.
func IsResourceType ¶ added in v1.8.4
func IsSameTypeKind ¶
IsSameTypeKind determines if the given subtype belongs to the same kind as the supertype.
e.g: 'Never' type is a subtype of 'Integer', but not of the same kind as 'Integer'. Whereas, 'Int8' is both a subtype and also of same kind as 'Integer'.
func IsStorableType ¶ added in v1.8.4
func IsSubType ¶
IsSubType determines if the given subtype is a subtype of the given supertype.
Types are subtypes of themselves.
NOTE: This method can be used to check the assignability of `subType` to `superType`. However, to check if a type *strictly* belongs to a certain category, then consider using `IsSameTypeKind` method. e.g: "Is type `T` an Integer type?". Using this method for the later use-case may produce incorrect results.
The differences between these methods is as follows:
IsSubType():
To check the assignability, e.g: is argument type T is a sub-type of parameter type R? This is the more frequent use-case.
IsSameTypeKind():
To check if a type strictly belongs to a certain category. e.g: Is the expression type T is any of the integer types, but nothing else. Another way to check is, asking the question of "if the subType is Never, should the check still pass?". A common code-smell for potential incorrect usage is, using IsSubType() method with a constant/pre-defined superType. e.g: IsSubType(<<someType>>, FixedPointType)
func IsSubTypeWithoutComparison ¶ added in v1.8.5
func IsValidAssignmentTargetExpression ¶
func IsValidAssignmentTargetExpression(expression ast.Expression) bool
func IsValidCharacter ¶
func IsValidEventParameterType ¶
IsValidEventParameterType returns true if the given type is a valid event parameter type.
Events currently only support a few simple Cadence types.
func MembersAsResolvers ¶
func MembersAsResolvers(members []*Member) map[string]MemberResolver
func MembersFieldNames ¶
func MembersMapAsResolvers ¶
func MembersMapAsResolvers(members *StringMemberOrderedMap) map[string]MemberResolver
func PermitsAccess ¶ added in v1.8.4
func VisitThisAndNested ¶
Types ¶
type Access ¶
type Access interface {
IsPrimitiveAccess() bool
ID() TypeID
String() string
QualifiedString() string
Equal(other Access) bool
// PermitsAccess returns whether receiver access permits argument access
PermitsAccess(Access) bool
QualifiedKeyword() string
// contains filtered or unexported methods
}
var InaccessibleAccess Access = PrimitiveAccess(ast.AccessNone)
func NewAccessFromEntitlementOrderedSet ¶
func NewAccessFromEntitlementOrderedSet( set *EntitlementOrderedSet, setKind EntitlementSetKind, ) Access
type AccessCheckMode ¶
type AccessCheckMode uint
const ( // AccessCheckModeDefault indicates the default access check mode should be used. AccessCheckModeDefault AccessCheckMode = iota // AccessCheckModeStrict indicates that access modifiers are required // and access checks are always enforced. AccessCheckModeStrict // AccessCheckModeNotSpecifiedRestricted indicates modifiers are optional. // Access is assumed private if not specified AccessCheckModeNotSpecifiedRestricted // AccessCheckModeNotSpecifiedUnrestricted indicates access modifiers are optional. // Access is assumed public if not specified AccessCheckModeNotSpecifiedUnrestricted // AccessCheckModeNone indicates access modifiers are optional and ignored. AccessCheckModeNone )
func (AccessCheckMode) IsReadableAccess ¶
func (mode AccessCheckMode) IsReadableAccess(access Access) bool
func (AccessCheckMode) IsWriteableAccess ¶
func (mode AccessCheckMode) IsWriteableAccess(access Access) bool
func (AccessCheckMode) String ¶
func (i AccessCheckMode) String() string
type ActivationHandlerFunc ¶
type ActivationHandlerFunc func(common.Location) *VariableActivation
type AddressType ¶
type AddressType struct {
// contains filtered or unexported fields
}
AddressType represents the address type
func (*AddressType) AddressInterfaceConformanceSet ¶ added in v1.3.0
func (t *AddressType) AddressInterfaceConformanceSet() *InterfaceSet
func (*AddressType) CheckInstantiated ¶
func (*AddressType) CheckInstantiated(_ ast.HasPosition, _ common.MemoryGauge, _ func(err error))
func (*AddressType) ContainFieldsOrElements ¶
func (*AddressType) ContainFieldsOrElements() bool
func (*AddressType) Equal ¶
func (*AddressType) Equal(other Type) bool
func (*AddressType) GetMembers ¶
func (t *AddressType) GetMembers() map[string]MemberResolver
func (*AddressType) ID ¶
func (*AddressType) ID() TypeID
func (*AddressType) IsComparable ¶
func (*AddressType) IsComparable() bool
func (*AddressType) IsEquatable ¶
func (*AddressType) IsEquatable() bool
func (*AddressType) IsExportable ¶
func (*AddressType) IsExportable(_ map[*Member]bool) bool
func (*AddressType) IsImportable ¶
func (t *AddressType) IsImportable(_ map[*Member]bool) bool
func (*AddressType) IsInvalidType ¶
func (*AddressType) IsInvalidType() bool
func (*AddressType) IsOrContainsReferenceType ¶
func (*AddressType) IsOrContainsReferenceType() bool
func (*AddressType) IsPrimitiveType ¶
func (*AddressType) IsPrimitiveType() bool
func (*AddressType) IsResourceType ¶
func (*AddressType) IsResourceType() bool
func (*AddressType) IsStorable ¶
func (*AddressType) IsStorable(_ map[*Member]bool) bool
func (*AddressType) IsSuperType ¶
func (*AddressType) IsSuperType() bool
func (*AddressType) IsType ¶
func (*AddressType) IsType()
func (*AddressType) MaxInt ¶
func (*AddressType) MaxInt() *big.Int
func (*AddressType) MinInt ¶
func (*AddressType) MinInt() *big.Int
func (*AddressType) Precedence ¶ added in v1.9.4
func (*AddressType) Precedence() ast.TypePrecedence
func (*AddressType) QualifiedString ¶
func (*AddressType) QualifiedString() string
func (*AddressType) Resolve ¶
func (t *AddressType) Resolve(_ *TypeParameterTypeOrderedMap) Type
func (*AddressType) Rewrite ¶ added in v1.8.12
func (t *AddressType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*AddressType) String ¶
func (*AddressType) String() string
func (*AddressType) Tag ¶
func (t *AddressType) Tag() TypeTag
func (*AddressType) TypeAnnotationState ¶
func (*AddressType) TypeAnnotationState() TypeAnnotationState
func (*AddressType) Unify ¶
func (*AddressType) Unify( _ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), _ common.MemoryGauge, _ ast.HasPosition, ) bool
type AlwaysFailingNonResourceCastingTypeError ¶
func (*AlwaysFailingNonResourceCastingTypeError) DocumentationLink ¶ added in v1.7.0
func (*AlwaysFailingNonResourceCastingTypeError) DocumentationLink() string
func (*AlwaysFailingNonResourceCastingTypeError) Error ¶
func (e *AlwaysFailingNonResourceCastingTypeError) Error() string
func (*AlwaysFailingNonResourceCastingTypeError) IsUserError ¶
func (*AlwaysFailingNonResourceCastingTypeError) IsUserError()
func (*AlwaysFailingNonResourceCastingTypeError) SecondaryError ¶ added in v1.7.0
func (*AlwaysFailingNonResourceCastingTypeError) SecondaryError() string
type AlwaysFailingResourceCastingTypeError ¶
func (*AlwaysFailingResourceCastingTypeError) DocumentationLink ¶ added in v1.7.0
func (*AlwaysFailingResourceCastingTypeError) DocumentationLink() string
func (*AlwaysFailingResourceCastingTypeError) Error ¶
func (e *AlwaysFailingResourceCastingTypeError) Error() string
func (*AlwaysFailingResourceCastingTypeError) IsUserError ¶
func (*AlwaysFailingResourceCastingTypeError) IsUserError()
func (*AlwaysFailingResourceCastingTypeError) SecondaryError ¶ added in v1.7.0
func (*AlwaysFailingResourceCastingTypeError) SecondaryError() string
type AmbiguousIntersectionTypeError ¶
func (*AmbiguousIntersectionTypeError) DocumentationLink ¶ added in v1.7.0
func (*AmbiguousIntersectionTypeError) DocumentationLink() string
func (*AmbiguousIntersectionTypeError) Error ¶
func (*AmbiguousIntersectionTypeError) Error() string
func (*AmbiguousIntersectionTypeError) IsUserError ¶
func (*AmbiguousIntersectionTypeError) IsUserError()
func (*AmbiguousIntersectionTypeError) SecondaryError ¶ added in v1.7.0
func (*AmbiguousIntersectionTypeError) SecondaryError() string
type ArgumentExpressionsCheck ¶
type ArgumentExpressionsCheck func( checker *Checker, argumentExpressions []ast.Expression, invocationRange ast.HasPosition, )
type ArrayExpressionTypes ¶
type ArrayType ¶
type ArrayType interface {
ValueIndexableType
EntitlementSupportingType
// contains filtered or unexported methods
}
type AssignmentToConstantError ¶
func (*AssignmentToConstantError) DocumentationLink ¶ added in v1.7.0
func (*AssignmentToConstantError) DocumentationLink() string
func (*AssignmentToConstantError) Error ¶
func (e *AssignmentToConstantError) Error() string
func (*AssignmentToConstantError) IsUserError ¶
func (*AssignmentToConstantError) IsUserError()
func (*AssignmentToConstantError) SecondaryError ¶
func (e *AssignmentToConstantError) SecondaryError() string
type AssignmentToConstantMemberError ¶
func (*AssignmentToConstantMemberError) DocumentationLink ¶ added in v1.7.0
func (*AssignmentToConstantMemberError) DocumentationLink() string
func (*AssignmentToConstantMemberError) Error ¶
func (e *AssignmentToConstantMemberError) Error() string
func (*AssignmentToConstantMemberError) IsUserError ¶
func (*AssignmentToConstantMemberError) IsUserError()
func (*AssignmentToConstantMemberError) SecondaryError ¶ added in v1.7.0
func (*AssignmentToConstantMemberError) SecondaryError() string
type AttachExpressionTypes ¶ added in v1.8.0
type AttachNonAttachmentError ¶
func (*AttachNonAttachmentError) DocumentationLink ¶ added in v1.7.0
func (*AttachNonAttachmentError) DocumentationLink() string
func (*AttachNonAttachmentError) Error ¶
func (e *AttachNonAttachmentError) Error() string
func (*AttachNonAttachmentError) IsUserError ¶
func (*AttachNonAttachmentError) IsUserError()
func (*AttachNonAttachmentError) SecondaryError ¶ added in v1.7.0
func (*AttachNonAttachmentError) SecondaryError() string
type AttachToInvalidTypeError ¶
AttachToInvalidTypeError
func (*AttachToInvalidTypeError) DocumentationLink ¶ added in v1.7.0
func (*AttachToInvalidTypeError) DocumentationLink() string
func (*AttachToInvalidTypeError) Error ¶
func (e *AttachToInvalidTypeError) Error() string
func (*AttachToInvalidTypeError) IsUserError ¶
func (*AttachToInvalidTypeError) IsUserError()
func (*AttachToInvalidTypeError) SecondaryError ¶ added in v1.7.0
func (*AttachToInvalidTypeError) SecondaryError() string
type BeforeExtractor ¶
type BeforeExtractor struct {
ExpressionExtractor *ast.ExpressionExtractor
// contains filtered or unexported fields
}
func NewBeforeExtractor ¶
func NewBeforeExtractor( memoryGauge common.MemoryGauge, identifierPrefix string, report func(error), ) *BeforeExtractor
func (*BeforeExtractor) ExtractBefore ¶
func (e *BeforeExtractor) ExtractBefore(expression ast.Expression) ast.ExpressionExtraction
func (*BeforeExtractor) ExtractFunction ¶
func (e *BeforeExtractor) ExtractFunction( _ *ast.ExpressionExtractor, expression *ast.FunctionExpression, ) ast.ExpressionExtraction
func (*BeforeExtractor) ExtractInvocation ¶
func (e *BeforeExtractor) ExtractInvocation( extractor *ast.ExpressionExtractor, expression *ast.InvocationExpression, ) ast.ExpressionExtraction
type BinaryExpressionTypes ¶
type BinaryOperationKind ¶
type BinaryOperationKind uint
const ( BinaryOperationKindUnknown BinaryOperationKind = iota BinaryOperationKindArithmetic BinaryOperationKindNonEqualityComparison BinaryOperationKindBooleanLogic BinaryOperationKindEquality BinaryOperationKindNilCoalescing BinaryOperationKindBitwise )
func (BinaryOperationKind) String ¶
func (i BinaryOperationKind) String() string
type CapabilityType ¶
type CapabilityType struct {
BorrowType Type
// contains filtered or unexported fields
}
func NewCapabilityType ¶
func NewCapabilityType(memoryGauge common.MemoryGauge, borrowType Type) *CapabilityType
func (*CapabilityType) BaseType ¶
func (t *CapabilityType) BaseType() Type
func (*CapabilityType) CheckInstantiated ¶
func (t *CapabilityType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
func (*CapabilityType) ContainFieldsOrElements ¶
func (*CapabilityType) ContainFieldsOrElements() bool
func (*CapabilityType) Equal ¶
func (t *CapabilityType) Equal(other Type) bool
func (*CapabilityType) GetMembers ¶
func (t *CapabilityType) GetMembers() map[string]MemberResolver
func (*CapabilityType) ID ¶
func (t *CapabilityType) ID() TypeID
func (*CapabilityType) Instantiate ¶
func (t *CapabilityType) Instantiate( _ common.MemoryGauge, typeArguments []Type, _ []*ast.TypeAnnotation, _ func(err error), ) Type
func (*CapabilityType) IsComparable ¶
func (*CapabilityType) IsComparable() bool
func (*CapabilityType) IsEquatable ¶
func (*CapabilityType) IsEquatable() bool
func (*CapabilityType) IsExportable ¶
func (*CapabilityType) IsExportable(_ map[*Member]bool) bool
func (*CapabilityType) IsImportable ¶
func (t *CapabilityType) IsImportable(_ map[*Member]bool) bool
func (*CapabilityType) IsInvalidType ¶
func (t *CapabilityType) IsInvalidType() bool
func (*CapabilityType) IsOrContainsReferenceType ¶
func (t *CapabilityType) IsOrContainsReferenceType() bool
func (*CapabilityType) IsPrimitiveType ¶
func (*CapabilityType) IsPrimitiveType() bool
func (*CapabilityType) IsResourceType ¶
func (*CapabilityType) IsResourceType() bool
func (*CapabilityType) IsStorable ¶
func (*CapabilityType) IsStorable(_ map[*Member]bool) bool
func (*CapabilityType) IsType ¶
func (*CapabilityType) IsType()
func (*CapabilityType) Precedence ¶ added in v1.9.4
func (*CapabilityType) Precedence() ast.TypePrecedence
func (*CapabilityType) QualifiedString ¶
func (t *CapabilityType) QualifiedString() string
func (*CapabilityType) Resolve ¶
func (t *CapabilityType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
func (*CapabilityType) Rewrite ¶ added in v1.8.12
func (t *CapabilityType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*CapabilityType) String ¶
func (t *CapabilityType) String() string
func (*CapabilityType) Tag ¶
func (t *CapabilityType) Tag() TypeTag
func (*CapabilityType) TypeAnnotationState ¶
func (t *CapabilityType) TypeAnnotationState() TypeAnnotationState
func (*CapabilityType) TypeArguments ¶
func (t *CapabilityType) TypeArguments() []Type
func (*CapabilityType) TypeParameters ¶
func (t *CapabilityType) TypeParameters() []*TypeParameter
func (*CapabilityType) Unify ¶
func (t *CapabilityType) Unify( other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), memoryGauge common.MemoryGauge, outerRange ast.HasPosition, ) bool
type CastingExpressionTypes ¶
type CheckHandlerFunc ¶
type CheckHandlerFunc func(checker *Checker, check func())
type Checker ¶
type Checker struct {
Location common.Location
Program *ast.Program
PositionInfo *PositionInfo
Config *Config
Elaboration *Elaboration
// contains filtered or unexported fields
}
func NewChecker ¶
func (*Checker) CheckProgram ¶
func (*Checker) CheckStatement ¶
func (*Checker) CheckerError ¶
func (checker *Checker) CheckerError() *CheckerError
func (*Checker) ConvertType ¶
ConvertType converts an AST type representation to a sema type
func (*Checker) ConvertTypeAnnotation ¶
func (checker *Checker) ConvertTypeAnnotation(typeAnnotation *ast.TypeAnnotation) TypeAnnotation
ConvertTypeAnnotation converts an AST type annotation representation to a sema type annotation
NOTE: type annotations are *NOT* checked!
func (*Checker) CurrentPurityScope ¶
func (checker *Checker) CurrentPurityScope() PurityCheckScope
func (*Checker) EffectiveCompositeMemberAccess ¶
func (*Checker) EnforcePurity ¶
func (checker *Checker) EnforcePurity(operation ast.Element, purity FunctionPurity)
func (*Checker) EntryPointParameters ¶
EntryPointParameters returns the parameters of the transaction or script, if any.
Returns nil if the program specifies both a valid transaction and entry point function declaration.
func (*Checker) InNewPurityScope ¶
func (*Checker) ObserveImpureOperation ¶
func (*Checker) PopPurityScope ¶
func (checker *Checker) PopPurityScope() PurityCheckScope
func (*Checker) PushNewPurityScope ¶
func (*Checker) ResetErrors ¶
func (checker *Checker) ResetErrors()
func (*Checker) SetMemoryGauge ¶
func (checker *Checker) SetMemoryGauge(gauge common.MemoryGauge)
func (*Checker) SubChecker ¶
func (*Checker) TypeActivationDepth ¶
func (*Checker) ValueActivationDepth ¶
func (*Checker) VisitArrayExpression ¶
func (checker *Checker) VisitArrayExpression(arrayExpression *ast.ArrayExpression) Type
func (*Checker) VisitAssignmentStatement ¶
func (checker *Checker) VisitAssignmentStatement(assignment *ast.AssignmentStatement) (_ struct{})
func (*Checker) VisitAttachExpression ¶
func (checker *Checker) VisitAttachExpression(expression *ast.AttachExpression) Type
func (*Checker) VisitAttachmentDeclaration ¶
func (checker *Checker) VisitAttachmentDeclaration(declaration *ast.AttachmentDeclaration) (_ struct{})
func (*Checker) VisitBinaryExpression ¶
func (checker *Checker) VisitBinaryExpression(expression *ast.BinaryExpression) Type
func (*Checker) VisitBoolExpression ¶
func (checker *Checker) VisitBoolExpression(_ *ast.BoolExpression) Type
func (*Checker) VisitBreakStatement ¶
func (checker *Checker) VisitBreakStatement(statement *ast.BreakStatement) (_ struct{})
func (*Checker) VisitCastingExpression ¶
func (checker *Checker) VisitCastingExpression(expression *ast.CastingExpression) Type
func (*Checker) VisitCompositeDeclaration ¶
func (checker *Checker) VisitCompositeDeclaration(declaration *ast.CompositeDeclaration) (_ struct{})
func (*Checker) VisitConditionalExpression ¶
func (checker *Checker) VisitConditionalExpression(expression *ast.ConditionalExpression) Type
func (*Checker) VisitContinueStatement ¶
func (checker *Checker) VisitContinueStatement(statement *ast.ContinueStatement) (_ struct{})
func (*Checker) VisitCreateExpression ¶
func (checker *Checker) VisitCreateExpression(expression *ast.CreateExpression) Type
func (*Checker) VisitDestroyExpression ¶
func (checker *Checker) VisitDestroyExpression(expression *ast.DestroyExpression) (resultType Type)
func (*Checker) VisitDictionaryExpression ¶
func (checker *Checker) VisitDictionaryExpression(expression *ast.DictionaryExpression) Type
func (*Checker) VisitEmitStatement ¶
func (checker *Checker) VisitEmitStatement(statement *ast.EmitStatement) (_ struct{})
func (*Checker) VisitEntitlementDeclaration ¶
func (checker *Checker) VisitEntitlementDeclaration(declaration *ast.EntitlementDeclaration) (_ struct{})
func (*Checker) VisitEntitlementMappingDeclaration ¶
func (checker *Checker) VisitEntitlementMappingDeclaration(declaration *ast.EntitlementMappingDeclaration) (_ struct{})
func (*Checker) VisitEnumCaseDeclaration ¶
func (checker *Checker) VisitEnumCaseDeclaration(_ *ast.EnumCaseDeclaration) struct{}
func (*Checker) VisitExpression ¶
func (*Checker) VisitExpressionStatement ¶
func (checker *Checker) VisitExpressionStatement(statement *ast.ExpressionStatement) (_ struct{})
func (*Checker) VisitExpressionWithForceType ¶
func (*Checker) VisitExpressionWithReferenceCheck ¶
func (*Checker) VisitFieldDeclaration ¶
func (checker *Checker) VisitFieldDeclaration(_ *ast.FieldDeclaration) struct{}
func (*Checker) VisitFixedPointExpression ¶
func (checker *Checker) VisitFixedPointExpression(expression *ast.FixedPointExpression) Type
func (*Checker) VisitForStatement ¶
func (checker *Checker) VisitForStatement(statement *ast.ForStatement) (_ struct{})
func (*Checker) VisitForceExpression ¶
func (checker *Checker) VisitForceExpression(expression *ast.ForceExpression) Type
func (*Checker) VisitFunctionDeclaration ¶
func (checker *Checker) VisitFunctionDeclaration(declaration *ast.FunctionDeclaration, _ bool) (_ struct{})
func (*Checker) VisitFunctionExpression ¶
func (checker *Checker) VisitFunctionExpression(expression *ast.FunctionExpression) Type
func (*Checker) VisitIdentifierExpression ¶
func (checker *Checker) VisitIdentifierExpression(expression *ast.IdentifierExpression) Type
func (*Checker) VisitIfStatement ¶
func (checker *Checker) VisitIfStatement(statement *ast.IfStatement) (_ struct{})
func (*Checker) VisitImportDeclaration ¶
func (checker *Checker) VisitImportDeclaration(declaration *ast.ImportDeclaration) struct{}
func (*Checker) VisitIndexExpression ¶
func (checker *Checker) VisitIndexExpression(expression *ast.IndexExpression) Type
func (*Checker) VisitIntegerExpression ¶
func (checker *Checker) VisitIntegerExpression(expression *ast.IntegerExpression) Type
func (*Checker) VisitInterfaceDeclaration ¶
func (checker *Checker) VisitInterfaceDeclaration(declaration *ast.InterfaceDeclaration) (_ struct{})
VisitInterfaceDeclaration checks the given interface declaration.
NOTE: This function assumes that the interface type was previously declared using `declareInterfaceType` and exists in `checker.Elaboration.InterfaceDeclarationTypes`, and that the members and nested declarations for the interface type were declared through `declareInterfaceMembers`.
func (*Checker) VisitInvocationExpression ¶
func (checker *Checker) VisitInvocationExpression(invocationExpression *ast.InvocationExpression) Type
func (*Checker) VisitMemberExpression ¶
func (checker *Checker) VisitMemberExpression(expression *ast.MemberExpression) Type
NOTE: only called if the member expression is *not* an assignment
func (*Checker) VisitNilExpression ¶
func (checker *Checker) VisitNilExpression(_ *ast.NilExpression) Type
func (*Checker) VisitPathExpression ¶
func (checker *Checker) VisitPathExpression(expression *ast.PathExpression) Type
func (*Checker) VisitPragmaDeclaration ¶
func (checker *Checker) VisitPragmaDeclaration(declaration *ast.PragmaDeclaration) (_ struct{})
VisitPragmaDeclaration checks that the pragma declaration is valid. It is valid if the root expression is an identifier or invocation. Invocations must
func (*Checker) VisitReferenceExpression ¶
func (checker *Checker) VisitReferenceExpression(referenceExpression *ast.ReferenceExpression) Type
VisitReferenceExpression checks a reference expression
func (*Checker) VisitRemoveStatement ¶
func (checker *Checker) VisitRemoveStatement(statement *ast.RemoveStatement) (_ struct{})
func (*Checker) VisitReturnStatement ¶
func (checker *Checker) VisitReturnStatement(statement *ast.ReturnStatement) (_ struct{})
func (*Checker) VisitSpecialFunctionDeclaration ¶
func (checker *Checker) VisitSpecialFunctionDeclaration(declaration *ast.SpecialFunctionDeclaration) struct{}
func (*Checker) VisitStringExpression ¶
func (checker *Checker) VisitStringExpression(expression *ast.StringExpression) Type
func (*Checker) VisitStringTemplateExpression ¶ added in v1.3.0
func (checker *Checker) VisitStringTemplateExpression(stringTemplateExpression *ast.StringTemplateExpression) Type
func (*Checker) VisitSwapStatement ¶
func (checker *Checker) VisitSwapStatement(swap *ast.SwapStatement) (_ struct{})
func (*Checker) VisitSwitchStatement ¶
func (checker *Checker) VisitSwitchStatement(statement *ast.SwitchStatement) (_ struct{})
func (*Checker) VisitTransactionDeclaration ¶
func (checker *Checker) VisitTransactionDeclaration(declaration *ast.TransactionDeclaration) (_ struct{})
func (*Checker) VisitUnaryExpression ¶
func (checker *Checker) VisitUnaryExpression(expression *ast.UnaryExpression) Type
func (*Checker) VisitVariableDeclaration ¶
func (checker *Checker) VisitVariableDeclaration(declaration *ast.VariableDeclaration) (_ struct{})
func (*Checker) VisitVoidExpression ¶
func (checker *Checker) VisitVoidExpression(_ *ast.VoidExpression) Type
func (*Checker) VisitWhileStatement ¶
func (checker *Checker) VisitWhileStatement(statement *ast.WhileStatement) (_ struct{})
type CheckerError ¶
type CheckerError struct {
Location common.Location
Codes map[common.Location][]byte
Errors []error
}
func (CheckerError) ChildErrors ¶
func (e CheckerError) ChildErrors() []error
func (CheckerError) Error ¶
func (e CheckerError) Error() string
func (CheckerError) ImportLocation ¶
func (e CheckerError) ImportLocation() common.Location
func (CheckerError) IsUserError ¶
func (CheckerError) IsUserError()
func (CheckerError) Unwrap ¶
func (e CheckerError) Unwrap() []error
type CompositeKindMismatchError ¶
type CompositeKindMismatchError struct {
ExpectedKind common.CompositeKind
ActualKind common.CompositeKind
ast.Range
}
func (*CompositeKindMismatchError) DocumentationLink ¶ added in v1.7.0
func (*CompositeKindMismatchError) DocumentationLink() string
func (*CompositeKindMismatchError) Error ¶
func (*CompositeKindMismatchError) Error() string
func (*CompositeKindMismatchError) IsUserError ¶
func (*CompositeKindMismatchError) IsUserError()
func (*CompositeKindMismatchError) SecondaryError ¶
func (e *CompositeKindMismatchError) SecondaryError() string
type CompositeKindedType ¶
type CompositeKindedType interface {
Type
LocatedType
EntitlementSupportingType
ContainedType
GetCompositeKind() common.CompositeKind
GetIdentifier() string
}
CompositeKindedType is a type which has a composite kind
type CompositeType ¶
type CompositeType struct {
Location common.Location
EnumRawType Type
NestedTypes *StringTypeOrderedMap
DefaultDestroyEvent *CompositeType
Members *StringMemberOrderedMap
Identifier string
Fields []string
ConstructorParameters []Parameter
ExplicitInterfaceConformances []*InterfaceType
Kind common.CompositeKind
ConstructorPurity FunctionPurity
HasComputedMembers bool
// Only applicable for native composite types
ImportableBuiltin bool
// contains filtered or unexported fields
}
func (*CompositeType) CheckInstantiated ¶
func (t *CompositeType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
func (*CompositeType) ComputeAndCacheMembers ¶ added in v1.8.6
func (t *CompositeType) ComputeAndCacheMembers() map[string]MemberResolver
func (*CompositeType) ConstructorFunctionType ¶
func (t *CompositeType) ConstructorFunctionType() *FunctionType
func (*CompositeType) ContainFieldsOrElements ¶
func (t *CompositeType) ContainFieldsOrElements() bool
func (*CompositeType) EffectiveInterfaceConformanceSet ¶
func (t *CompositeType) EffectiveInterfaceConformanceSet() *InterfaceSet
func (*CompositeType) EffectiveInterfaceConformances ¶
func (t *CompositeType) EffectiveInterfaceConformances() []Conformance
func (*CompositeType) Equal ¶
func (t *CompositeType) Equal(other Type) bool
func (*CompositeType) FieldPosition ¶
func (t *CompositeType) FieldPosition(name string, declaration ast.CompositeLikeDeclaration) ast.Position
func (*CompositeType) GetBaseType ¶
func (t *CompositeType) GetBaseType() Type
func (*CompositeType) GetCompositeKind ¶
func (t *CompositeType) GetCompositeKind() common.CompositeKind
func (*CompositeType) GetContainerType ¶
func (t *CompositeType) GetContainerType() Type
func (*CompositeType) GetIdentifier ¶ added in v1.4.0
func (t *CompositeType) GetIdentifier() string
func (*CompositeType) GetLocation ¶
func (t *CompositeType) GetLocation() common.Location
func (*CompositeType) GetMembers ¶
func (t *CompositeType) GetMembers() map[string]MemberResolver
func (*CompositeType) GetNestedTypes ¶
func (t *CompositeType) GetNestedTypes() *StringTypeOrderedMap
func (*CompositeType) ID ¶
func (t *CompositeType) ID() TypeID
func (*CompositeType) InitializerEffectiveArgumentLabels ¶
func (t *CompositeType) InitializerEffectiveArgumentLabels() []string
func (*CompositeType) InitializerFunctionType ¶
func (t *CompositeType) InitializerFunctionType() *FunctionType
func (*CompositeType) IsComparable ¶
func (*CompositeType) IsComparable() bool
func (*CompositeType) IsContainerType ¶
func (t *CompositeType) IsContainerType() bool
func (*CompositeType) IsEquatable ¶
func (t *CompositeType) IsEquatable() bool
func (*CompositeType) IsExportable ¶
func (t *CompositeType) IsExportable(results map[*Member]bool) bool
func (*CompositeType) IsImportable ¶
func (t *CompositeType) IsImportable(results map[*Member]bool) bool
func (*CompositeType) IsInvalidType ¶
func (*CompositeType) IsInvalidType() bool
func (*CompositeType) IsOrContainsReferenceType ¶
func (*CompositeType) IsOrContainsReferenceType() bool
func (*CompositeType) IsPrimitiveType ¶
func (t *CompositeType) IsPrimitiveType() bool
func (*CompositeType) IsResourceType ¶
func (t *CompositeType) IsResourceType() bool
func (*CompositeType) IsStorable ¶
func (t *CompositeType) IsStorable(results map[*Member]bool) bool
func (*CompositeType) IsType ¶
func (*CompositeType) IsType()
func (*CompositeType) IsValidIndexingType ¶
func (t *CompositeType) IsValidIndexingType(ty Type) bool
func (*CompositeType) MemberMap ¶
func (t *CompositeType) MemberMap() *StringMemberOrderedMap
func (*CompositeType) Precedence ¶ added in v1.9.4
func (*CompositeType) Precedence() ast.TypePrecedence
func (*CompositeType) QualifiedIdentifier ¶
func (t *CompositeType) QualifiedIdentifier() string
func (*CompositeType) QualifiedString ¶
func (t *CompositeType) QualifiedString() string
func (*CompositeType) Resolve ¶
func (t *CompositeType) Resolve(_ *TypeParameterTypeOrderedMap) Type
func (*CompositeType) Rewrite ¶ added in v1.8.12
func (t *CompositeType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*CompositeType) SetContainerType ¶
func (t *CompositeType) SetContainerType(containerType Type)
func (*CompositeType) SetNestedType ¶
func (t *CompositeType) SetNestedType(name string, nestedType ContainedType)
func (*CompositeType) String ¶
func (t *CompositeType) String() string
func (*CompositeType) SupportedEntitlements ¶
func (t *CompositeType) SupportedEntitlements() *EntitlementSet
func (*CompositeType) Tag ¶
func (t *CompositeType) Tag() TypeTag
func (*CompositeType) TypeAnnotationState ¶
func (t *CompositeType) TypeAnnotationState() TypeAnnotationState
func (*CompositeType) TypeIndexingElementType ¶
func (*CompositeType) Unify ¶
func (*CompositeType) Unify( _ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), _ common.MemoryGauge, _ ast.HasPosition, ) bool
type Config ¶
type Config struct {
// ContractValueHandler is used to construct the contract variable
ContractValueHandler ContractValueHandlerFunc
// MemberAccountAccessHandler is used to determine if the access of a member with account access modifier is valid
MemberAccountAccessHandler MemberAccountAccessHandlerFunc
// ValidTopLevelDeclarationsHandler is used to determine the kinds of declarations
// which are valid at the top-level for a given location
ValidTopLevelDeclarationsHandler ValidTopLevelDeclarationsHandlerFunc
BaseTypeActivationHandler ActivationHandlerFunc
BaseValueActivationHandler ActivationHandlerFunc
// ImportHandler is used to resolve unresolved imports
ImportHandler ImportHandlerFunc
// CheckHandler is the function which is used for the checking of a program
CheckHandler CheckHandlerFunc
// LocationHandler is used to resolve locations
LocationHandler LocationHandlerFunc
// AccessCheckMode is the mode for access control checks.
// It determines how access modifiers how existing and missing access modifiers are treated
AccessCheckMode AccessCheckMode
// ExtendedElaborationEnabled determines if extended elaboration information is generated
ExtendedElaborationEnabled bool
// SuggestionsEnabled determines if additional, potentially-computationally intensive,
// suggested fixes are calculated when producing type errors
SuggestionsEnabled bool
// ErrorShortCircuitingEnabled determines if error short-circuiting is enabled.
// When enabled, the checker will stop running once it encounters an error.
// When disabled (the default), the checker reports the error then continues checking
ErrorShortCircuitingEnabled bool
// PositionInfoEnabled determines if position information is generated.
// Position info includes origins, occurrences, member accesses, ranges, and function invocations
PositionInfoEnabled bool
// AllowNativeDeclarations determines if declarations may be native
AllowNativeDeclarations bool
// AllowStaticDeclarations determines if declarations may be static
AllowStaticDeclarations bool
}
type Conformance ¶
type Conformance struct {
InterfaceType *InterfaceType
ConformanceChainRoot *InterfaceType
}
type ConformanceError ¶
type ConformanceError struct {
CompositeDeclaration ast.CompositeLikeDeclaration
CompositeType *CompositeType
InterfaceType *InterfaceType
NestedInterfaceType *InterfaceType
InitializerMismatch *InitializerMismatch
MissingMembers []*Member
MemberMismatches []MemberMismatch
MissingNestedCompositeTypes []*CompositeType
Pos ast.Position
}
func (*ConformanceError) DocumentationLink ¶ added in v1.7.0
func (*ConformanceError) DocumentationLink() string
func (*ConformanceError) EndPosition ¶
func (e *ConformanceError) EndPosition(common.MemoryGauge) ast.Position
func (*ConformanceError) Error ¶
func (e *ConformanceError) Error() string
func (*ConformanceError) ErrorNotes ¶
func (e *ConformanceError) ErrorNotes() (notes []errors.ErrorNote)
func (*ConformanceError) IsUserError ¶
func (*ConformanceError) IsUserError()
func (*ConformanceError) SecondaryError ¶
func (e *ConformanceError) SecondaryError() string
func (*ConformanceError) StartPosition ¶
func (e *ConformanceError) StartPosition() ast.Position
type ConformingType ¶ added in v1.3.0
type ConformingType interface {
Type
EffectiveInterfaceConformanceSet() *InterfaceSet
EffectiveInterfaceConformances() []Conformance
}
ConformingType is a type that can conform to interfaces
type ConstantSizedArrayLiteralSizeError ¶
func (*ConstantSizedArrayLiteralSizeError) DocumentationLink ¶ added in v1.7.0
func (*ConstantSizedArrayLiteralSizeError) DocumentationLink() string
func (*ConstantSizedArrayLiteralSizeError) Error ¶
func (*ConstantSizedArrayLiteralSizeError) Error() string
func (*ConstantSizedArrayLiteralSizeError) IsUserError ¶
func (*ConstantSizedArrayLiteralSizeError) IsUserError()
func (*ConstantSizedArrayLiteralSizeError) SecondaryError ¶
func (e *ConstantSizedArrayLiteralSizeError) SecondaryError() string
type ConstantSizedType ¶
ConstantSizedType is a constant sized array type
func NewConstantSizedType ¶
func NewConstantSizedType(memoryGauge common.MemoryGauge, typ Type, size int64) *ConstantSizedType
func (*ConstantSizedType) AllowsValueIndexingAssignment ¶
func (*ConstantSizedType) AllowsValueIndexingAssignment() bool
func (*ConstantSizedType) CheckInstantiated ¶
func (t *ConstantSizedType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
func (*ConstantSizedType) ContainFieldsOrElements ¶
func (t *ConstantSizedType) ContainFieldsOrElements() bool
func (*ConstantSizedType) ElementType ¶
func (t *ConstantSizedType) ElementType(_ bool) Type
func (*ConstantSizedType) Equal ¶
func (t *ConstantSizedType) Equal(other Type) bool
func (*ConstantSizedType) GetMembers ¶
func (t *ConstantSizedType) GetMembers() map[string]MemberResolver
func (*ConstantSizedType) ID ¶
func (t *ConstantSizedType) ID() TypeID
func (*ConstantSizedType) IndexingType ¶
func (t *ConstantSizedType) IndexingType() Type
func (*ConstantSizedType) IsComparable ¶
func (t *ConstantSizedType) IsComparable() bool
func (*ConstantSizedType) IsEquatable ¶
func (t *ConstantSizedType) IsEquatable() bool
func (*ConstantSizedType) IsExportable ¶
func (t *ConstantSizedType) IsExportable(results map[*Member]bool) bool
func (*ConstantSizedType) IsImportable ¶
func (t *ConstantSizedType) IsImportable(results map[*Member]bool) bool
func (*ConstantSizedType) IsInvalidType ¶
func (t *ConstantSizedType) IsInvalidType() bool
func (*ConstantSizedType) IsOrContainsReferenceType ¶
func (t *ConstantSizedType) IsOrContainsReferenceType() bool
func (*ConstantSizedType) IsPrimitiveType ¶
func (t *ConstantSizedType) IsPrimitiveType() bool
func (*ConstantSizedType) IsResourceType ¶
func (t *ConstantSizedType) IsResourceType() bool
func (*ConstantSizedType) IsStorable ¶
func (t *ConstantSizedType) IsStorable(results map[*Member]bool) bool
func (*ConstantSizedType) IsType ¶
func (*ConstantSizedType) IsType()
func (*ConstantSizedType) Precedence ¶ added in v1.9.4
func (*ConstantSizedType) Precedence() ast.TypePrecedence
func (*ConstantSizedType) QualifiedString ¶
func (t *ConstantSizedType) QualifiedString() string
func (*ConstantSizedType) Resolve ¶
func (t *ConstantSizedType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
func (*ConstantSizedType) Rewrite ¶ added in v1.8.12
func (t *ConstantSizedType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*ConstantSizedType) String ¶
func (t *ConstantSizedType) String() string
func (*ConstantSizedType) SupportedEntitlements ¶
func (t *ConstantSizedType) SupportedEntitlements() *EntitlementSet
func (*ConstantSizedType) Tag ¶
func (t *ConstantSizedType) Tag() TypeTag
func (*ConstantSizedType) TypeAnnotationState ¶
func (t *ConstantSizedType) TypeAnnotationState() TypeAnnotationState
func (*ConstantSizedType) Unify ¶
func (t *ConstantSizedType) Unify( other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), memoryGauge common.MemoryGauge, outerRange ast.HasPosition, ) bool
type ContainedType ¶
ContainedType is a type which might have a container type
type ContainerKind ¶
type ContainerKind uint
const ( ContainerKindUnknown ContainerKind = iota ContainerKindInterface ContainerKindComposite )
func (ContainerKind) String ¶
func (i ContainerKind) String() string
type ContainerType ¶
type ContainerType interface {
Type
IsContainerType() bool
GetNestedTypes() *StringTypeOrderedMap
}
ContainerType is a type which might have nested types
type ContractValueHandlerFunc ¶
type ContractValueHandlerFunc func( checker *Checker, declaration *ast.CompositeDeclaration, compositeType *CompositeType, ) ValueDeclaration
type ControlStatementError ¶
type ControlStatementError struct {
ControlStatement common.ControlStatement
ast.Range
}
func (*ControlStatementError) DocumentationLink ¶ added in v1.7.0
func (*ControlStatementError) DocumentationLink() string
func (*ControlStatementError) Error ¶
func (e *ControlStatementError) Error() string
func (*ControlStatementError) IsUserError ¶
func (*ControlStatementError) IsUserError()
func (*ControlStatementError) SecondaryError ¶
func (e *ControlStatementError) SecondaryError() string
type CryptoAlgorithm ¶
type CyclicConformanceError ¶
type CyclicConformanceError struct {
InterfaceType *InterfaceType
ast.Range
}
CyclicConformanceError
func (*CyclicConformanceError) DocumentationLink ¶ added in v1.7.0
func (*CyclicConformanceError) DocumentationLink() string
func (*CyclicConformanceError) Error ¶
func (e *CyclicConformanceError) Error() string
func (*CyclicConformanceError) IsUserError ¶
func (*CyclicConformanceError) IsUserError()
func (*CyclicConformanceError) SecondaryError ¶ added in v1.7.0
func (*CyclicConformanceError) SecondaryError() string
type CyclicEntitlementMappingError ¶
type CyclicEntitlementMappingError struct {
Map *EntitlementMapType
IncludedType *EntitlementMapType
ast.Range
}
CyclicEntitlementMappingError
func (*CyclicEntitlementMappingError) DocumentationLink ¶ added in v1.7.0
func (*CyclicEntitlementMappingError) DocumentationLink() string
func (*CyclicEntitlementMappingError) Error ¶
func (e *CyclicEntitlementMappingError) Error() string
func (*CyclicEntitlementMappingError) IsUserError ¶
func (*CyclicEntitlementMappingError) IsUserError()
func (*CyclicEntitlementMappingError) SecondaryError ¶ added in v1.7.0
func (*CyclicEntitlementMappingError) SecondaryError() string
type CyclicImportsError ¶
func (*CyclicImportsError) DocumentationLink ¶ added in v1.7.0
func (*CyclicImportsError) DocumentationLink() string
func (*CyclicImportsError) Error ¶
func (e *CyclicImportsError) Error() string
func (*CyclicImportsError) IsUserError ¶
func (*CyclicImportsError) IsUserError()
func (*CyclicImportsError) SecondaryError ¶ added in v1.7.0
func (*CyclicImportsError) SecondaryError() string
type DefaultDestroyEventInNonResourceError ¶
func (*DefaultDestroyEventInNonResourceError) DocumentationLink ¶ added in v1.7.0
func (*DefaultDestroyEventInNonResourceError) DocumentationLink() string
func (*DefaultDestroyEventInNonResourceError) Error ¶
func (e *DefaultDestroyEventInNonResourceError) Error() string
func (*DefaultDestroyEventInNonResourceError) IsUserError ¶
func (*DefaultDestroyEventInNonResourceError) IsUserError()
func (*DefaultDestroyEventInNonResourceError) SecondaryError ¶ added in v1.7.0
func (*DefaultDestroyEventInNonResourceError) SecondaryError() string
type DefaultDestroyInvalidArgumentError ¶
type DefaultDestroyInvalidArgumentError struct {
ast.Range
Kind DefaultDestroyInvalidArgumentKind
}
func (*DefaultDestroyInvalidArgumentError) DocumentationLink ¶ added in v1.7.0
func (*DefaultDestroyInvalidArgumentError) DocumentationLink() string
func (*DefaultDestroyInvalidArgumentError) Error ¶
func (*DefaultDestroyInvalidArgumentError) Error() string
func (*DefaultDestroyInvalidArgumentError) IsUserError ¶
func (*DefaultDestroyInvalidArgumentError) IsUserError()
func (*DefaultDestroyInvalidArgumentError) SecondaryError ¶
func (e *DefaultDestroyInvalidArgumentError) SecondaryError() string
type DefaultDestroyInvalidArgumentKind ¶
type DefaultDestroyInvalidArgumentKind int
const ( NonDictionaryIndexExpression DefaultDestroyInvalidArgumentKind = iota ReferenceTypedMemberAccess InvalidIdentifier InvalidExpression )
type DefaultDestroyInvalidParameterError ¶
func (*DefaultDestroyInvalidParameterError) DocumentationLink ¶ added in v1.7.0
func (*DefaultDestroyInvalidParameterError) DocumentationLink() string
func (*DefaultDestroyInvalidParameterError) Error ¶
func (e *DefaultDestroyInvalidParameterError) Error() string
func (*DefaultDestroyInvalidParameterError) IsUserError ¶
func (*DefaultDestroyInvalidParameterError) IsUserError()
func (*DefaultDestroyInvalidParameterError) SecondaryError ¶ added in v1.7.0
func (*DefaultDestroyInvalidParameterError) SecondaryError() string
type DictionaryEntryType ¶
type DictionaryExpressionTypes ¶
type DictionaryExpressionTypes struct {
DictionaryType *DictionaryType
EntryTypes []DictionaryEntryType
}
type DictionaryType ¶
type DictionaryType struct {
KeyType Type
ValueType Type
// contains filtered or unexported fields
}
func NewDictionaryType ¶
func NewDictionaryType(memoryGauge common.MemoryGauge, keyType, valueType Type) *DictionaryType
func (*DictionaryType) AllowsValueIndexingAssignment ¶
func (*DictionaryType) AllowsValueIndexingAssignment() bool
func (*DictionaryType) CheckInstantiated ¶
func (t *DictionaryType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
func (*DictionaryType) ContainFieldsOrElements ¶
func (*DictionaryType) ContainFieldsOrElements() bool
func (*DictionaryType) ElementType ¶
func (t *DictionaryType) ElementType(_ bool) Type
func (*DictionaryType) Equal ¶
func (t *DictionaryType) Equal(other Type) bool
func (*DictionaryType) GetMembers ¶
func (t *DictionaryType) GetMembers() map[string]MemberResolver
func (*DictionaryType) ID ¶
func (t *DictionaryType) ID() TypeID
func (*DictionaryType) IndexingType ¶
func (t *DictionaryType) IndexingType() Type
func (*DictionaryType) IsComparable ¶
func (*DictionaryType) IsComparable() bool
func (*DictionaryType) IsEquatable ¶
func (t *DictionaryType) IsEquatable() bool
func (*DictionaryType) IsExportable ¶
func (t *DictionaryType) IsExportable(results map[*Member]bool) bool
func (*DictionaryType) IsImportable ¶
func (t *DictionaryType) IsImportable(results map[*Member]bool) bool
func (*DictionaryType) IsInvalidType ¶
func (t *DictionaryType) IsInvalidType() bool
func (*DictionaryType) IsOrContainsReferenceType ¶
func (t *DictionaryType) IsOrContainsReferenceType() bool
func (*DictionaryType) IsPrimitiveType ¶
func (t *DictionaryType) IsPrimitiveType() bool
func (*DictionaryType) IsResourceType ¶
func (t *DictionaryType) IsResourceType() bool
func (*DictionaryType) IsStorable ¶
func (t *DictionaryType) IsStorable(results map[*Member]bool) bool
func (*DictionaryType) IsType ¶
func (*DictionaryType) IsType()
func (*DictionaryType) Precedence ¶ added in v1.9.4
func (*DictionaryType) Precedence() ast.TypePrecedence
func (*DictionaryType) QualifiedString ¶
func (t *DictionaryType) QualifiedString() string
func (*DictionaryType) Resolve ¶
func (t *DictionaryType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
func (*DictionaryType) Rewrite ¶ added in v1.8.12
func (t *DictionaryType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*DictionaryType) String ¶
func (t *DictionaryType) String() string
func (*DictionaryType) SupportedEntitlements ¶
func (t *DictionaryType) SupportedEntitlements() *EntitlementSet
func (*DictionaryType) Tag ¶
func (t *DictionaryType) Tag() TypeTag
func (*DictionaryType) TypeAnnotationState ¶
func (t *DictionaryType) TypeAnnotationState() TypeAnnotationState
func (*DictionaryType) Unify ¶
func (t *DictionaryType) Unify( other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), memoryGauge common.MemoryGauge, outerRange ast.HasPosition, ) bool
type DirectEntitlementAnnotationError ¶
DirectEntitlementAnnotationError
func (*DirectEntitlementAnnotationError) DocumentationLink ¶ added in v1.7.0
func (*DirectEntitlementAnnotationError) DocumentationLink() string
func (*DirectEntitlementAnnotationError) Error ¶
func (*DirectEntitlementAnnotationError) Error() string
func (*DirectEntitlementAnnotationError) IsUserError ¶
func (*DirectEntitlementAnnotationError) IsUserError()
func (*DirectEntitlementAnnotationError) SecondaryError ¶ added in v1.7.0
func (*DirectEntitlementAnnotationError) SecondaryError() string
type DisjunctionOrderedSet ¶
type DisjunctionOrderedSet = orderedmap.OrderedMap[string, *EntitlementOrderedSet]
DisjunctionOrderedSet is a set of entitlement disjunctions, keyed by disjunctionKey
type DuplicateConformanceError ¶
type DuplicateConformanceError struct {
CompositeKindedType CompositeKindedType
InterfaceType *InterfaceType
ast.Range
}
DuplicateConformanceError
TODO: just make this a warning?
func (*DuplicateConformanceError) DocumentationLink ¶ added in v1.7.0
func (*DuplicateConformanceError) DocumentationLink() string
func (*DuplicateConformanceError) Error ¶
func (e *DuplicateConformanceError) Error() string
func (*DuplicateConformanceError) IsUserError ¶
func (*DuplicateConformanceError) IsUserError()
func (*DuplicateConformanceError) SecondaryError ¶ added in v1.7.0
func (*DuplicateConformanceError) SecondaryError() string
func (*DuplicateConformanceError) SuggestFixes ¶ added in v1.7.0
func (e *DuplicateConformanceError) SuggestFixes(code string) []errors.SuggestedFix[ast.TextEdit]
type DuplicateEntitlementMappingInclusionError ¶
type DuplicateEntitlementMappingInclusionError struct {
Map *EntitlementMapType
IncludedType *EntitlementMapType
ast.Range
}
DuplicateEntitlementMappingInclusionError
func (*DuplicateEntitlementMappingInclusionError) DocumentationLink ¶ added in v1.7.0
func (*DuplicateEntitlementMappingInclusionError) DocumentationLink() string
func (*DuplicateEntitlementMappingInclusionError) Error ¶
func (e *DuplicateEntitlementMappingInclusionError) Error() string
func (*DuplicateEntitlementMappingInclusionError) IsUserError ¶
func (*DuplicateEntitlementMappingInclusionError) IsUserError()
func (*DuplicateEntitlementMappingInclusionError) SecondaryError ¶ added in v1.7.0
func (*DuplicateEntitlementMappingInclusionError) SecondaryError() string
type DuplicateImportAliasError ¶ added in v1.7.0
type DuplicateImportAliasError struct {
Alias ast.Identifier
}
func (*DuplicateImportAliasError) DocumentationLink ¶ added in v1.7.0
func (*DuplicateImportAliasError) DocumentationLink() string
func (*DuplicateImportAliasError) EndPosition ¶ added in v1.7.0
func (e *DuplicateImportAliasError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*DuplicateImportAliasError) Error ¶ added in v1.7.0
func (e *DuplicateImportAliasError) Error() string
func (*DuplicateImportAliasError) IsUserError ¶ added in v1.7.0
func (*DuplicateImportAliasError) IsUserError()
func (*DuplicateImportAliasError) SecondaryError ¶ added in v1.7.0
func (*DuplicateImportAliasError) SecondaryError() string
func (*DuplicateImportAliasError) StartPosition ¶ added in v1.7.0
func (e *DuplicateImportAliasError) StartPosition() ast.Position
type DuplicateImportError ¶ added in v1.7.0
func (*DuplicateImportError) DocumentationLink ¶ added in v1.7.0
func (*DuplicateImportError) DocumentationLink() string
func (*DuplicateImportError) EndPosition ¶ added in v1.7.0
func (e *DuplicateImportError) EndPosition(_ common.MemoryGauge) ast.Position
func (*DuplicateImportError) Error ¶ added in v1.7.0
func (e *DuplicateImportError) Error() string
func (*DuplicateImportError) IsUserError ¶ added in v1.7.0
func (*DuplicateImportError) IsUserError()
func (*DuplicateImportError) SecondaryError ¶ added in v1.7.0
func (*DuplicateImportError) SecondaryError() string
func (*DuplicateImportError) StartPosition ¶ added in v1.7.0
func (e *DuplicateImportError) StartPosition() ast.Position
type Elaboration ¶
type Elaboration struct {
TransactionTypes []*TransactionType
// IsRecovered is true if the program was recovered (see runtime.Interface.RecoverProgram)
IsRecovered bool
// contains filtered or unexported fields
}
func NewElaboration ¶
func NewElaboration(gauge common.MemoryGauge) *Elaboration
func (*Elaboration) AllExpressionTypes ¶
func (e *Elaboration) AllExpressionTypes() map[ast.Expression]ExpressionTypes
func (*Elaboration) AllImportDeclarationsResolvedLocations ¶ added in v1.5.0
func (e *Elaboration) AllImportDeclarationsResolvedLocations() map[*ast.ImportDeclaration][]ResolvedLocation
func (*Elaboration) AllStaticCastTypes ¶
func (e *Elaboration) AllStaticCastTypes() map[*ast.CastingExpression]CastTypes
func (*Elaboration) ArrayExpressionTypes ¶
func (e *Elaboration) ArrayExpressionTypes(expression *ast.ArrayExpression) (types ArrayExpressionTypes)
func (*Elaboration) AssignmentStatementTypes ¶
func (e *Elaboration) AssignmentStatementTypes(assignment *ast.AssignmentStatement) (types AssignmentStatementTypes)
func (*Elaboration) AttachTypes ¶
func (e *Elaboration) AttachTypes( expr *ast.AttachExpression, ) ( ty AttachExpressionTypes, )
func (*Elaboration) AttachmentAccessTypes ¶
func (e *Elaboration) AttachmentAccessTypes( expression *ast.IndexExpression, ) ( ty Type, ok bool, )
func (*Elaboration) AttachmentRemoveTypes ¶
func (e *Elaboration) AttachmentRemoveTypes( stmt *ast.RemoveStatement, ) ( ty Type, )
func (*Elaboration) BinaryExpressionTypes ¶
func (e *Elaboration) BinaryExpressionTypes(expression *ast.BinaryExpression) (types BinaryExpressionTypes)
func (*Elaboration) CastingExpressionTypes ¶
func (e *Elaboration) CastingExpressionTypes(expression *ast.CastingExpression) (types CastingExpressionTypes)
func (*Elaboration) CompositeDeclarationType ¶
func (e *Elaboration) CompositeDeclarationType(declaration ast.CompositeLikeDeclaration) *CompositeType
func (*Elaboration) CompositeNestedDeclarations ¶
func (e *Elaboration) CompositeNestedDeclarations(declaration ast.CompositeLikeDeclaration) map[string]ast.Declaration
func (*Elaboration) CompositeType ¶
func (e *Elaboration) CompositeType(typeID common.TypeID) *CompositeType
func (*Elaboration) CompositeTypeDeclaration ¶
func (e *Elaboration) CompositeTypeDeclaration(compositeType *CompositeType) (decl ast.CompositeLikeDeclaration, ok bool)
func (*Elaboration) ConstructorFunctionType ¶
func (e *Elaboration) ConstructorFunctionType(initializer *ast.SpecialFunctionDeclaration) *FunctionType
func (*Elaboration) DefaultDestroyDeclaration ¶
func (e *Elaboration) DefaultDestroyDeclaration(declaration ast.Declaration) *ast.CompositeDeclaration
func (*Elaboration) DictionaryExpressionTypes ¶
func (e *Elaboration) DictionaryExpressionTypes( expression *ast.DictionaryExpression, ) (types DictionaryExpressionTypes)
func (*Elaboration) EmitStatementEventType ¶
func (e *Elaboration) EmitStatementEventType(statement *ast.EmitStatement) *CompositeType
func (*Elaboration) EntitlementDeclarationType ¶
func (e *Elaboration) EntitlementDeclarationType(declaration *ast.EntitlementDeclaration) *EntitlementType
func (*Elaboration) EntitlementMapDeclarationType ¶
func (e *Elaboration) EntitlementMapDeclarationType(declaration *ast.EntitlementMappingDeclaration) *EntitlementMapType
func (*Elaboration) EntitlementMapType ¶
func (e *Elaboration) EntitlementMapType(typeID common.TypeID) *EntitlementMapType
func (*Elaboration) EntitlementMapTypeDeclaration ¶
func (e *Elaboration) EntitlementMapTypeDeclaration(entitlementMapType *EntitlementMapType) *ast.EntitlementMappingDeclaration
func (*Elaboration) EntitlementType ¶
func (e *Elaboration) EntitlementType(typeID common.TypeID) *EntitlementType
func (*Elaboration) EntitlementTypeDeclaration ¶
func (e *Elaboration) EntitlementTypeDeclaration(entitlementType *EntitlementType) *ast.EntitlementDeclaration
func (*Elaboration) EnumLookupFunctionType ¶ added in v1.6.2
func (e *Elaboration) EnumLookupFunctionType(enumType *CompositeType) (functionType *FunctionType)
func (*Elaboration) ExpressionTypes ¶
func (e *Elaboration) ExpressionTypes(expression ast.Expression) ExpressionTypes
func (*Elaboration) FixedPointExpression ¶
func (e *Elaboration) FixedPointExpression(expression *ast.FixedPointExpression) Type
func (*Elaboration) ForEachGlobalType ¶
func (e *Elaboration) ForEachGlobalType(f func(name string, variable *Variable))
func (*Elaboration) ForEachGlobalValue ¶
func (e *Elaboration) ForEachGlobalValue(f func(name string, variable *Variable))
func (*Elaboration) ForStatementType ¶
func (e *Elaboration) ForStatementType(statement *ast.ForStatement) (types ForStatementTypes)
func (*Elaboration) ForceExpressionType ¶
func (e *Elaboration) ForceExpressionType(expression *ast.ForceExpression) Type
func (*Elaboration) FunctionDeclarationFunctionType ¶
func (e *Elaboration) FunctionDeclarationFunctionType(declaration *ast.FunctionDeclaration) *FunctionType
func (*Elaboration) FunctionEntryPointType ¶
func (e *Elaboration) FunctionEntryPointType() (*FunctionType, error)
FunctionEntryPointType returns the type of the entry point function declaration, if any.
Returns an error if no valid entry point function declaration exists.
func (*Elaboration) FunctionExpressionFunctionType ¶
func (e *Elaboration) FunctionExpressionFunctionType(expression *ast.FunctionExpression) *FunctionType
func (*Elaboration) GetGlobalType ¶
func (e *Elaboration) GetGlobalType(name string) (*Variable, bool)
func (*Elaboration) GetGlobalValue ¶
func (e *Elaboration) GetGlobalValue(name string) (*Variable, bool)
func (*Elaboration) GetSemanticAccess ¶
func (e *Elaboration) GetSemanticAccess(access ast.Access) (semaAccess Access, present bool)
func (*Elaboration) IdentifierInInvocationType ¶
func (e *Elaboration) IdentifierInInvocationType(expression *ast.IdentifierExpression) Type
func (*Elaboration) ImportDeclarationAliases ¶ added in v1.7.0
func (e *Elaboration) ImportDeclarationAliases(declaration *ast.ImportDeclaration) map[string]string
func (*Elaboration) ImportDeclarationResolvedLocations ¶ added in v1.7.0
func (e *Elaboration) ImportDeclarationResolvedLocations(declaration *ast.ImportDeclaration) []ResolvedLocation
func (*Elaboration) IndexExpressionTypes ¶
func (e *Elaboration) IndexExpressionTypes(expression *ast.IndexExpression) (types IndexExpressionTypes, contains bool)
func (*Elaboration) IntegerExpressionType ¶
func (e *Elaboration) IntegerExpressionType(expression *ast.IntegerExpression) Type
func (*Elaboration) InterfaceDeclarationType ¶
func (e *Elaboration) InterfaceDeclarationType(declaration *ast.InterfaceDeclaration) *InterfaceType
func (*Elaboration) InterfaceNestedDeclarations ¶
func (e *Elaboration) InterfaceNestedDeclarations(declaration *ast.InterfaceDeclaration) map[string]ast.Declaration
func (*Elaboration) InterfaceType ¶
func (e *Elaboration) InterfaceType(typeID common.TypeID) *InterfaceType
func (*Elaboration) InterfaceTypeDeclaration ¶
func (e *Elaboration) InterfaceTypeDeclaration(interfaceType *InterfaceType) *ast.InterfaceDeclaration
func (*Elaboration) InvocationExpressionTypes ¶
func (e *Elaboration) InvocationExpressionTypes( expression *ast.InvocationExpression, ) (types InvocationExpressionTypes)
func (*Elaboration) IsChecking ¶
func (e *Elaboration) IsChecking() bool
func (*Elaboration) IsNestedResourceMoveExpression ¶
func (e *Elaboration) IsNestedResourceMoveExpression(expression ast.Expression) bool
func (*Elaboration) MemberExpressionExpectedType ¶
func (e *Elaboration) MemberExpressionExpectedType(expression *ast.MemberExpression) Type
func (*Elaboration) MemberExpressionMemberAccessInfo ¶
func (e *Elaboration) MemberExpressionMemberAccessInfo(expression *ast.MemberExpression) (memberInfo MemberAccessInfo, ok bool)
func (*Elaboration) NumberConversionArgumentTypes ¶
func (e *Elaboration) NumberConversionArgumentTypes( expression ast.Expression, ) ( types NumberConversionArgumentTypes, )
func (*Elaboration) PostConditionsRewrite ¶
func (e *Elaboration) PostConditionsRewrite(conditions *ast.Conditions) (rewrite PostConditionsRewrite)
func (*Elaboration) ReferenceExpressionBorrowType ¶
func (e *Elaboration) ReferenceExpressionBorrowType(expression *ast.ReferenceExpression) Type
func (*Elaboration) ResultVariableType ¶ added in v1.4.0
func (e *Elaboration) ResultVariableType(declaration ast.Element) (typ Type, exist bool)
func (*Elaboration) ReturnStatementTypes ¶
func (e *Elaboration) ReturnStatementTypes(statement *ast.ReturnStatement) (types ReturnStatementTypes)
func (*Elaboration) RuntimeCastTypes ¶
func (e *Elaboration) RuntimeCastTypes(expression *ast.CastingExpression) (types RuntimeCastTypes)
func (*Elaboration) SetArrayExpressionTypes ¶
func (e *Elaboration) SetArrayExpressionTypes(expression *ast.ArrayExpression, types ArrayExpressionTypes)
func (*Elaboration) SetAssignmentStatementTypes ¶
func (e *Elaboration) SetAssignmentStatementTypes( assignment *ast.AssignmentStatement, types AssignmentStatementTypes, )
func (*Elaboration) SetAttachTypes ¶
func (e *Elaboration) SetAttachTypes( expr *ast.AttachExpression, types AttachExpressionTypes, )
func (*Elaboration) SetAttachmentAccessTypes ¶
func (e *Elaboration) SetAttachmentAccessTypes( expression *ast.IndexExpression, ty Type, )
func (*Elaboration) SetAttachmentRemoveTypes ¶
func (e *Elaboration) SetAttachmentRemoveTypes( stmt *ast.RemoveStatement, ty Type, )
func (*Elaboration) SetBinaryExpressionTypes ¶
func (e *Elaboration) SetBinaryExpressionTypes(expression *ast.BinaryExpression, types BinaryExpressionTypes)
func (*Elaboration) SetCastingExpressionTypes ¶
func (e *Elaboration) SetCastingExpressionTypes( expression *ast.CastingExpression, types CastingExpressionTypes, )
func (*Elaboration) SetCompositeDeclarationType ¶
func (e *Elaboration) SetCompositeDeclarationType( declaration ast.CompositeLikeDeclaration, compositeType *CompositeType, )
func (*Elaboration) SetCompositeNestedDeclarations ¶
func (e *Elaboration) SetCompositeNestedDeclarations( declaration ast.CompositeLikeDeclaration, nestedDeclaration map[string]ast.Declaration, )
func (*Elaboration) SetCompositeType ¶
func (e *Elaboration) SetCompositeType(typeID TypeID, ty *CompositeType)
func (*Elaboration) SetCompositeTypeDeclaration ¶
func (e *Elaboration) SetCompositeTypeDeclaration( compositeType *CompositeType, declaration ast.CompositeLikeDeclaration, )
func (*Elaboration) SetConstructorFunctionType ¶
func (e *Elaboration) SetConstructorFunctionType( initializer *ast.SpecialFunctionDeclaration, functionType *FunctionType, )
func (*Elaboration) SetDefaultDestroyDeclaration ¶
func (e *Elaboration) SetDefaultDestroyDeclaration( declaration ast.Declaration, eventDeclaration *ast.CompositeDeclaration, )
func (*Elaboration) SetDictionaryExpressionTypes ¶
func (e *Elaboration) SetDictionaryExpressionTypes( expression *ast.DictionaryExpression, types DictionaryExpressionTypes, )
func (*Elaboration) SetEmitStatementEventType ¶
func (e *Elaboration) SetEmitStatementEventType(statement *ast.EmitStatement, compositeType *CompositeType)
func (*Elaboration) SetEntitlementDeclarationWithType ¶
func (e *Elaboration) SetEntitlementDeclarationWithType( declaration *ast.EntitlementDeclaration, entitlementType *EntitlementType, )
func (*Elaboration) SetEntitlementMapDeclarationWithType ¶
func (e *Elaboration) SetEntitlementMapDeclarationWithType( declaration *ast.EntitlementMappingDeclaration, entitlementMapType *EntitlementMapType, )
func (*Elaboration) SetEntitlementMapType ¶
func (e *Elaboration) SetEntitlementMapType(typeID TypeID, ty *EntitlementMapType)
func (*Elaboration) SetEntitlementType ¶
func (e *Elaboration) SetEntitlementType(typeID TypeID, ty *EntitlementType)
func (*Elaboration) SetEnumLookupFunctionType ¶ added in v1.6.2
func (e *Elaboration) SetEnumLookupFunctionType(enumType *CompositeType, functionType *FunctionType)
func (*Elaboration) SetExpressionTypes ¶
func (e *Elaboration) SetExpressionTypes(expression ast.Expression, types ExpressionTypes)
func (*Elaboration) SetFixedPointExpression ¶
func (e *Elaboration) SetFixedPointExpression(expression *ast.FixedPointExpression, ty Type)
func (*Elaboration) SetForStatementType ¶
func (e *Elaboration) SetForStatementType(statement *ast.ForStatement, types ForStatementTypes)
func (*Elaboration) SetForceExpressionType ¶
func (e *Elaboration) SetForceExpressionType(expression *ast.ForceExpression, ty Type)
func (*Elaboration) SetFunctionDeclarationFunctionType ¶
func (e *Elaboration) SetFunctionDeclarationFunctionType( declaration *ast.FunctionDeclaration, functionType *FunctionType, )
func (*Elaboration) SetFunctionExpressionFunctionType ¶
func (e *Elaboration) SetFunctionExpressionFunctionType( expression *ast.FunctionExpression, functionType *FunctionType, )
func (*Elaboration) SetGlobalType ¶
func (e *Elaboration) SetGlobalType(name string, variable *Variable)
func (*Elaboration) SetGlobalValue ¶
func (e *Elaboration) SetGlobalValue(name string, variable *Variable)
func (*Elaboration) SetIdentifierInInvocationType ¶
func (e *Elaboration) SetIdentifierInInvocationType(expression *ast.IdentifierExpression, valueType Type)
func (*Elaboration) SetImportDeclarationAliases ¶ added in v1.7.0
func (e *Elaboration) SetImportDeclarationAliases( declaration *ast.ImportDeclaration, aliases map[string]string, )
func (*Elaboration) SetImportDeclarationResolvedLocations ¶ added in v1.7.0
func (e *Elaboration) SetImportDeclarationResolvedLocations( declaration *ast.ImportDeclaration, locations []ResolvedLocation, )
func (*Elaboration) SetIndexExpressionTypes ¶
func (e *Elaboration) SetIndexExpressionTypes(expression *ast.IndexExpression, types IndexExpressionTypes)
func (*Elaboration) SetIntegerExpressionType ¶
func (e *Elaboration) SetIntegerExpressionType(expression *ast.IntegerExpression, actualType Type)
func (*Elaboration) SetInterfaceDeclarationWithType ¶
func (e *Elaboration) SetInterfaceDeclarationWithType( declaration *ast.InterfaceDeclaration, interfaceType *InterfaceType, )
func (*Elaboration) SetInterfaceNestedDeclarations ¶
func (e *Elaboration) SetInterfaceNestedDeclarations( declaration *ast.InterfaceDeclaration, nestedDeclaration map[string]ast.Declaration, )
func (*Elaboration) SetInterfaceType ¶
func (e *Elaboration) SetInterfaceType(typeID TypeID, ty *InterfaceType)
func (*Elaboration) SetInvocationExpressionTypes ¶
func (e *Elaboration) SetInvocationExpressionTypes( expression *ast.InvocationExpression, types InvocationExpressionTypes, )
func (*Elaboration) SetIsNestedResourceMoveExpression ¶
func (e *Elaboration) SetIsNestedResourceMoveExpression(expression ast.Expression)
func (*Elaboration) SetMemberExpressionExpectedType ¶
func (e *Elaboration) SetMemberExpressionExpectedType(expression *ast.MemberExpression, expectedType Type)
func (*Elaboration) SetMemberExpressionMemberAccessInfo ¶
func (e *Elaboration) SetMemberExpressionMemberAccessInfo(expression *ast.MemberExpression, memberAccessInfo MemberAccessInfo)
func (*Elaboration) SetNumberConversionArgumentTypes ¶
func (e *Elaboration) SetNumberConversionArgumentTypes( expression ast.Expression, types NumberConversionArgumentTypes, )
func (*Elaboration) SetPostConditionsRewrite ¶
func (e *Elaboration) SetPostConditionsRewrite(conditions *ast.Conditions, rewrite PostConditionsRewrite)
func (*Elaboration) SetReferenceExpressionBorrowType ¶
func (e *Elaboration) SetReferenceExpressionBorrowType(expression *ast.ReferenceExpression, ty Type)
func (*Elaboration) SetResultVariableType ¶ added in v1.4.0
func (e *Elaboration) SetResultVariableType(declaration ast.Element, typ Type)
func (*Elaboration) SetReturnStatementTypes ¶
func (e *Elaboration) SetReturnStatementTypes(statement *ast.ReturnStatement, types ReturnStatementTypes)
func (*Elaboration) SetRuntimeCastTypes ¶
func (e *Elaboration) SetRuntimeCastTypes(expression *ast.CastingExpression, types RuntimeCastTypes)
func (*Elaboration) SetSemanticAccess ¶
func (e *Elaboration) SetSemanticAccess(access ast.Access, semanticAccess Access)
func (*Elaboration) SetStaticCastTypes ¶
func (e *Elaboration) SetStaticCastTypes(expression *ast.CastingExpression, types CastTypes)
func (*Elaboration) SetStringExpressionType ¶
func (e *Elaboration) SetStringExpressionType(expression *ast.StringExpression, ty Type)
func (*Elaboration) SetSwapStatementTypes ¶
func (e *Elaboration) SetSwapStatementTypes(statement *ast.SwapStatement, types SwapStatementTypes)
func (*Elaboration) SetTransactionDeclarationType ¶
func (e *Elaboration) SetTransactionDeclarationType(declaration *ast.TransactionDeclaration, ty *TransactionType)
func (*Elaboration) SetVariableDeclarationTypes ¶
func (e *Elaboration) SetVariableDeclarationTypes( declaration *ast.VariableDeclaration, types VariableDeclarationTypes, )
func (*Elaboration) StaticCastTypes ¶
func (e *Elaboration) StaticCastTypes(expression *ast.CastingExpression) (types CastTypes)
func (*Elaboration) StringExpressionType ¶
func (e *Elaboration) StringExpressionType(expression *ast.StringExpression) Type
func (*Elaboration) SwapStatementTypes ¶
func (e *Elaboration) SwapStatementTypes(statement *ast.SwapStatement) (types SwapStatementTypes)
func (*Elaboration) TransactionDeclarationType ¶
func (e *Elaboration) TransactionDeclarationType(declaration *ast.TransactionDeclaration) *TransactionType
func (*Elaboration) VariableDeclarationTypes ¶
func (e *Elaboration) VariableDeclarationTypes(declaration *ast.VariableDeclaration) (types VariableDeclarationTypes)
func (*Elaboration) VariableDeclarationTypesCount ¶
func (e *Elaboration) VariableDeclarationTypesCount() int
type ElaborationImport ¶
type ElaborationImport struct {
Elaboration *Elaboration
}
ElaborationImport
func (ElaborationImport) AllTypeElements ¶
func (i ElaborationImport) AllTypeElements() *StringImportElementOrderedMap
func (ElaborationImport) AllValueElements ¶
func (i ElaborationImport) AllValueElements() *StringImportElementOrderedMap
func (ElaborationImport) IsChecking ¶
func (i ElaborationImport) IsChecking() bool
type EmitDefaultDestroyEventError ¶
func (*EmitDefaultDestroyEventError) DocumentationLink ¶ added in v1.7.0
func (*EmitDefaultDestroyEventError) DocumentationLink() string
func (*EmitDefaultDestroyEventError) Error ¶
func (*EmitDefaultDestroyEventError) Error() string
func (*EmitDefaultDestroyEventError) IsUserError ¶
func (*EmitDefaultDestroyEventError) IsUserError()
func (*EmitDefaultDestroyEventError) SecondaryError ¶ added in v1.7.0
func (*EmitDefaultDestroyEventError) SecondaryError() string
func (*EmitDefaultDestroyEventError) SuggestFixes ¶ added in v1.7.0
func (e *EmitDefaultDestroyEventError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
type EmitImportedEventError ¶
func (*EmitImportedEventError) DocumentationLink ¶ added in v1.7.0
func (*EmitImportedEventError) DocumentationLink() string
func (*EmitImportedEventError) Error ¶
func (e *EmitImportedEventError) Error() string
func (*EmitImportedEventError) IsUserError ¶
func (*EmitImportedEventError) IsUserError()
func (*EmitImportedEventError) SecondaryError ¶ added in v1.7.0
func (*EmitImportedEventError) SecondaryError() string
type EmitNonEventError ¶
func (*EmitNonEventError) DocumentationLink ¶ added in v1.7.0
func (*EmitNonEventError) DocumentationLink() string
func (*EmitNonEventError) Error ¶
func (e *EmitNonEventError) Error() string
func (*EmitNonEventError) IsUserError ¶
func (*EmitNonEventError) IsUserError()
func (*EmitNonEventError) SecondaryError ¶ added in v1.7.0
func (*EmitNonEventError) SecondaryError() string
type EndPositionGetter ¶
type EndPositionGetter func(common.MemoryGauge) ast.Position
type EntitlementMapAccess ¶
type EntitlementMapAccess struct {
Type *EntitlementMapType
// contains filtered or unexported fields
}
func NewEntitlementMapAccess ¶
func NewEntitlementMapAccess(mapType *EntitlementMapType) *EntitlementMapAccess
func (*EntitlementMapAccess) Domain ¶
func (e *EntitlementMapAccess) Domain() EntitlementSetAccess
func (*EntitlementMapAccess) Equal ¶
func (e *EntitlementMapAccess) Equal(other Access) bool
func (*EntitlementMapAccess) ID ¶
func (e *EntitlementMapAccess) ID() TypeID
func (*EntitlementMapAccess) Image ¶
func (e *EntitlementMapAccess) Image(gauge common.MemoryGauge, inputs Access, pos ast.HasPosition) (Access, error)
Image applies all the entitlements in the `argumentAccess` to the function defined by the map in `e`, producing a new entitlement set of the image of the arguments.
func (*EntitlementMapAccess) IsPrimitiveAccess ¶
func (*EntitlementMapAccess) IsPrimitiveAccess() bool
func (*EntitlementMapAccess) PermitsAccess ¶
func (e *EntitlementMapAccess) PermitsAccess(other Access) bool
func (*EntitlementMapAccess) QualifiedKeyword ¶
func (e *EntitlementMapAccess) QualifiedKeyword() string
func (*EntitlementMapAccess) QualifiedString ¶
func (e *EntitlementMapAccess) QualifiedString() string
func (*EntitlementMapAccess) String ¶
func (e *EntitlementMapAccess) String() string
type EntitlementMapType ¶
type EntitlementMapType struct {
Location common.Location
Identifier string
Relations []EntitlementRelation
// Whether this map type includes the special identity relation,
// which maps every input to itself. The `Identity` mapping itself
// is defined as the empty map type that includes the identity relation
IncludesIdentity bool
// contains filtered or unexported fields
}
func NewEntitlementMapType ¶
func NewEntitlementMapType( memoryGauge common.MemoryGauge, location common.Location, identifier string, ) *EntitlementMapType
func (*EntitlementMapType) CheckInstantiated ¶
func (t *EntitlementMapType) CheckInstantiated(_ ast.HasPosition, _ common.MemoryGauge, _ func(err error))
func (*EntitlementMapType) ContainFieldsOrElements ¶
func (*EntitlementMapType) ContainFieldsOrElements() bool
func (*EntitlementMapType) Equal ¶
func (t *EntitlementMapType) Equal(other Type) bool
func (*EntitlementMapType) GetContainerType ¶
func (t *EntitlementMapType) GetContainerType() Type
func (*EntitlementMapType) GetLocation ¶
func (t *EntitlementMapType) GetLocation() common.Location
func (*EntitlementMapType) GetMembers ¶
func (t *EntitlementMapType) GetMembers() map[string]MemberResolver
func (*EntitlementMapType) ID ¶
func (t *EntitlementMapType) ID() TypeID
func (*EntitlementMapType) IsComparable ¶
func (*EntitlementMapType) IsComparable() bool
func (*EntitlementMapType) IsEquatable ¶
func (*EntitlementMapType) IsEquatable() bool
func (*EntitlementMapType) IsExportable ¶
func (*EntitlementMapType) IsExportable(_ map[*Member]bool) bool
func (*EntitlementMapType) IsImportable ¶
func (*EntitlementMapType) IsImportable(_ map[*Member]bool) bool
func (*EntitlementMapType) IsInvalidType ¶
func (*EntitlementMapType) IsInvalidType() bool
func (*EntitlementMapType) IsOrContainsReferenceType ¶
func (*EntitlementMapType) IsOrContainsReferenceType() bool
func (*EntitlementMapType) IsPrimitiveType ¶
func (*EntitlementMapType) IsPrimitiveType() bool
func (*EntitlementMapType) IsResourceType ¶
func (*EntitlementMapType) IsResourceType() bool
func (*EntitlementMapType) IsStorable ¶
func (*EntitlementMapType) IsStorable(_ map[*Member]bool) bool
func (*EntitlementMapType) IsType ¶
func (*EntitlementMapType) IsType()
func (*EntitlementMapType) Precedence ¶ added in v1.9.4
func (*EntitlementMapType) Precedence() ast.TypePrecedence
func (*EntitlementMapType) QualifiedIdentifier ¶
func (t *EntitlementMapType) QualifiedIdentifier() string
func (*EntitlementMapType) QualifiedString ¶
func (t *EntitlementMapType) QualifiedString() string
func (*EntitlementMapType) Resolve ¶
func (t *EntitlementMapType) Resolve(_ *TypeParameterTypeOrderedMap) Type
func (*EntitlementMapType) Rewrite ¶ added in v1.8.12
func (t *EntitlementMapType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*EntitlementMapType) SetContainerType ¶
func (t *EntitlementMapType) SetContainerType(containerType Type)
func (*EntitlementMapType) String ¶
func (t *EntitlementMapType) String() string
func (*EntitlementMapType) Tag ¶
func (t *EntitlementMapType) Tag() TypeTag
func (*EntitlementMapType) TypeAnnotationState ¶
func (*EntitlementMapType) TypeAnnotationState() TypeAnnotationState
func (*EntitlementMapType) Unify ¶
func (*EntitlementMapType) Unify( _ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), _ common.MemoryGauge, _ ast.HasPosition, ) bool
type EntitlementOrderedSet ¶
type EntitlementOrderedSet = orderedmap.OrderedMap[*EntitlementType, struct{}]
type EntitlementRelation ¶
type EntitlementRelation struct {
Input *EntitlementType
Output *EntitlementType
}
func NewEntitlementRelation ¶
func NewEntitlementRelation( memoryGauge common.MemoryGauge, input *EntitlementType, output *EntitlementType, ) EntitlementRelation
type EntitlementSet ¶
type EntitlementSet struct {
// Entitlements is a set of entitlements
Entitlements *EntitlementOrderedSet
// Disjunctions is a set of entitlement disjunctions, keyed by disjunctionKey
Disjunctions *DisjunctionOrderedSet
// contains filtered or unexported fields
}
EntitlementSet is a set (conjunction) of entitlements and entitlement disjunctions. e.g. {entitlements: A, B; disjunctions: (C ∨ D), (E ∨ F)} This is distinct from an EntitlementSetAccess in Cadence, which is a program-level (and possibly non-minimal) approximation of this abstract set
func (*EntitlementSet) Access ¶
func (s *EntitlementSet) Access() Access
Access returns the access represented by the entitlement set. The set is minimized before the access is computed. Note that this function may over-approximate the permissions required to represent this set of entitlements as an access modifier that Cadence can use, e.g. `(A ∨ B) ∧ C` cannot be represented in Cadence and will the produce an over-approximation of `(A, B, C)`
func (*EntitlementSet) Add ¶
func (s *EntitlementSet) Add(entitlementType *EntitlementType)
Add adds an entitlement to the set.
NOTE: The resulting set is potentially not minimal: If the set contains a disjunction that contains the entitlement, then the disjunction is NOT discarded. Call Minimize to obtain a minimal set.
func (*EntitlementSet) AddDisjunction ¶
func (s *EntitlementSet) AddDisjunction(disjunction *EntitlementOrderedSet)
AddDisjunction adds an entitlement disjunction to the set. If the set already contains an entitlement of the given disjunction, then the disjunction is discarded.
func (*EntitlementSet) IsMinimallyRepresentable ¶
func (s *EntitlementSet) IsMinimallyRepresentable() bool
Returns whether this entitlement set is minimally representable in Cadence.
If true, this set can be exactly represented as a non-nested logical formula: i.e. either a single conjunction or a single disjunction If false, this set cannot be represented without nesting connective operators, and thus must be over-approximated when being represented in Cadence. As Cadence does not support nesting disjunctions and conjunctions in the same entitlement set, this function returns false when s.Entitlements and s.Disjunctions are both non-empty, or when s.Disjunctions has more than one element
func (*EntitlementSet) Merge ¶
func (s *EntitlementSet) Merge(other *EntitlementSet)
Merge merges the other entitlement set into this set. The result is the union of the entitlements and disjunctions of both sets.
The result is not necessarily minimal: For example, if s contains a disjunction d, and other contains an entitlement e that is part of d, then the result will still contain d. See Add. Call Minimize to obtain a minimal set.
func (*EntitlementSet) Minimize ¶
func (s *EntitlementSet) Minimize()
Minimize minimizes the entitlement set. It removes disjunctions that contain entitlements which are also in the entitlement set
type EntitlementSetAccess ¶
type EntitlementSetAccess struct {
Entitlements *EntitlementOrderedSet
SetKind EntitlementSetKind
// contains filtered or unexported fields
}
func NewEntitlementSetAccess ¶
func NewEntitlementSetAccess( entitlements []*EntitlementType, setKind EntitlementSetKind, ) EntitlementSetAccess
func (EntitlementSetAccess) Equal ¶
func (e EntitlementSetAccess) Equal(other Access) bool
func (EntitlementSetAccess) ID ¶
func (e EntitlementSetAccess) ID() TypeID
func (EntitlementSetAccess) IsPrimitiveAccess ¶
func (EntitlementSetAccess) IsPrimitiveAccess() bool
func (EntitlementSetAccess) PermitsAccess ¶
func (e EntitlementSetAccess) PermitsAccess(other Access) bool
func (EntitlementSetAccess) QualifiedKeyword ¶
func (e EntitlementSetAccess) QualifiedKeyword() string
func (EntitlementSetAccess) QualifiedString ¶
func (e EntitlementSetAccess) QualifiedString() string
func (EntitlementSetAccess) String ¶
func (e EntitlementSetAccess) String() string
type EntitlementSetKind ¶
type EntitlementSetKind uint8
const ( Conjunction EntitlementSetKind = iota Disjunction )
type EntitlementSupportingType ¶
type EntitlementSupportingType interface {
Type
SupportedEntitlements() *EntitlementSet
}
entitlement supporting types
type EntitlementType ¶
type EntitlementType struct {
Location common.Location
Identifier string
// contains filtered or unexported fields
}
func NewEntitlementType ¶
func NewEntitlementType(memoryGauge common.MemoryGauge, location common.Location, identifier string) *EntitlementType
func (*EntitlementType) CheckInstantiated ¶
func (t *EntitlementType) CheckInstantiated(_ ast.HasPosition, _ common.MemoryGauge, _ func(err error))
func (*EntitlementType) ContainFieldsOrElements ¶
func (*EntitlementType) ContainFieldsOrElements() bool
func (*EntitlementType) Equal ¶
func (t *EntitlementType) Equal(other Type) bool
func (*EntitlementType) GetContainerType ¶
func (t *EntitlementType) GetContainerType() Type
func (*EntitlementType) GetLocation ¶
func (t *EntitlementType) GetLocation() common.Location
func (*EntitlementType) GetMembers ¶
func (t *EntitlementType) GetMembers() map[string]MemberResolver
func (*EntitlementType) ID ¶
func (t *EntitlementType) ID() TypeID
func (*EntitlementType) IsComparable ¶
func (*EntitlementType) IsComparable() bool
func (*EntitlementType) IsEquatable ¶
func (*EntitlementType) IsEquatable() bool
func (*EntitlementType) IsExportable ¶
func (*EntitlementType) IsExportable(_ map[*Member]bool) bool
func (*EntitlementType) IsImportable ¶
func (*EntitlementType) IsImportable(_ map[*Member]bool) bool
func (*EntitlementType) IsInvalidType ¶
func (t *EntitlementType) IsInvalidType() bool
func (*EntitlementType) IsOrContainsReferenceType ¶
func (*EntitlementType) IsOrContainsReferenceType() bool
func (*EntitlementType) IsPrimitiveType ¶
func (*EntitlementType) IsPrimitiveType() bool
func (*EntitlementType) IsResourceType ¶
func (*EntitlementType) IsResourceType() bool
func (*EntitlementType) IsStorable ¶
func (*EntitlementType) IsStorable(_ map[*Member]bool) bool
func (*EntitlementType) IsType ¶
func (*EntitlementType) IsType()
func (*EntitlementType) Precedence ¶ added in v1.9.4
func (*EntitlementType) Precedence() ast.TypePrecedence
func (*EntitlementType) QualifiedIdentifier ¶
func (t *EntitlementType) QualifiedIdentifier() string
func (*EntitlementType) QualifiedString ¶
func (t *EntitlementType) QualifiedString() string
func (*EntitlementType) Resolve ¶
func (t *EntitlementType) Resolve(_ *TypeParameterTypeOrderedMap) Type
func (*EntitlementType) Rewrite ¶ added in v1.8.12
func (t *EntitlementType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*EntitlementType) SetContainerType ¶
func (t *EntitlementType) SetContainerType(containerType Type)
func (*EntitlementType) String ¶
func (t *EntitlementType) String() string
func (*EntitlementType) Tag ¶
func (t *EntitlementType) Tag() TypeTag
func (*EntitlementType) TypeAnnotationState ¶
func (*EntitlementType) TypeAnnotationState() TypeAnnotationState
func (*EntitlementType) Unify ¶
func (*EntitlementType) Unify( _ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), _ common.MemoryGauge, _ ast.HasPosition, ) bool
type ExcessiveArgumentsError ¶
func (*ExcessiveArgumentsError) DocumentationLink ¶ added in v1.7.0
func (*ExcessiveArgumentsError) DocumentationLink() string
func (*ExcessiveArgumentsError) Error ¶
func (*ExcessiveArgumentsError) Error() string
func (*ExcessiveArgumentsError) IsUserError ¶
func (*ExcessiveArgumentsError) IsUserError()
func (*ExcessiveArgumentsError) SecondaryError ¶
func (e *ExcessiveArgumentsError) SecondaryError() string
type ExpressionTypes ¶
type FieldReinitializationError ¶
FieldReinitializationError
func (*FieldReinitializationError) DocumentationLink ¶ added in v1.7.0
func (*FieldReinitializationError) DocumentationLink() string
func (*FieldReinitializationError) Error ¶
func (e *FieldReinitializationError) Error() string
func (*FieldReinitializationError) IsUserError ¶
func (*FieldReinitializationError) IsUserError()
func (*FieldReinitializationError) SecondaryError ¶ added in v1.7.0
func (*FieldReinitializationError) SecondaryError() string
type FieldTypeNotStorableError ¶
func (*FieldTypeNotStorableError) DocumentationLink ¶ added in v1.7.0
func (*FieldTypeNotStorableError) DocumentationLink() string
func (*FieldTypeNotStorableError) EndPosition ¶
func (e *FieldTypeNotStorableError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*FieldTypeNotStorableError) Error ¶
func (e *FieldTypeNotStorableError) Error() string
func (*FieldTypeNotStorableError) IsUserError ¶
func (*FieldTypeNotStorableError) IsUserError()
func (*FieldTypeNotStorableError) SecondaryError ¶
func (*FieldTypeNotStorableError) SecondaryError() string
func (*FieldTypeNotStorableError) StartPosition ¶
func (e *FieldTypeNotStorableError) StartPosition() ast.Position
type FieldUninitializedError ¶
FieldUninitializedError
func (*FieldUninitializedError) DocumentationLink ¶ added in v1.7.0
func (*FieldUninitializedError) DocumentationLink() string
func (*FieldUninitializedError) EndPosition ¶
func (e *FieldUninitializedError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*FieldUninitializedError) Error ¶
func (e *FieldUninitializedError) Error() string
func (*FieldUninitializedError) IsUserError ¶
func (*FieldUninitializedError) IsUserError()
func (*FieldUninitializedError) SecondaryError ¶
func (*FieldUninitializedError) SecondaryError() string
func (*FieldUninitializedError) StartPosition ¶
func (e *FieldUninitializedError) StartPosition() ast.Position
type FixedPointNumericType ¶
type FixedPointNumericType struct {
// contains filtered or unexported fields
}
FixedPointNumericType represents all the types in the fixed-point range.
func NewFixedPointNumericType ¶
func NewFixedPointNumericType(typeName string) *FixedPointNumericType
func (*FixedPointNumericType) AsSuperType ¶
func (t *FixedPointNumericType) AsSuperType() *FixedPointNumericType
func (*FixedPointNumericType) CheckInstantiated ¶
func (*FixedPointNumericType) CheckInstantiated(_ ast.HasPosition, _ common.MemoryGauge, _ func(err error))
func (*FixedPointNumericType) ContainFieldsOrElements ¶
func (t *FixedPointNumericType) ContainFieldsOrElements() bool
func (*FixedPointNumericType) Equal ¶
func (t *FixedPointNumericType) Equal(other Type) bool
func (*FixedPointNumericType) GetMembers ¶
func (t *FixedPointNumericType) GetMembers() map[string]MemberResolver
func (*FixedPointNumericType) ID ¶
func (t *FixedPointNumericType) ID() TypeID
func (*FixedPointNumericType) IsComparable ¶
func (t *FixedPointNumericType) IsComparable() bool
func (*FixedPointNumericType) IsEquatable ¶
func (*FixedPointNumericType) IsEquatable() bool
func (*FixedPointNumericType) IsExportable ¶
func (*FixedPointNumericType) IsExportable(_ map[*Member]bool) bool
func (*FixedPointNumericType) IsImportable ¶
func (t *FixedPointNumericType) IsImportable(_ map[*Member]bool) bool
func (*FixedPointNumericType) IsInvalidType ¶
func (*FixedPointNumericType) IsInvalidType() bool
func (*FixedPointNumericType) IsOrContainsReferenceType ¶
func (*FixedPointNumericType) IsOrContainsReferenceType() bool
func (*FixedPointNumericType) IsPrimitiveType ¶
func (*FixedPointNumericType) IsPrimitiveType() bool
func (*FixedPointNumericType) IsResourceType ¶
func (*FixedPointNumericType) IsResourceType() bool
func (*FixedPointNumericType) IsStorable ¶
func (*FixedPointNumericType) IsStorable(_ map[*Member]bool) bool
func (*FixedPointNumericType) IsSuperType ¶
func (t *FixedPointNumericType) IsSuperType() bool
func (*FixedPointNumericType) IsType ¶
func (*FixedPointNumericType) IsType()
func (*FixedPointNumericType) MaxFractional ¶
func (t *FixedPointNumericType) MaxFractional() *big.Int
func (*FixedPointNumericType) MaxInt ¶
func (t *FixedPointNumericType) MaxInt() *big.Int
func (*FixedPointNumericType) MinFractional ¶
func (t *FixedPointNumericType) MinFractional() *big.Int
func (*FixedPointNumericType) MinInt ¶
func (t *FixedPointNumericType) MinInt() *big.Int
func (*FixedPointNumericType) Precedence ¶ added in v1.9.4
func (*FixedPointNumericType) Precedence() ast.TypePrecedence
func (*FixedPointNumericType) QualifiedString ¶
func (t *FixedPointNumericType) QualifiedString() string
func (*FixedPointNumericType) Resolve ¶
func (t *FixedPointNumericType) Resolve(_ *TypeParameterTypeOrderedMap) Type
func (*FixedPointNumericType) Rewrite ¶ added in v1.8.12
func (t *FixedPointNumericType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*FixedPointNumericType) Scale ¶
func (t *FixedPointNumericType) Scale() uint
func (*FixedPointNumericType) String ¶
func (t *FixedPointNumericType) String() string
func (*FixedPointNumericType) SupportsSaturatingAdd ¶
func (t *FixedPointNumericType) SupportsSaturatingAdd() bool
func (*FixedPointNumericType) SupportsSaturatingDivide ¶
func (t *FixedPointNumericType) SupportsSaturatingDivide() bool
func (*FixedPointNumericType) SupportsSaturatingMultiply ¶
func (t *FixedPointNumericType) SupportsSaturatingMultiply() bool
func (*FixedPointNumericType) SupportsSaturatingSubtract ¶
func (t *FixedPointNumericType) SupportsSaturatingSubtract() bool
func (*FixedPointNumericType) Tag ¶
func (t *FixedPointNumericType) Tag() TypeTag
func (*FixedPointNumericType) TypeAnnotationState ¶
func (*FixedPointNumericType) TypeAnnotationState() TypeAnnotationState
func (*FixedPointNumericType) Unify ¶
func (*FixedPointNumericType) Unify( _ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), _ common.MemoryGauge, _ ast.HasPosition, ) bool
func (*FixedPointNumericType) WithFractionalRange ¶
func (t *FixedPointNumericType) WithFractionalRange( minFractional *big.Int, maxFractional *big.Int, ) *FixedPointNumericType
func (*FixedPointNumericType) WithIntRange ¶
func (t *FixedPointNumericType) WithIntRange(minInt *big.Int, maxInt *big.Int) *FixedPointNumericType
func (*FixedPointNumericType) WithSaturatingFunctions ¶
func (t *FixedPointNumericType) WithSaturatingFunctions(saturatingArithmetic SaturatingArithmeticSupport) *FixedPointNumericType
func (*FixedPointNumericType) WithScale ¶
func (t *FixedPointNumericType) WithScale(scale uint) *FixedPointNumericType
func (*FixedPointNumericType) WithTag ¶
func (t *FixedPointNumericType) WithTag(tag TypeTag) *FixedPointNumericType
type ForStatementTypes ¶
type FractionalRangedType ¶
type FunctionActivation ¶
type FunctionActivation struct {
ReturnType Type
ReturnInfo *ReturnInfo
InitializationInfo *InitializationInfo
Loops int
Switches int
ValueActivationDepth int
}
func (FunctionActivation) InLoop ¶
func (a FunctionActivation) InLoop() bool
func (FunctionActivation) InSwitch ¶
func (a FunctionActivation) InSwitch() bool
func (*FunctionActivation) WithLoop ¶
func (a *FunctionActivation) WithLoop(f func())
func (*FunctionActivation) WithSwitch ¶
func (a *FunctionActivation) WithSwitch(f func())
type FunctionActivations ¶
type FunctionActivations struct {
// contains filtered or unexported fields
}
func (*FunctionActivations) Current ¶
func (a *FunctionActivations) Current() *FunctionActivation
func (*FunctionActivations) EnterFunction ¶
func (a *FunctionActivations) EnterFunction(functionType *FunctionType, valueActivationDepth int) *FunctionActivation
func (*FunctionActivations) IsLocal ¶
func (a *FunctionActivations) IsLocal() bool
func (*FunctionActivations) LeaveFunction ¶
func (a *FunctionActivations) LeaveFunction()
func (*FunctionActivations) WithFunction ¶
func (a *FunctionActivations) WithFunction( functionType *FunctionType, valueActivationDepth int, f func(activation *FunctionActivation), )
type FunctionExpressionInConditionError ¶
func (*FunctionExpressionInConditionError) DocumentationLink ¶ added in v1.7.0
func (*FunctionExpressionInConditionError) DocumentationLink() string
func (*FunctionExpressionInConditionError) Error ¶
func (*FunctionExpressionInConditionError) Error() string
func (*FunctionExpressionInConditionError) IsUserError ¶
func (*FunctionExpressionInConditionError) IsUserError()
func (*FunctionExpressionInConditionError) SecondaryError ¶ added in v1.7.0
func (*FunctionExpressionInConditionError) SecondaryError() string
type FunctionInvocation ¶
type FunctionInvocation struct {
FunctionType *FunctionType
TrailingSeparatorPositions []ast.Position
StartPos Position
EndPos Position
}
type FunctionInvocations ¶
type FunctionInvocations struct {
// contains filtered or unexported fields
}
func NewFunctionInvocations ¶
func NewFunctionInvocations() *FunctionInvocations
func (*FunctionInvocations) Find ¶
func (f *FunctionInvocations) Find(pos Position) *FunctionInvocation
func (*FunctionInvocations) Put ¶
func (f *FunctionInvocations) Put( startPos, endPos ast.Position, functionType *FunctionType, trailingSeparatorPositions []ast.Position, )
type FunctionPurity ¶
type FunctionPurity int
const ( FunctionPurityImpure FunctionPurity = iota FunctionPurityView )
func PurityFromAnnotation ¶
func PurityFromAnnotation(purity ast.FunctionPurity) FunctionPurity
func (FunctionPurity) String ¶
func (p FunctionPurity) String() string
type FunctionType ¶
type FunctionType struct {
Purity FunctionPurity
ReturnTypeAnnotation TypeAnnotation
Arity *Arity
ArgumentExpressionsCheck ArgumentExpressionsCheck
TypeArgumentsCheck TypeArgumentsCheck
Members *StringMemberOrderedMap
TypeParameters []*TypeParameter
Parameters []Parameter
IsConstructor bool
// TypeFunctionType indicates that this function type is a "type function",
// a function that can have members (in a sense, "static" fields and functions).
// This is used for built-in functions like `Int`, `UInt8`, `String`, etc.
// which have members like `Int.fromString`, `UInt8.min`, `String.join`, etc.
TypeFunctionType Type
// contains filtered or unexported fields
}
func ArrayAppendAllFunctionType ¶
func ArrayAppendAllFunctionType(arrayType Type) *FunctionType
func ArrayAppendFunctionType ¶
func ArrayAppendFunctionType(elementType Type) *FunctionType
func ArrayConcatFunctionType ¶
func ArrayConcatFunctionType(arrayType Type) *FunctionType
func ArrayContainsFunctionType ¶
func ArrayContainsFunctionType(elementType Type) *FunctionType
func ArrayFilterFunctionType ¶
func ArrayFilterFunctionType(memoryGauge common.MemoryGauge, elementType Type) *FunctionType
func ArrayFirstIndexFunctionType ¶
func ArrayFirstIndexFunctionType(elementType Type) *FunctionType
func ArrayInsertFunctionType ¶
func ArrayInsertFunctionType(elementType Type) *FunctionType
func ArrayMapFunctionType ¶
func ArrayMapFunctionType(memoryGauge common.MemoryGauge, arrayType ArrayType) *FunctionType
func ArrayRemoveFirstFunctionType ¶
func ArrayRemoveFirstFunctionType(elementType Type) *FunctionType
func ArrayRemoveFunctionType ¶
func ArrayRemoveFunctionType(elementType Type) *FunctionType
func ArrayRemoveLastFunctionType ¶
func ArrayRemoveLastFunctionType(elementType Type) *FunctionType
func ArrayReverseFunctionType ¶
func ArrayReverseFunctionType(arrayType ArrayType) *FunctionType
func ArraySliceFunctionType ¶
func ArraySliceFunctionType(elementType Type) *FunctionType
func ArrayToConstantSizedFunctionType ¶
func ArrayToConstantSizedFunctionType(elementType Type) *FunctionType
func ArrayToVariableSizedFunctionType ¶
func ArrayToVariableSizedFunctionType(elementType Type) *FunctionType
func CapabilityTypeBorrowFunctionType ¶
func CapabilityTypeBorrowFunctionType(borrowType Type) *FunctionType
func CapabilityTypeCheckFunctionType ¶
func CapabilityTypeCheckFunctionType(borrowType Type) *FunctionType
func CompositeForEachAttachmentFunctionType ¶
func CompositeForEachAttachmentFunctionType(t common.CompositeKind) *FunctionType
func CompositeLikeConstructorType ¶
func CompositeLikeConstructorType( elaboration *Elaboration, compositeDeclaration ast.CompositeLikeDeclaration, compositeType *CompositeType, ) ( constructorFunctionType *FunctionType, argumentLabels []string, )
func DictionaryContainsKeyFunctionType ¶
func DictionaryContainsKeyFunctionType(t *DictionaryType) *FunctionType
func DictionaryForEachKeyFunctionType ¶
func DictionaryForEachKeyFunctionType(t *DictionaryType) *FunctionType
func DictionaryInsertFunctionType ¶
func DictionaryInsertFunctionType(t *DictionaryType) *FunctionType
func DictionaryRemoveFunctionType ¶
func DictionaryRemoveFunctionType(t *DictionaryType) *FunctionType
func EnumLookupFunctionType ¶ added in v1.6.2
func EnumLookupFunctionType(compositeType *CompositeType) *FunctionType
func FromBigEndianBytesFunctionType ¶
func FromBigEndianBytesFunctionType(ty Type) *FunctionType
func FromStringFunctionType ¶
func FromStringFunctionType(ty Type) *FunctionType
func InclusiveRangeContainsFunctionType ¶
func InclusiveRangeContainsFunctionType(elementType Type) *FunctionType
func NewSimpleFunctionType ¶
func NewSimpleFunctionType( purity FunctionPurity, parameters []Parameter, returnTypeAnnotation TypeAnnotation, ) *FunctionType
func NumberConversionFunctionType ¶
func NumberConversionFunctionType(numberType Type) *FunctionType
func OptionalTypeMapFunctionType ¶
func OptionalTypeMapFunctionType(typ Type) *FunctionType
func (*FunctionType) ArgumentLabels ¶
func (t *FunctionType) ArgumentLabels() (argumentLabels []string)
func (*FunctionType) ArityEqual ¶ added in v1.3.4
func (t *FunctionType) ArityEqual(other *Arity) bool
func (*FunctionType) CheckInstantiated ¶
func (t *FunctionType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
func (*FunctionType) ContainFieldsOrElements ¶
func (*FunctionType) ContainFieldsOrElements() bool
func (*FunctionType) Equal ¶
func (t *FunctionType) Equal(other Type) bool
NOTE: parameter names and argument labels are intentionally *not* considered!
func (*FunctionType) GetMembers ¶
func (t *FunctionType) GetMembers() map[string]MemberResolver
func (*FunctionType) HasSameArgumentLabels ¶
func (t *FunctionType) HasSameArgumentLabels(other *FunctionType) bool
func (*FunctionType) ID ¶
func (t *FunctionType) ID() TypeID
NOTE: parameter names and argument labels are *not* part of the ID!
func (*FunctionType) IsComparable ¶
func (*FunctionType) IsComparable() bool
func (*FunctionType) IsEquatable ¶
func (*FunctionType) IsEquatable() bool
func (*FunctionType) IsExportable ¶
func (t *FunctionType) IsExportable(_ map[*Member]bool) bool
func (*FunctionType) IsImportable ¶
func (t *FunctionType) IsImportable(_ map[*Member]bool) bool
func (*FunctionType) IsInvalidType ¶
func (t *FunctionType) IsInvalidType() bool
func (*FunctionType) IsOrContainsReferenceType ¶
func (*FunctionType) IsOrContainsReferenceType() bool
func (*FunctionType) IsPrimitiveType ¶
func (t *FunctionType) IsPrimitiveType() bool
func (*FunctionType) IsResourceType ¶
func (*FunctionType) IsResourceType() bool
func (*FunctionType) IsStorable ¶
func (t *FunctionType) IsStorable(_ map[*Member]bool) bool
func (*FunctionType) IsType ¶
func (*FunctionType) IsType()
func (*FunctionType) NamedQualifiedString ¶
func (t *FunctionType) NamedQualifiedString(functionName string) string
func (*FunctionType) ParameterTypes ¶
func (t *FunctionType) ParameterTypes() []Type
func (*FunctionType) Precedence ¶ added in v1.9.4
func (*FunctionType) Precedence() ast.TypePrecedence
func (*FunctionType) QualifiedString ¶
func (t *FunctionType) QualifiedString() string
func (*FunctionType) Resolve ¶
func (t *FunctionType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
func (*FunctionType) Rewrite ¶ added in v1.8.12
func (t *FunctionType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*FunctionType) String ¶
func (t *FunctionType) String() string
func (*FunctionType) Tag ¶
func (t *FunctionType) Tag() TypeTag
func (*FunctionType) TypeAnnotationState ¶
func (t *FunctionType) TypeAnnotationState() TypeAnnotationState
func (*FunctionType) Unify ¶
func (t *FunctionType) Unify( other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), memoryGauge common.MemoryGauge, outerRange ast.HasPosition, ) ( result bool, )
type GenericType ¶
type GenericType struct {
TypeParameter *TypeParameter
}
GenericType
func (*GenericType) CheckInstantiated ¶
func (t *GenericType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
func (*GenericType) ContainFieldsOrElements ¶
func (t *GenericType) ContainFieldsOrElements() bool
func (*GenericType) Equal ¶
func (t *GenericType) Equal(other Type) bool
func (*GenericType) GetMembers ¶
func (t *GenericType) GetMembers() map[string]MemberResolver
func (*GenericType) ID ¶
func (t *GenericType) ID() TypeID
func (*GenericType) IsComparable ¶
func (*GenericType) IsComparable() bool
func (*GenericType) IsEquatable ¶
func (*GenericType) IsEquatable() bool
func (*GenericType) IsExportable ¶
func (*GenericType) IsExportable(_ map[*Member]bool) bool
func (*GenericType) IsImportable ¶
func (t *GenericType) IsImportable(_ map[*Member]bool) bool
func (*GenericType) IsInvalidType ¶
func (*GenericType) IsInvalidType() bool
func (*GenericType) IsOrContainsReferenceType ¶
func (*GenericType) IsOrContainsReferenceType() bool
func (*GenericType) IsPrimitiveType ¶
func (*GenericType) IsPrimitiveType() bool
func (*GenericType) IsResourceType ¶
func (*GenericType) IsResourceType() bool
func (*GenericType) IsStorable ¶
func (*GenericType) IsStorable(_ map[*Member]bool) bool
func (*GenericType) IsType ¶
func (*GenericType) IsType()
func (*GenericType) Precedence ¶ added in v1.9.4
func (*GenericType) Precedence() ast.TypePrecedence
func (*GenericType) QualifiedString ¶
func (t *GenericType) QualifiedString() string
func (*GenericType) Resolve ¶
func (t *GenericType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
func (*GenericType) Rewrite ¶ added in v1.8.12
func (t *GenericType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*GenericType) String ¶
func (t *GenericType) String() string
func (*GenericType) Tag ¶
func (t *GenericType) Tag() TypeTag
func (*GenericType) TypeAnnotationState ¶
func (*GenericType) TypeAnnotationState() TypeAnnotationState
func (*GenericType) Unify ¶
func (t *GenericType) Unify( other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), memoryGauge common.MemoryGauge, outerRange ast.HasPosition, ) bool
type HashAlgorithm ¶
type HashAlgorithm uint8
const ( HashAlgorithmUnknown HashAlgorithm = iota HashAlgorithmSHA2_256 HashAlgorithmSHA2_384 HashAlgorithmSHA3_256 HashAlgorithmSHA3_384 HashAlgorithmKMAC128_BLS_BLS12_381 HashAlgorithmKECCAK_256 )
NOTE: only add new algorithms, do *NOT* change existing items, reuse raw values for other items, swap the order, etc.
Existing stored values use these raw values and should not change
IMPORTANT: update HashAlgorithms AND HashAlgorithm.IsValid
func (HashAlgorithm) DocString ¶
func (algo HashAlgorithm) DocString() string
func (HashAlgorithm) IsValid ¶
func (algo HashAlgorithm) IsValid() bool
func (HashAlgorithm) Name ¶
func (algo HashAlgorithm) Name() string
func (HashAlgorithm) RawValue ¶
func (algo HashAlgorithm) RawValue() uint8
func (HashAlgorithm) String ¶
func (i HashAlgorithm) String() string
type Import ¶
type Import interface {
AllValueElements() *StringImportElementOrderedMap
AllTypeElements() *StringImportElementOrderedMap
IsChecking() bool
}
type ImportElement ¶
type ImportElement struct {
Type Type
ArgumentLabels []string
DeclarationKind common.DeclarationKind
Access Access
}
ImportElement
type ImportHandlerFunc ¶
type ImportedProgramError ¶
func (*ImportedProgramError) ChildErrors ¶
func (e *ImportedProgramError) ChildErrors() []error
func (*ImportedProgramError) DocumentationLink ¶ added in v1.7.0
func (*ImportedProgramError) DocumentationLink() string
func (*ImportedProgramError) Error ¶
func (e *ImportedProgramError) Error() string
func (*ImportedProgramError) ImportLocation ¶
func (e *ImportedProgramError) ImportLocation() common.Location
func (*ImportedProgramError) IsUserError ¶
func (*ImportedProgramError) IsUserError()
func (*ImportedProgramError) SecondaryError ¶ added in v1.7.0
func (e *ImportedProgramError) SecondaryError() string
func (*ImportedProgramError) Unwrap ¶
func (e *ImportedProgramError) Unwrap() error
type InclusiveRangeType ¶
type InclusiveRangeType struct {
MemberType Type
// contains filtered or unexported fields
}
func NewInclusiveRangeType ¶
func NewInclusiveRangeType(memoryGauge common.MemoryGauge, elementType Type) *InclusiveRangeType
func (*InclusiveRangeType) AllowsValueIndexingAssignment ¶
func (*InclusiveRangeType) AllowsValueIndexingAssignment() bool
func (*InclusiveRangeType) BaseType ¶
func (t *InclusiveRangeType) BaseType() Type
func (*InclusiveRangeType) CheckInstantiated ¶
func (t *InclusiveRangeType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
func (*InclusiveRangeType) ContainFieldsOrElements ¶
func (t *InclusiveRangeType) ContainFieldsOrElements() bool
func (*InclusiveRangeType) Equal ¶
func (t *InclusiveRangeType) Equal(other Type) bool
func (*InclusiveRangeType) GetMembers ¶
func (t *InclusiveRangeType) GetMembers() map[string]MemberResolver
func (*InclusiveRangeType) ID ¶
func (t *InclusiveRangeType) ID() TypeID
func (*InclusiveRangeType) Instantiate ¶
func (t *InclusiveRangeType) Instantiate( memoryGauge common.MemoryGauge, typeArguments []Type, astTypeArguments []*ast.TypeAnnotation, report func(err error), ) Type
func (*InclusiveRangeType) IsComparable ¶
func (*InclusiveRangeType) IsComparable() bool
func (*InclusiveRangeType) IsEquatable ¶
func (t *InclusiveRangeType) IsEquatable() bool
func (*InclusiveRangeType) IsExportable ¶
func (t *InclusiveRangeType) IsExportable(results map[*Member]bool) bool
func (*InclusiveRangeType) IsImportable ¶
func (t *InclusiveRangeType) IsImportable(results map[*Member]bool) bool
func (*InclusiveRangeType) IsInvalidType ¶
func (t *InclusiveRangeType) IsInvalidType() bool
func (*InclusiveRangeType) IsOrContainsReferenceType ¶
func (t *InclusiveRangeType) IsOrContainsReferenceType() bool
func (*InclusiveRangeType) IsPrimitiveType ¶
func (t *InclusiveRangeType) IsPrimitiveType() bool
func (*InclusiveRangeType) IsResourceType ¶
func (*InclusiveRangeType) IsResourceType() bool
func (*InclusiveRangeType) IsStorable ¶
func (*InclusiveRangeType) IsStorable(_ map[*Member]bool) bool
func (*InclusiveRangeType) IsType ¶
func (*InclusiveRangeType) IsType()
func (*InclusiveRangeType) Precedence ¶ added in v1.9.4
func (*InclusiveRangeType) Precedence() ast.TypePrecedence
func (*InclusiveRangeType) QualifiedString ¶
func (t *InclusiveRangeType) QualifiedString() string
func (*InclusiveRangeType) Resolve ¶
func (t *InclusiveRangeType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
func (*InclusiveRangeType) Rewrite ¶ added in v1.8.12
func (t *InclusiveRangeType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*InclusiveRangeType) String ¶
func (t *InclusiveRangeType) String() string
func (*InclusiveRangeType) Tag ¶
func (*InclusiveRangeType) Tag() TypeTag
func (*InclusiveRangeType) TypeAnnotationState ¶
func (t *InclusiveRangeType) TypeAnnotationState() TypeAnnotationState
func (*InclusiveRangeType) TypeArguments ¶
func (t *InclusiveRangeType) TypeArguments() []Type
func (*InclusiveRangeType) TypeParameters ¶
func (*InclusiveRangeType) TypeParameters() []*TypeParameter
func (*InclusiveRangeType) Unify ¶
func (t *InclusiveRangeType) Unify( other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), memoryGauge common.MemoryGauge, outerRange ast.HasPosition, ) bool
type IncorrectArgumentLabelError ¶
type IncorrectArgumentLabelError struct {
ExpectedArgumentLabel string
ActualArgumentLabel string
ast.Range
}
func (*IncorrectArgumentLabelError) DocumentationLink ¶ added in v1.7.0
func (*IncorrectArgumentLabelError) DocumentationLink() string
func (*IncorrectArgumentLabelError) Error ¶
func (*IncorrectArgumentLabelError) Error() string
func (*IncorrectArgumentLabelError) IsUserError ¶
func (*IncorrectArgumentLabelError) IsUserError()
func (*IncorrectArgumentLabelError) SecondaryError ¶
func (e *IncorrectArgumentLabelError) SecondaryError() string
func (*IncorrectArgumentLabelError) SuggestFixes ¶
func (e *IncorrectArgumentLabelError) SuggestFixes(code string) []errors.SuggestedFix[ast.TextEdit]
type IncorrectTransferOperationError ¶
type IncorrectTransferOperationError struct {
ActualOperation ast.TransferOperation
ExpectedOperation ast.TransferOperation
ast.Range
}
func (*IncorrectTransferOperationError) DocumentationLink ¶ added in v1.7.0
func (*IncorrectTransferOperationError) DocumentationLink() string
func (*IncorrectTransferOperationError) Error ¶
func (*IncorrectTransferOperationError) Error() string
func (*IncorrectTransferOperationError) IsUserError ¶
func (*IncorrectTransferOperationError) IsUserError()
func (*IncorrectTransferOperationError) SecondaryError ¶
func (e *IncorrectTransferOperationError) SecondaryError() string
func (*IncorrectTransferOperationError) SuggestFixes ¶ added in v1.7.0
func (e *IncorrectTransferOperationError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
type IndexExpressionTypes ¶
type IndexExpressionTypes struct {
IndexedType ValueIndexableType
IndexingType Type
ResultType Type
ReturnReference bool
}
type InitializationInfo ¶
type InitializationInfo struct {
ContainerType Type
FieldMembers *MemberFieldDeclarationOrderedMap
InitializedFieldMembers *persistent.OrderedSet[*Member]
}
func NewInitializationInfo ¶
func NewInitializationInfo( containerType Type, fieldMembers *MemberFieldDeclarationOrderedMap, ) *InitializationInfo
func (*InitializationInfo) InitializationComplete ¶
func (info *InitializationInfo) InitializationComplete() bool
InitializationComplete returns true if all fields of the container were initialized, false if some fields are uninitialized
type InitializerMismatch ¶
type InitializerMismatch struct {
CompositePurity FunctionPurity
InterfacePurity FunctionPurity
CompositeParameters []Parameter
InterfaceParameters []Parameter
}
type InsufficientArgumentsError ¶
func (*InsufficientArgumentsError) DocumentationLink ¶ added in v1.7.0
func (*InsufficientArgumentsError) DocumentationLink() string
func (*InsufficientArgumentsError) Error ¶
func (*InsufficientArgumentsError) Error() string
func (*InsufficientArgumentsError) IsUserError ¶
func (*InsufficientArgumentsError) IsUserError()
func (*InsufficientArgumentsError) SecondaryError ¶
func (e *InsufficientArgumentsError) SecondaryError() string
type IntegerRangedType ¶
type InterfaceMemberConflictError ¶
type InterfaceMemberConflictError struct {
InterfaceType *InterfaceType
ConflictingInterfaceType *InterfaceType
MemberName string
MemberKind common.DeclarationKind
ConflictingMemberKind common.DeclarationKind
ast.Range
}
InterfaceMemberConflictError
func (*InterfaceMemberConflictError) DocumentationLink ¶ added in v1.7.0
func (*InterfaceMemberConflictError) DocumentationLink() string
func (*InterfaceMemberConflictError) Error ¶
func (e *InterfaceMemberConflictError) Error() string
func (*InterfaceMemberConflictError) IsUserError ¶
func (*InterfaceMemberConflictError) IsUserError()
func (*InterfaceMemberConflictError) SecondaryError ¶ added in v1.7.0
func (*InterfaceMemberConflictError) SecondaryError() string
type InterfaceSet ¶
type InterfaceSet orderedmap.OrderedMap[*InterfaceType, struct{}]
func NewInterfaceSet ¶
func NewInterfaceSet() *InterfaceSet
func (*InterfaceSet) Add ¶
func (s *InterfaceSet) Add(interfaceType *InterfaceType)
func (InterfaceSet) Contains ¶
func (s InterfaceSet) Contains(interfaceType *InterfaceType) bool
func (InterfaceSet) ForEach ¶
func (s InterfaceSet) ForEach(f func(*InterfaceType))
func (InterfaceSet) IsSubsetOf ¶
func (s InterfaceSet) IsSubsetOf(other *InterfaceSet) bool
func (InterfaceSet) Len ¶
func (s InterfaceSet) Len() int
type InterfaceType ¶
type InterfaceType struct {
Location common.Location
Members *StringMemberOrderedMap
NestedTypes *StringTypeOrderedMap
Identifier string
Fields []string
InitializerParameters []Parameter
CompositeKind common.CompositeKind
InitializerPurity FunctionPurity
ExplicitInterfaceConformances []*InterfaceType
DefaultDestroyEvent *CompositeType
// contains filtered or unexported fields
}
func (*InterfaceType) CheckInstantiated ¶
func (t *InterfaceType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
func (*InterfaceType) ContainFieldsOrElements ¶
func (*InterfaceType) ContainFieldsOrElements() bool
func (*InterfaceType) EffectiveInterfaceConformanceSet ¶
func (t *InterfaceType) EffectiveInterfaceConformanceSet() *InterfaceSet
func (*InterfaceType) EffectiveInterfaceConformances ¶
func (t *InterfaceType) EffectiveInterfaceConformances() []Conformance
func (*InterfaceType) Equal ¶
func (t *InterfaceType) Equal(other Type) bool
func (*InterfaceType) FieldPosition ¶
func (t *InterfaceType) FieldPosition(name string, declaration *ast.InterfaceDeclaration) ast.Position
func (*InterfaceType) GetCompositeKind ¶
func (t *InterfaceType) GetCompositeKind() common.CompositeKind
func (*InterfaceType) GetContainerType ¶
func (t *InterfaceType) GetContainerType() Type
func (*InterfaceType) GetIdentifier ¶ added in v1.4.0
func (t *InterfaceType) GetIdentifier() string
func (*InterfaceType) GetLocation ¶
func (t *InterfaceType) GetLocation() common.Location
func (*InterfaceType) GetMembers ¶
func (t *InterfaceType) GetMembers() map[string]MemberResolver
func (*InterfaceType) GetNestedTypes ¶
func (t *InterfaceType) GetNestedTypes() *StringTypeOrderedMap
func (*InterfaceType) ID ¶
func (t *InterfaceType) ID() TypeID
func (*InterfaceType) IsComparable ¶
func (*InterfaceType) IsComparable() bool
func (*InterfaceType) IsContainerType ¶
func (t *InterfaceType) IsContainerType() bool
func (*InterfaceType) IsEquatable ¶
func (*InterfaceType) IsEquatable() bool
func (*InterfaceType) IsExportable ¶
func (t *InterfaceType) IsExportable(results map[*Member]bool) bool
func (*InterfaceType) IsImportable ¶
func (t *InterfaceType) IsImportable(results map[*Member]bool) bool
func (*InterfaceType) IsInvalidType ¶
func (*InterfaceType) IsInvalidType() bool
func (*InterfaceType) IsOrContainsReferenceType ¶
func (*InterfaceType) IsOrContainsReferenceType() bool
func (*InterfaceType) IsPrimitiveType ¶
func (*InterfaceType) IsPrimitiveType() bool
func (*InterfaceType) IsResourceType ¶
func (t *InterfaceType) IsResourceType() bool
func (*InterfaceType) IsStorable ¶
func (t *InterfaceType) IsStorable(results map[*Member]bool) bool
func (*InterfaceType) IsType ¶
func (*InterfaceType) IsType()
func (*InterfaceType) MemberMap ¶
func (t *InterfaceType) MemberMap() *StringMemberOrderedMap
func (*InterfaceType) Precedence ¶ added in v1.9.4
func (*InterfaceType) Precedence() ast.TypePrecedence
func (*InterfaceType) QualifiedIdentifier ¶
func (t *InterfaceType) QualifiedIdentifier() string
func (*InterfaceType) QualifiedString ¶
func (t *InterfaceType) QualifiedString() string
func (*InterfaceType) Resolve ¶
func (t *InterfaceType) Resolve(_ *TypeParameterTypeOrderedMap) Type
func (*InterfaceType) Rewrite ¶ added in v1.8.12
func (t *InterfaceType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*InterfaceType) SetContainerType ¶
func (t *InterfaceType) SetContainerType(containerType Type)
func (*InterfaceType) String ¶
func (t *InterfaceType) String() string
func (*InterfaceType) SupportedEntitlements ¶
func (t *InterfaceType) SupportedEntitlements() *EntitlementSet
func (*InterfaceType) Tag ¶
func (t *InterfaceType) Tag() TypeTag
func (*InterfaceType) TypeAnnotationState ¶
func (*InterfaceType) TypeAnnotationState() TypeAnnotationState
func (*InterfaceType) Unify ¶
func (*InterfaceType) Unify( _ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), _ common.MemoryGauge, _ ast.HasPosition, ) bool
type IntersectionCompositeKindMismatchError ¶
type IntersectionCompositeKindMismatchError struct {
CompositeKind common.CompositeKind
PreviousCompositeKind common.CompositeKind
ast.Range
}
func (*IntersectionCompositeKindMismatchError) DocumentationLink ¶ added in v1.7.0
func (*IntersectionCompositeKindMismatchError) DocumentationLink() string
func (*IntersectionCompositeKindMismatchError) Error ¶
func (*IntersectionCompositeKindMismatchError) Error() string
func (*IntersectionCompositeKindMismatchError) IsUserError ¶
func (*IntersectionCompositeKindMismatchError) IsUserError()
func (*IntersectionCompositeKindMismatchError) SecondaryError ¶ added in v1.7.0
func (e *IntersectionCompositeKindMismatchError) SecondaryError() string
type IntersectionMemberClashError ¶
type IntersectionMemberClashError struct {
RedeclaringType *InterfaceType
OriginalDeclaringType *InterfaceType
Name string
ast.Range
}
func (*IntersectionMemberClashError) DocumentationLink ¶ added in v1.7.0
func (*IntersectionMemberClashError) DocumentationLink() string
func (*IntersectionMemberClashError) Error ¶
func (e *IntersectionMemberClashError) Error() string
func (*IntersectionMemberClashError) IsUserError ¶
func (*IntersectionMemberClashError) IsUserError()
func (*IntersectionMemberClashError) SecondaryError ¶ added in v1.7.0
func (e *IntersectionMemberClashError) SecondaryError() string
type IntersectionType ¶
type IntersectionType struct {
Types []*InterfaceType
// Deprecated
LegacyType Type
// contains filtered or unexported fields
}
func NewIntersectionType ¶
func NewIntersectionType(memoryGauge common.MemoryGauge, legacyType Type, types []*InterfaceType) *IntersectionType
TODO: remove `legacyType` once all uses of it are removed
func (*IntersectionType) CheckInstantiated ¶
func (t *IntersectionType) CheckInstantiated(_ ast.HasPosition, _ common.MemoryGauge, _ func(err error))
func (*IntersectionType) ContainFieldsOrElements ¶
func (*IntersectionType) ContainFieldsOrElements() bool
func (*IntersectionType) EffectiveIntersectionSet ¶
func (t *IntersectionType) EffectiveIntersectionSet() *InterfaceSet
func (*IntersectionType) Equal ¶
func (t *IntersectionType) Equal(other Type) bool
func (*IntersectionType) GetMembers ¶
func (t *IntersectionType) GetMembers() map[string]MemberResolver
func (*IntersectionType) ID ¶
func (t *IntersectionType) ID() TypeID
func (*IntersectionType) IsComparable ¶
func (t *IntersectionType) IsComparable() bool
func (*IntersectionType) IsEquatable ¶
func (*IntersectionType) IsEquatable() bool
func (*IntersectionType) IsExportable ¶
func (t *IntersectionType) IsExportable(results map[*Member]bool) bool
func (*IntersectionType) IsImportable ¶
func (t *IntersectionType) IsImportable(results map[*Member]bool) bool
func (*IntersectionType) IsInvalidType ¶
func (t *IntersectionType) IsInvalidType() bool
func (*IntersectionType) IsOrContainsReferenceType ¶
func (t *IntersectionType) IsOrContainsReferenceType() bool
func (*IntersectionType) IsPrimitiveType ¶
func (*IntersectionType) IsPrimitiveType() bool
func (*IntersectionType) IsResourceType ¶
func (t *IntersectionType) IsResourceType() bool
func (*IntersectionType) IsStorable ¶
func (t *IntersectionType) IsStorable(results map[*Member]bool) bool
func (*IntersectionType) IsType ¶
func (*IntersectionType) IsType()
func (*IntersectionType) IsValidIndexingType ¶
func (t *IntersectionType) IsValidIndexingType(ty Type) bool
func (*IntersectionType) Precedence ¶ added in v1.9.4
func (*IntersectionType) Precedence() ast.TypePrecedence
func (*IntersectionType) QualifiedString ¶
func (t *IntersectionType) QualifiedString() string
func (*IntersectionType) Resolve ¶
func (t *IntersectionType) Resolve(_ *TypeParameterTypeOrderedMap) Type
func (*IntersectionType) Rewrite ¶ added in v1.8.12
func (t *IntersectionType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*IntersectionType) String ¶
func (t *IntersectionType) String() string
func (*IntersectionType) SupportedEntitlements ¶
func (t *IntersectionType) SupportedEntitlements() *EntitlementSet
func (*IntersectionType) Tag ¶
func (t *IntersectionType) Tag() TypeTag
func (*IntersectionType) TypeAnnotationState ¶
func (*IntersectionType) TypeAnnotationState() TypeAnnotationState
func (*IntersectionType) TypeIndexingElementType ¶
func (*IntersectionType) Unify ¶
func (*IntersectionType) Unify( _ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), _ common.MemoryGauge, _ ast.HasPosition, ) bool
type InvalidAccessError ¶
type InvalidAccessError struct {
Name string
RestrictingAccess Access
PossessedAccess Access
DeclarationKind common.DeclarationKind
SuggestEntitlements bool
ast.Range
}
func (*InvalidAccessError) DocumentationLink ¶ added in v1.7.0
func (*InvalidAccessError) DocumentationLink() string
func (*InvalidAccessError) Error ¶
func (e *InvalidAccessError) Error() string
func (*InvalidAccessError) IsUserError ¶
func (*InvalidAccessError) IsUserError()
func (*InvalidAccessError) SecondaryError ¶
func (e *InvalidAccessError) SecondaryError() string
When e.PossessedAccess is a conjunctive entitlement set, we can suggest which additional entitlements it would need to be given in order to have e.RequiredAccess.
type InvalidAccessModifierError ¶
type InvalidAccessModifierError struct {
Explanation string
Pos ast.Position
DeclarationKind common.DeclarationKind
Access Access
}
func (*InvalidAccessModifierError) DocumentationLink ¶ added in v1.7.0
func (*InvalidAccessModifierError) DocumentationLink() string
func (*InvalidAccessModifierError) EndPosition ¶
func (e *InvalidAccessModifierError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*InvalidAccessModifierError) Error ¶
func (e *InvalidAccessModifierError) Error() string
func (*InvalidAccessModifierError) IsUserError ¶
func (*InvalidAccessModifierError) IsUserError()
func (*InvalidAccessModifierError) SecondaryError ¶ added in v1.7.0
func (*InvalidAccessModifierError) SecondaryError() string
func (*InvalidAccessModifierError) StartPosition ¶
func (e *InvalidAccessModifierError) StartPosition() ast.Position
type InvalidAddressLiteralError ¶
func (*InvalidAddressLiteralError) DocumentationLink ¶ added in v1.7.0
func (*InvalidAddressLiteralError) DocumentationLink() string
func (*InvalidAddressLiteralError) Error ¶
func (*InvalidAddressLiteralError) Error() string
func (*InvalidAddressLiteralError) IsUserError ¶
func (*InvalidAddressLiteralError) IsUserError()
func (*InvalidAddressLiteralError) SecondaryError ¶ added in v1.7.0
func (*InvalidAddressLiteralError) SecondaryError() string
type InvalidAssignmentAccessError ¶
type InvalidAssignmentAccessError struct {
Name string
ContainerType Type
RestrictingAccess Access
DeclarationKind common.DeclarationKind
ast.Range
}
func (*InvalidAssignmentAccessError) DocumentationLink ¶ added in v1.7.0
func (*InvalidAssignmentAccessError) DocumentationLink() string
func (*InvalidAssignmentAccessError) Error ¶
func (e *InvalidAssignmentAccessError) Error() string
func (*InvalidAssignmentAccessError) IsUserError ¶
func (*InvalidAssignmentAccessError) IsUserError()
func (*InvalidAssignmentAccessError) SecondaryError ¶
func (e *InvalidAssignmentAccessError) SecondaryError() string
type InvalidAssignmentTargetError ¶
func (*InvalidAssignmentTargetError) DocumentationLink ¶ added in v1.7.0
func (*InvalidAssignmentTargetError) DocumentationLink() string
func (*InvalidAssignmentTargetError) Error ¶
func (*InvalidAssignmentTargetError) Error() string
func (*InvalidAssignmentTargetError) IsUserError ¶
func (*InvalidAssignmentTargetError) IsUserError()
func (*InvalidAssignmentTargetError) SecondaryError ¶ added in v1.7.0
func (*InvalidAssignmentTargetError) SecondaryError() string
type InvalidAttachmentAnnotationError ¶
func (*InvalidAttachmentAnnotationError) DocumentationLink ¶ added in v1.7.0
func (*InvalidAttachmentAnnotationError) DocumentationLink() string
func (*InvalidAttachmentAnnotationError) Error ¶
func (*InvalidAttachmentAnnotationError) Error() string
func (*InvalidAttachmentAnnotationError) IsUserError ¶
func (*InvalidAttachmentAnnotationError) IsUserError()
func (*InvalidAttachmentAnnotationError) SecondaryError ¶ added in v1.7.0
func (*InvalidAttachmentAnnotationError) SecondaryError() string
type InvalidAttachmentConformancesError ¶ added in v1.2.2
func (*InvalidAttachmentConformancesError) DocumentationLink ¶ added in v1.7.0
func (*InvalidAttachmentConformancesError) DocumentationLink() string
func (*InvalidAttachmentConformancesError) Error ¶ added in v1.2.2
func (*InvalidAttachmentConformancesError) Error() string
func (*InvalidAttachmentConformancesError) IsUserError ¶ added in v1.2.2
func (*InvalidAttachmentConformancesError) IsUserError()
func (*InvalidAttachmentConformancesError) SecondaryError ¶ added in v1.7.0
func (*InvalidAttachmentConformancesError) SecondaryError() string
type InvalidAttachmentEntitlementError ¶
type InvalidAttachmentEntitlementError struct {
Attachment *CompositeType
BaseType Type
InvalidEntitlement *EntitlementType
Pos ast.Position
}
InvalidAttachmentEntitlementError
func (*InvalidAttachmentEntitlementError) DocumentationLink ¶ added in v1.7.0
func (*InvalidAttachmentEntitlementError) DocumentationLink() string
func (*InvalidAttachmentEntitlementError) EndPosition ¶
func (e *InvalidAttachmentEntitlementError) EndPosition(common.MemoryGauge) ast.Position
func (*InvalidAttachmentEntitlementError) Error ¶
func (e *InvalidAttachmentEntitlementError) Error() string
func (*InvalidAttachmentEntitlementError) IsUserError ¶
func (*InvalidAttachmentEntitlementError) IsUserError()
func (*InvalidAttachmentEntitlementError) SecondaryError ¶
func (e *InvalidAttachmentEntitlementError) SecondaryError() string
func (*InvalidAttachmentEntitlementError) StartPosition ¶
func (e *InvalidAttachmentEntitlementError) StartPosition() ast.Position
type InvalidAttachmentRemoveError ¶
InvalidAttachmentRemoveError
func (*InvalidAttachmentRemoveError) DocumentationLink ¶ added in v1.7.0
func (*InvalidAttachmentRemoveError) DocumentationLink() string
func (*InvalidAttachmentRemoveError) Error ¶
func (e *InvalidAttachmentRemoveError) Error() string
func (*InvalidAttachmentRemoveError) IsUserError ¶
func (*InvalidAttachmentRemoveError) IsUserError()
func (*InvalidAttachmentRemoveError) SecondaryError ¶ added in v1.7.0
func (e *InvalidAttachmentRemoveError) SecondaryError() string
type InvalidAttachmentUsageError ¶
func (*InvalidAttachmentUsageError) DocumentationLink ¶ added in v1.7.0
func (*InvalidAttachmentUsageError) DocumentationLink() string
func (*InvalidAttachmentUsageError) Error ¶
func (*InvalidAttachmentUsageError) Error() string
func (*InvalidAttachmentUsageError) IsUserError ¶
func (*InvalidAttachmentUsageError) IsUserError()
func (*InvalidAttachmentUsageError) SecondaryError ¶ added in v1.7.0
func (*InvalidAttachmentUsageError) SecondaryError() string
type InvalidBaseTypeError ¶
type InvalidBaseTypeError struct {
BaseType Type
Attachment *CompositeType
ast.Range
}
func (*InvalidBaseTypeError) DocumentationLink ¶ added in v1.7.0
func (*InvalidBaseTypeError) DocumentationLink() string
func (*InvalidBaseTypeError) Error ¶
func (e *InvalidBaseTypeError) Error() string
func (*InvalidBaseTypeError) IsUserError ¶
func (*InvalidBaseTypeError) IsUserError()
func (*InvalidBaseTypeError) SecondaryError ¶ added in v1.7.0
func (e *InvalidBaseTypeError) SecondaryError() string
type InvalidBinaryOperandError ¶
type InvalidBinaryOperandError struct {
ExpectedType Type
ActualType Type
ast.Range
Operation ast.Operation
Side common.OperandSide
}
func (*InvalidBinaryOperandError) DocumentationLink ¶ added in v1.7.0
func (*InvalidBinaryOperandError) DocumentationLink() string
func (*InvalidBinaryOperandError) Error ¶
func (e *InvalidBinaryOperandError) Error() string
func (*InvalidBinaryOperandError) IsUserError ¶
func (*InvalidBinaryOperandError) IsUserError()
func (*InvalidBinaryOperandError) SecondaryError ¶
func (e *InvalidBinaryOperandError) SecondaryError() string
type InvalidBinaryOperandsError ¶
type InvalidBinaryOperandsError struct {
LeftType Type
RightType Type
ast.Range
Operation ast.Operation
}
func (*InvalidBinaryOperandsError) DocumentationLink ¶ added in v1.7.0
func (*InvalidBinaryOperandsError) DocumentationLink() string
func (*InvalidBinaryOperandsError) Error ¶
func (e *InvalidBinaryOperandsError) Error() string
func (*InvalidBinaryOperandsError) IsUserError ¶
func (*InvalidBinaryOperandsError) IsUserError()
func (*InvalidBinaryOperandsError) SecondaryError ¶ added in v1.7.0
func (e *InvalidBinaryOperandsError) SecondaryError() string
type InvalidCharacterLiteralError ¶
func (*InvalidCharacterLiteralError) DocumentationLink ¶ added in v1.7.0
func (*InvalidCharacterLiteralError) DocumentationLink() string
func (*InvalidCharacterLiteralError) Error ¶
func (*InvalidCharacterLiteralError) Error() string
func (*InvalidCharacterLiteralError) IsUserError ¶
func (*InvalidCharacterLiteralError) IsUserError()
func (*InvalidCharacterLiteralError) SecondaryError ¶
func (e *InvalidCharacterLiteralError) SecondaryError() string
type InvalidConditionalResourceOperandError ¶
func (*InvalidConditionalResourceOperandError) DocumentationLink ¶ added in v1.7.0
func (*InvalidConditionalResourceOperandError) DocumentationLink() string
func (*InvalidConditionalResourceOperandError) Error ¶
func (*InvalidConditionalResourceOperandError) Error() string
func (*InvalidConditionalResourceOperandError) IsUserError ¶ added in v1.7.0
func (*InvalidConditionalResourceOperandError) IsUserError()
func (*InvalidConditionalResourceOperandError) SecondaryError ¶ added in v1.7.0
func (*InvalidConditionalResourceOperandError) SecondaryError() string
type InvalidConformanceError ¶
func (*InvalidConformanceError) DocumentationLink ¶ added in v1.7.0
func (*InvalidConformanceError) DocumentationLink() string
func (*InvalidConformanceError) Error ¶
func (e *InvalidConformanceError) Error() string
func (*InvalidConformanceError) IsUserError ¶
func (*InvalidConformanceError) IsUserError()
func (*InvalidConformanceError) SecondaryError ¶ added in v1.7.0
func (e *InvalidConformanceError) SecondaryError() string
type InvalidConstantSizedTypeBaseError ¶
func (*InvalidConstantSizedTypeBaseError) DocumentationLink ¶ added in v1.7.0
func (*InvalidConstantSizedTypeBaseError) DocumentationLink() string
func (*InvalidConstantSizedTypeBaseError) Error ¶
func (*InvalidConstantSizedTypeBaseError) Error() string
func (*InvalidConstantSizedTypeBaseError) IsUserError ¶
func (*InvalidConstantSizedTypeBaseError) IsUserError()
func (*InvalidConstantSizedTypeBaseError) SecondaryError ¶
func (e *InvalidConstantSizedTypeBaseError) SecondaryError() string
type InvalidConstantSizedTypeSizeError ¶
type InvalidConstantSizedTypeSizeError struct {
ActualSize *big.Int
ExpectedMinInt *big.Int
ExpectedMaxInt *big.Int
ast.Range
}
func (*InvalidConstantSizedTypeSizeError) DocumentationLink ¶ added in v1.7.0
func (*InvalidConstantSizedTypeSizeError) DocumentationLink() string
func (*InvalidConstantSizedTypeSizeError) Error ¶
func (*InvalidConstantSizedTypeSizeError) Error() string
func (*InvalidConstantSizedTypeSizeError) IsUserError ¶
func (*InvalidConstantSizedTypeSizeError) IsUserError()
func (*InvalidConstantSizedTypeSizeError) SecondaryError ¶
func (e *InvalidConstantSizedTypeSizeError) SecondaryError() string
type InvalidConstructionError ¶
func (*InvalidConstructionError) DocumentationLink ¶ added in v1.7.0
func (*InvalidConstructionError) DocumentationLink() string
func (*InvalidConstructionError) EndPosition ¶ added in v1.7.0
func (e *InvalidConstructionError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*InvalidConstructionError) Error ¶
func (*InvalidConstructionError) Error() string
func (*InvalidConstructionError) IsUserError ¶
func (*InvalidConstructionError) IsUserError()
func (*InvalidConstructionError) SecondaryError ¶ added in v1.7.0
func (*InvalidConstructionError) SecondaryError() string
func (*InvalidConstructionError) StartPosition ¶ added in v1.7.0
func (e *InvalidConstructionError) StartPosition() ast.Position
func (*InvalidConstructionError) SuggestFixes ¶ added in v1.7.0
func (e *InvalidConstructionError) SuggestFixes(code string) []errors.SuggestedFix[ast.TextEdit]
type InvalidDeclarationError ¶
type InvalidDeclarationError struct {
Identifier string
Kind common.DeclarationKind
ast.Range
}
func (*InvalidDeclarationError) DocumentationLink ¶ added in v1.7.0
func (*InvalidDeclarationError) DocumentationLink() string
func (*InvalidDeclarationError) Error ¶
func (e *InvalidDeclarationError) Error() string
func (*InvalidDeclarationError) IsUserError ¶
func (*InvalidDeclarationError) IsUserError()
func (*InvalidDeclarationError) SecondaryError ¶ added in v1.7.0
func (e *InvalidDeclarationError) SecondaryError() string
type InvalidDestructionError ¶
func (*InvalidDestructionError) DocumentationLink ¶ added in v1.7.0
func (*InvalidDestructionError) DocumentationLink() string
func (*InvalidDestructionError) Error ¶
func (*InvalidDestructionError) Error() string
func (*InvalidDestructionError) IsUserError ¶
func (*InvalidDestructionError) IsUserError()
func (*InvalidDestructionError) SecondaryError ¶ added in v1.7.0
func (*InvalidDestructionError) SecondaryError() string
func (*InvalidDestructionError) SuggestFixes ¶ added in v1.7.0
func (e *InvalidDestructionError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
type InvalidDictionaryKeyTypeError ¶
func (*InvalidDictionaryKeyTypeError) DocumentationLink ¶ added in v1.7.0
func (*InvalidDictionaryKeyTypeError) DocumentationLink() string
func (*InvalidDictionaryKeyTypeError) Error ¶
func (e *InvalidDictionaryKeyTypeError) Error() string
func (*InvalidDictionaryKeyTypeError) IsUserError ¶
func (*InvalidDictionaryKeyTypeError) IsUserError()
func (*InvalidDictionaryKeyTypeError) SecondaryError ¶ added in v1.7.0
func (e *InvalidDictionaryKeyTypeError) SecondaryError() string
type InvalidEmitConditionError ¶
func (*InvalidEmitConditionError) DocumentationLink ¶ added in v1.7.0
func (*InvalidEmitConditionError) DocumentationLink() string
func (*InvalidEmitConditionError) Error ¶
func (*InvalidEmitConditionError) Error() string
func (*InvalidEmitConditionError) IsUserError ¶
func (*InvalidEmitConditionError) IsUserError()
func (*InvalidEmitConditionError) SecondaryError ¶ added in v1.7.0
func (*InvalidEmitConditionError) SecondaryError() string
type InvalidEntitlementAccessError ¶
InvalidEntitlementAccessError
func (*InvalidEntitlementAccessError) DocumentationLink ¶ added in v1.7.0
func (*InvalidEntitlementAccessError) DocumentationLink() string
func (*InvalidEntitlementAccessError) EndPosition ¶
func (e *InvalidEntitlementAccessError) EndPosition(common.MemoryGauge) ast.Position
func (*InvalidEntitlementAccessError) Error ¶
func (*InvalidEntitlementAccessError) Error() string
func (*InvalidEntitlementAccessError) IsUserError ¶
func (*InvalidEntitlementAccessError) IsUserError()
func (*InvalidEntitlementAccessError) SecondaryError ¶ added in v1.7.0
func (*InvalidEntitlementAccessError) SecondaryError() string
func (*InvalidEntitlementAccessError) StartPosition ¶
func (e *InvalidEntitlementAccessError) StartPosition() ast.Position
type InvalidEntitlementMappingInclusionError ¶
type InvalidEntitlementMappingInclusionError struct {
Map *EntitlementMapType
IncludedType Type
ast.Range
}
InvalidEntitlementMappingInclusionError
func (*InvalidEntitlementMappingInclusionError) DocumentationLink ¶ added in v1.7.0
func (*InvalidEntitlementMappingInclusionError) DocumentationLink() string
func (*InvalidEntitlementMappingInclusionError) Error ¶
func (e *InvalidEntitlementMappingInclusionError) Error() string
func (*InvalidEntitlementMappingInclusionError) IsUserError ¶
func (*InvalidEntitlementMappingInclusionError) IsUserError()
func (*InvalidEntitlementMappingInclusionError) SecondaryError ¶ added in v1.7.0
func (e *InvalidEntitlementMappingInclusionError) SecondaryError() string
type InvalidEntitlementMappingTypeError ¶
InvalidEntitlementMappingTypeError
func (*InvalidEntitlementMappingTypeError) DocumentationLink ¶ added in v1.7.0
func (*InvalidEntitlementMappingTypeError) DocumentationLink() string
func (*InvalidEntitlementMappingTypeError) EndPosition ¶
func (e *InvalidEntitlementMappingTypeError) EndPosition(common.MemoryGauge) ast.Position
func (*InvalidEntitlementMappingTypeError) Error ¶
func (e *InvalidEntitlementMappingTypeError) Error() string
func (*InvalidEntitlementMappingTypeError) IsUserError ¶
func (*InvalidEntitlementMappingTypeError) IsUserError()
func (*InvalidEntitlementMappingTypeError) SecondaryError ¶
func (*InvalidEntitlementMappingTypeError) SecondaryError() string
func (*InvalidEntitlementMappingTypeError) StartPosition ¶
func (e *InvalidEntitlementMappingTypeError) StartPosition() ast.Position
type InvalidEntryPointTypeError ¶
type InvalidEntryPointTypeError struct {
Type Type
}
func (*InvalidEntryPointTypeError) Error ¶
func (e *InvalidEntryPointTypeError) Error() string
func (*InvalidEntryPointTypeError) IsUserError ¶
func (*InvalidEntryPointTypeError) IsUserError()
func (*InvalidEntryPointTypeError) SecondaryError ¶ added in v1.7.0
func (*InvalidEntryPointTypeError) SecondaryError() string
type InvalidEnumCaseError ¶
type InvalidEnumCaseError struct {
ContainerDeclarationKind common.DeclarationKind
ast.Range
}
func (*InvalidEnumCaseError) DocumentationLink ¶ added in v1.7.0
func (*InvalidEnumCaseError) DocumentationLink() string
func (*InvalidEnumCaseError) Error ¶
func (e *InvalidEnumCaseError) Error() string
func (*InvalidEnumCaseError) IsUserError ¶
func (*InvalidEnumCaseError) IsUserError()
func (*InvalidEnumCaseError) SecondaryError ¶ added in v1.7.0
func (*InvalidEnumCaseError) SecondaryError() string
type InvalidEnumConformancesError ¶
func (*InvalidEnumConformancesError) DocumentationLink ¶ added in v1.7.0
func (*InvalidEnumConformancesError) DocumentationLink() string
func (*InvalidEnumConformancesError) Error ¶
func (*InvalidEnumConformancesError) Error() string
func (*InvalidEnumConformancesError) IsUserError ¶
func (*InvalidEnumConformancesError) IsUserError()
func (*InvalidEnumConformancesError) SecondaryError ¶ added in v1.7.0
func (*InvalidEnumConformancesError) SecondaryError() string
type InvalidEnumRawTypeError ¶
func (*InvalidEnumRawTypeError) DocumentationLink ¶ added in v1.7.0
func (*InvalidEnumRawTypeError) DocumentationLink() string
func (*InvalidEnumRawTypeError) Error ¶
func (e *InvalidEnumRawTypeError) Error() string
func (*InvalidEnumRawTypeError) IsUserError ¶
func (*InvalidEnumRawTypeError) IsUserError()
func (*InvalidEnumRawTypeError) SecondaryError ¶
func (*InvalidEnumRawTypeError) SecondaryError() string
type InvalidEventParameterTypeError ¶
func (*InvalidEventParameterTypeError) DocumentationLink ¶ added in v1.7.0
func (*InvalidEventParameterTypeError) DocumentationLink() string
func (*InvalidEventParameterTypeError) Error ¶
func (e *InvalidEventParameterTypeError) Error() string
func (*InvalidEventParameterTypeError) IsUserError ¶
func (*InvalidEventParameterTypeError) IsUserError()
func (*InvalidEventParameterTypeError) SecondaryError ¶ added in v1.7.0
func (e *InvalidEventParameterTypeError) SecondaryError() string
type InvalidEventUsageError ¶
func (*InvalidEventUsageError) DocumentationLink ¶ added in v1.7.0
func (*InvalidEventUsageError) DocumentationLink() string
func (*InvalidEventUsageError) Error ¶
func (e *InvalidEventUsageError) Error() string
func (*InvalidEventUsageError) IsUserError ¶
func (*InvalidEventUsageError) IsUserError()
func (*InvalidEventUsageError) SecondaryError ¶ added in v1.7.0
func (e *InvalidEventUsageError) SecondaryError() string
func (*InvalidEventUsageError) SuggestFixes ¶ added in v1.7.0
func (e *InvalidEventUsageError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
type InvalidFailableResourceDowncastOutsideOptionalBindingError ¶
func (*InvalidFailableResourceDowncastOutsideOptionalBindingError) DocumentationLink ¶ added in v1.7.0
func (*InvalidFailableResourceDowncastOutsideOptionalBindingError) DocumentationLink() string
func (*InvalidFailableResourceDowncastOutsideOptionalBindingError) Error ¶
func (*InvalidFailableResourceDowncastOutsideOptionalBindingError) Error() string
func (*InvalidFailableResourceDowncastOutsideOptionalBindingError) IsUserError ¶
func (*InvalidFailableResourceDowncastOutsideOptionalBindingError) IsUserError()
func (*InvalidFailableResourceDowncastOutsideOptionalBindingError) SecondaryError ¶ added in v1.7.0
func (*InvalidFailableResourceDowncastOutsideOptionalBindingError) SecondaryError() string
type InvalidFieldVariableKindError ¶ added in v1.7.0
type InvalidFieldVariableKindError struct {
Kind ast.VariableKind
ast.Range
}
func (*InvalidFieldVariableKindError) DocumentationLink ¶ added in v1.7.0
func (*InvalidFieldVariableKindError) DocumentationLink() string
func (*InvalidFieldVariableKindError) Error ¶ added in v1.7.0
func (e *InvalidFieldVariableKindError) Error() string
func (*InvalidFieldVariableKindError) IsUserError ¶ added in v1.7.0
func (*InvalidFieldVariableKindError) IsUserError()
func (*InvalidFieldVariableKindError) SecondaryError ¶ added in v1.7.0
func (*InvalidFieldVariableKindError) SecondaryError() string
type InvalidFixedPointLiteralRangeError ¶
type InvalidFixedPointLiteralRangeError struct {
ExpectedType Type
ExpectedMinInt *big.Int
ExpectedMinFractional *big.Int
ExpectedMaxInt *big.Int
ExpectedMaxFractional *big.Int
ast.Range
}
func (*InvalidFixedPointLiteralRangeError) DocumentationLink ¶ added in v1.7.0
func (*InvalidFixedPointLiteralRangeError) DocumentationLink() string
func (*InvalidFixedPointLiteralRangeError) Error ¶
func (*InvalidFixedPointLiteralRangeError) Error() string
func (*InvalidFixedPointLiteralRangeError) IsUserError ¶
func (*InvalidFixedPointLiteralRangeError) IsUserError()
func (*InvalidFixedPointLiteralRangeError) SecondaryError ¶
func (e *InvalidFixedPointLiteralRangeError) SecondaryError() string
type InvalidFixedPointLiteralScaleError ¶
func (*InvalidFixedPointLiteralScaleError) DocumentationLink ¶ added in v1.7.0
func (*InvalidFixedPointLiteralScaleError) DocumentationLink() string
func (*InvalidFixedPointLiteralScaleError) Error ¶
func (*InvalidFixedPointLiteralScaleError) Error() string
func (*InvalidFixedPointLiteralScaleError) IsUserError ¶
func (*InvalidFixedPointLiteralScaleError) IsUserError()
func (*InvalidFixedPointLiteralScaleError) SecondaryError ¶
func (e *InvalidFixedPointLiteralScaleError) SecondaryError() string
type InvalidImplementationError ¶
type InvalidImplementationError struct {
ImplementedKind common.DeclarationKind
ContainerKind common.DeclarationKind
Pos ast.Position
}
func (*InvalidImplementationError) DocumentationLink ¶ added in v1.7.0
func (*InvalidImplementationError) DocumentationLink() string
func (*InvalidImplementationError) EndPosition ¶
func (e *InvalidImplementationError) EndPosition(common.MemoryGauge) ast.Position
func (*InvalidImplementationError) Error ¶
func (e *InvalidImplementationError) Error() string
func (*InvalidImplementationError) IsUserError ¶
func (*InvalidImplementationError) IsUserError()
func (*InvalidImplementationError) SecondaryError ¶ added in v1.7.0
func (e *InvalidImplementationError) SecondaryError() string
func (*InvalidImplementationError) StartPosition ¶
func (e *InvalidImplementationError) StartPosition() ast.Position
type InvalidIntegerLiteralRangeError ¶
type InvalidIntegerLiteralRangeError struct {
ExpectedType Type
ExpectedMinInt *big.Int
ExpectedMaxInt *big.Int
ast.Range
}
func (*InvalidIntegerLiteralRangeError) DocumentationLink ¶ added in v1.7.0
func (*InvalidIntegerLiteralRangeError) DocumentationLink() string
func (*InvalidIntegerLiteralRangeError) Error ¶
func (*InvalidIntegerLiteralRangeError) Error() string
func (*InvalidIntegerLiteralRangeError) IsUserError ¶
func (*InvalidIntegerLiteralRangeError) IsUserError()
func (*InvalidIntegerLiteralRangeError) SecondaryError ¶
func (e *InvalidIntegerLiteralRangeError) SecondaryError() string
type InvalidInterfaceConditionResourceInvalidationError ¶
func (*InvalidInterfaceConditionResourceInvalidationError) DocumentationLink ¶ added in v1.7.0
func (*InvalidInterfaceConditionResourceInvalidationError) DocumentationLink() string
func (*InvalidInterfaceConditionResourceInvalidationError) Error ¶
func (*InvalidInterfaceConditionResourceInvalidationError) Error() string
func (*InvalidInterfaceConditionResourceInvalidationError) IsUserError ¶
func (*InvalidInterfaceConditionResourceInvalidationError) IsUserError()
func (*InvalidInterfaceConditionResourceInvalidationError) SecondaryError ¶ added in v1.7.0
func (*InvalidInterfaceConditionResourceInvalidationError) SecondaryError() string
type InvalidInterfaceDeclarationError ¶
type InvalidInterfaceDeclarationError struct {
CompositeKind common.CompositeKind
ast.Range
}
func (*InvalidInterfaceDeclarationError) DocumentationLink ¶ added in v1.7.0
func (*InvalidInterfaceDeclarationError) DocumentationLink() string
func (*InvalidInterfaceDeclarationError) Error ¶
func (e *InvalidInterfaceDeclarationError) Error() string
func (*InvalidInterfaceDeclarationError) IsUserError ¶
func (*InvalidInterfaceDeclarationError) IsUserError()
func (*InvalidInterfaceDeclarationError) SecondaryError ¶ added in v1.7.0
func (e *InvalidInterfaceDeclarationError) SecondaryError() string
type InvalidInterfaceTypeError ¶
func (*InvalidInterfaceTypeError) DocumentationLink ¶ added in v1.7.0
func (*InvalidInterfaceTypeError) DocumentationLink() string
func (*InvalidInterfaceTypeError) Error ¶
func (*InvalidInterfaceTypeError) Error() string
func (*InvalidInterfaceTypeError) IsUserError ¶
func (*InvalidInterfaceTypeError) IsUserError()
func (*InvalidInterfaceTypeError) SecondaryError ¶
func (e *InvalidInterfaceTypeError) SecondaryError() string
func (*InvalidInterfaceTypeError) SuggestFixes ¶ added in v1.7.0
func (e *InvalidInterfaceTypeError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
type InvalidIntersectedTypeError ¶
func (*InvalidIntersectedTypeError) DocumentationLink ¶ added in v1.7.0
func (*InvalidIntersectedTypeError) DocumentationLink() string
func (*InvalidIntersectedTypeError) Error ¶
func (e *InvalidIntersectedTypeError) Error() string
func (*InvalidIntersectedTypeError) IsUserError ¶
func (*InvalidIntersectedTypeError) IsUserError()
func (*InvalidIntersectedTypeError) SecondaryError ¶ added in v1.7.0
func (e *InvalidIntersectedTypeError) SecondaryError() string
type InvalidIntersectionTypeDuplicateError ¶
type InvalidIntersectionTypeDuplicateError struct {
Type *InterfaceType
ast.Range
}
func (*InvalidIntersectionTypeDuplicateError) DocumentationLink ¶ added in v1.7.0
func (*InvalidIntersectionTypeDuplicateError) DocumentationLink() string
func (*InvalidIntersectionTypeDuplicateError) Error ¶
func (e *InvalidIntersectionTypeDuplicateError) Error() string
func (*InvalidIntersectionTypeDuplicateError) IsUserError ¶
func (*InvalidIntersectionTypeDuplicateError) IsUserError()
func (*InvalidIntersectionTypeDuplicateError) SecondaryError ¶ added in v1.7.0
func (e *InvalidIntersectionTypeDuplicateError) SecondaryError() string
type InvalidMappingAccessError ¶ added in v1.3.4
InvalidMappingAccessError
func (*InvalidMappingAccessError) DocumentationLink ¶ added in v1.7.0
func (*InvalidMappingAccessError) DocumentationLink() string
func (*InvalidMappingAccessError) EndPosition ¶ added in v1.3.4
func (e *InvalidMappingAccessError) EndPosition(_ common.MemoryGauge) ast.Position
func (*InvalidMappingAccessError) Error ¶ added in v1.3.4
func (*InvalidMappingAccessError) Error() string
func (*InvalidMappingAccessError) IsUserError ¶ added in v1.3.4
func (*InvalidMappingAccessError) IsUserError()
func (*InvalidMappingAccessError) SecondaryError ¶ added in v1.7.0
func (*InvalidMappingAccessError) SecondaryError() string
func (*InvalidMappingAccessError) StartPosition ¶ added in v1.3.4
func (e *InvalidMappingAccessError) StartPosition() ast.Position
type InvalidMappingAccessMemberTypeError ¶ added in v1.3.4
InvalidMappingAccessMemberTypeError
func (*InvalidMappingAccessMemberTypeError) DocumentationLink ¶ added in v1.7.0
func (*InvalidMappingAccessMemberTypeError) DocumentationLink() string
func (*InvalidMappingAccessMemberTypeError) EndPosition ¶ added in v1.3.4
func (e *InvalidMappingAccessMemberTypeError) EndPosition(_ common.MemoryGauge) ast.Position
func (*InvalidMappingAccessMemberTypeError) Error ¶ added in v1.3.4
func (*InvalidMappingAccessMemberTypeError) Error() string
func (*InvalidMappingAccessMemberTypeError) IsUserError ¶ added in v1.3.4
func (*InvalidMappingAccessMemberTypeError) IsUserError()
func (*InvalidMappingAccessMemberTypeError) SecondaryError ¶ added in v1.7.0
func (*InvalidMappingAccessMemberTypeError) SecondaryError() string
func (*InvalidMappingAccessMemberTypeError) StartPosition ¶ added in v1.3.4
func (e *InvalidMappingAccessMemberTypeError) StartPosition() ast.Position
type InvalidMappingAuthorizationError ¶ added in v1.3.4
func (*InvalidMappingAuthorizationError) DocumentationLink ¶ added in v1.7.0
func (*InvalidMappingAuthorizationError) DocumentationLink() string
func (*InvalidMappingAuthorizationError) Error ¶ added in v1.3.4
func (*InvalidMappingAuthorizationError) Error() string
func (*InvalidMappingAuthorizationError) IsUserError ¶ added in v1.3.4
func (*InvalidMappingAuthorizationError) IsUserError()
func (*InvalidMappingAuthorizationError) SecondaryError ¶ added in v1.7.0
func (*InvalidMappingAuthorizationError) SecondaryError() string
type InvalidMoveError ¶
type InvalidMoveError struct {
Name string
DeclarationKind common.DeclarationKind
Pos ast.Position
}
func (*InvalidMoveError) EndPosition ¶
func (e *InvalidMoveError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*InvalidMoveError) Error ¶
func (e *InvalidMoveError) Error() string
func (*InvalidMoveError) IsUserError ¶
func (*InvalidMoveError) IsUserError()
func (*InvalidMoveError) StartPosition ¶
func (e *InvalidMoveError) StartPosition() ast.Position
type InvalidMoveOperationError ¶
func (*InvalidMoveOperationError) DocumentationLink ¶ added in v1.7.0
func (*InvalidMoveOperationError) DocumentationLink() string
func (*InvalidMoveOperationError) EndPosition ¶ added in v1.7.0
func (e *InvalidMoveOperationError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*InvalidMoveOperationError) Error ¶
func (*InvalidMoveOperationError) Error() string
func (*InvalidMoveOperationError) IsUserError ¶
func (*InvalidMoveOperationError) IsUserError()
func (*InvalidMoveOperationError) SecondaryError ¶
func (*InvalidMoveOperationError) SecondaryError() string
func (*InvalidMoveOperationError) StartPosition ¶ added in v1.7.0
func (e *InvalidMoveOperationError) StartPosition() ast.Position
func (*InvalidMoveOperationError) SuggestFixes ¶ added in v1.7.0
func (e *InvalidMoveOperationError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
type InvalidNameError ¶
func (*InvalidNameError) DocumentationLink ¶ added in v1.7.0
func (*InvalidNameError) DocumentationLink() string
func (*InvalidNameError) EndPosition ¶
func (e *InvalidNameError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*InvalidNameError) Error ¶
func (e *InvalidNameError) Error() string
func (*InvalidNameError) IsUserError ¶
func (*InvalidNameError) IsUserError()
func (*InvalidNameError) SecondaryError ¶ added in v1.7.0
func (*InvalidNameError) SecondaryError() string
func (*InvalidNameError) StartPosition ¶
func (e *InvalidNameError) StartPosition() ast.Position
type InvalidNativeModifierError ¶
func (*InvalidNativeModifierError) Error ¶
func (*InvalidNativeModifierError) Error() string
func (*InvalidNativeModifierError) IsUserError ¶
func (*InvalidNativeModifierError) IsUserError()
func (*InvalidNativeModifierError) SecondaryError ¶ added in v1.7.0
func (*InvalidNativeModifierError) SecondaryError() string
type InvalidNestedDeclarationError ¶
type InvalidNestedDeclarationError struct {
NestedDeclarationKind common.DeclarationKind
ContainerDeclarationKind common.DeclarationKind
ast.Range
}
func (*InvalidNestedDeclarationError) DocumentationLink ¶ added in v1.7.0
func (*InvalidNestedDeclarationError) DocumentationLink() string
func (*InvalidNestedDeclarationError) Error ¶
func (e *InvalidNestedDeclarationError) Error() string
func (*InvalidNestedDeclarationError) IsUserError ¶
func (*InvalidNestedDeclarationError) IsUserError()
func (*InvalidNestedDeclarationError) SecondaryError ¶ added in v1.7.0
func (e *InvalidNestedDeclarationError) SecondaryError() string
type InvalidNestedResourceMoveError ¶
func (*InvalidNestedResourceMoveError) DocumentationLink ¶ added in v1.7.0
func (*InvalidNestedResourceMoveError) DocumentationLink() string
func (*InvalidNestedResourceMoveError) Error ¶
func (*InvalidNestedResourceMoveError) Error() string
func (*InvalidNestedResourceMoveError) IsUserError ¶
func (*InvalidNestedResourceMoveError) IsUserError()
func (*InvalidNestedResourceMoveError) SecondaryError ¶ added in v1.7.0
func (*InvalidNestedResourceMoveError) SecondaryError() string
type InvalidNestedTypeError ¶
type InvalidNestedTypeError struct {
Type *ast.NominalType
}
func (*InvalidNestedTypeError) DocumentationLink ¶ added in v1.7.0
func (*InvalidNestedTypeError) DocumentationLink() string
func (*InvalidNestedTypeError) EndPosition ¶
func (e *InvalidNestedTypeError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*InvalidNestedTypeError) Error ¶
func (e *InvalidNestedTypeError) Error() string
func (*InvalidNestedTypeError) IsUserError ¶
func (*InvalidNestedTypeError) IsUserError()
func (*InvalidNestedTypeError) SecondaryError ¶ added in v1.7.0
func (e *InvalidNestedTypeError) SecondaryError() string
func (*InvalidNestedTypeError) StartPosition ¶
func (e *InvalidNestedTypeError) StartPosition() ast.Position
type InvalidNilCoalescingRightResourceOperandError ¶
func (*InvalidNilCoalescingRightResourceOperandError) DocumentationLink ¶ added in v1.7.0
func (*InvalidNilCoalescingRightResourceOperandError) DocumentationLink() string
func (*InvalidNilCoalescingRightResourceOperandError) Error ¶
func (*InvalidNilCoalescingRightResourceOperandError) Error() string
func (*InvalidNilCoalescingRightResourceOperandError) IsUserError ¶ added in v1.7.0
func (*InvalidNilCoalescingRightResourceOperandError) IsUserError()
func (*InvalidNilCoalescingRightResourceOperandError) SecondaryError ¶ added in v1.7.0
func (*InvalidNilCoalescingRightResourceOperandError) SecondaryError() string
type InvalidNonEntitlementAccessError ¶
InvalidNonEntitlementAccessError
func (*InvalidNonEntitlementAccessError) DocumentationLink ¶ added in v1.7.0
func (*InvalidNonEntitlementAccessError) DocumentationLink() string
func (*InvalidNonEntitlementAccessError) Error ¶
func (*InvalidNonEntitlementAccessError) Error() string
func (*InvalidNonEntitlementAccessError) IsUserError ¶
func (*InvalidNonEntitlementAccessError) IsUserError()
func (*InvalidNonEntitlementAccessError) SecondaryError ¶ added in v1.7.0
func (e *InvalidNonEntitlementAccessError) SecondaryError() string
type InvalidNonEntitlementTypeInMappingError ¶ added in v1.7.0
InvalidNonEntitlementTypeInMappingError
func (*InvalidNonEntitlementTypeInMappingError) DocumentationLink ¶ added in v1.7.0
func (*InvalidNonEntitlementTypeInMappingError) DocumentationLink() string
func (*InvalidNonEntitlementTypeInMappingError) EndPosition ¶ added in v1.7.0
func (e *InvalidNonEntitlementTypeInMappingError) EndPosition(common.MemoryGauge) ast.Position
func (*InvalidNonEntitlementTypeInMappingError) Error ¶ added in v1.7.0
func (*InvalidNonEntitlementTypeInMappingError) Error() string
func (*InvalidNonEntitlementTypeInMappingError) IsUserError ¶ added in v1.7.0
func (*InvalidNonEntitlementTypeInMappingError) IsUserError()
func (*InvalidNonEntitlementTypeInMappingError) SecondaryError ¶ added in v1.7.0
func (*InvalidNonEntitlementTypeInMappingError) SecondaryError() string
func (*InvalidNonEntitlementTypeInMappingError) StartPosition ¶ added in v1.7.0
func (e *InvalidNonEntitlementTypeInMappingError) StartPosition() ast.Position
type InvalidNonEnumCaseError ¶
type InvalidNonEnumCaseError struct {
ContainerDeclarationKind common.DeclarationKind
ast.Range
}
func (*InvalidNonEnumCaseError) DocumentationLink ¶ added in v1.7.0
func (*InvalidNonEnumCaseError) DocumentationLink() string
func (*InvalidNonEnumCaseError) Error ¶
func (e *InvalidNonEnumCaseError) Error() string
func (*InvalidNonEnumCaseError) IsUserError ¶
func (*InvalidNonEnumCaseError) IsUserError()
func (*InvalidNonEnumCaseError) SecondaryError ¶ added in v1.7.0
func (*InvalidNonEnumCaseError) SecondaryError() string
type InvalidNonIdentifierFailableResourceDowncast ¶
func (*InvalidNonIdentifierFailableResourceDowncast) DocumentationLink ¶ added in v1.7.0
func (*InvalidNonIdentifierFailableResourceDowncast) DocumentationLink() string
func (*InvalidNonIdentifierFailableResourceDowncast) Error ¶
func (*InvalidNonIdentifierFailableResourceDowncast) Error() string
func (*InvalidNonIdentifierFailableResourceDowncast) IsUserError ¶
func (*InvalidNonIdentifierFailableResourceDowncast) IsUserError()
func (*InvalidNonIdentifierFailableResourceDowncast) SecondaryError ¶
func (*InvalidNonIdentifierFailableResourceDowncast) SecondaryError() string
type InvalidNonImportableTransactionParameterTypeError ¶
func (*InvalidNonImportableTransactionParameterTypeError) DocumentationLink ¶ added in v1.7.0
func (*InvalidNonImportableTransactionParameterTypeError) DocumentationLink() string
func (*InvalidNonImportableTransactionParameterTypeError) Error ¶
func (e *InvalidNonImportableTransactionParameterTypeError) Error() string
func (*InvalidNonImportableTransactionParameterTypeError) IsUserError ¶
func (*InvalidNonImportableTransactionParameterTypeError) IsUserError()
func (*InvalidNonImportableTransactionParameterTypeError) SecondaryError ¶ added in v1.7.0
func (*InvalidNonImportableTransactionParameterTypeError) SecondaryError() string
type InvalidOptionalChainingError ¶
func (*InvalidOptionalChainingError) DocumentationLink ¶ added in v1.7.0
func (*InvalidOptionalChainingError) DocumentationLink() string
func (*InvalidOptionalChainingError) Error ¶
func (e *InvalidOptionalChainingError) Error() string
func (*InvalidOptionalChainingError) IsUserError ¶
func (*InvalidOptionalChainingError) IsUserError()
func (*InvalidOptionalChainingError) SecondaryError ¶ added in v1.7.0
func (*InvalidOptionalChainingError) SecondaryError() string
func (*InvalidOptionalChainingError) SuggestFixes ¶ added in v1.7.0
func (e *InvalidOptionalChainingError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
type InvalidPathDomainError ¶
func (*InvalidPathDomainError) DocumentationLink ¶ added in v1.7.0
func (*InvalidPathDomainError) DocumentationLink() string
func (*InvalidPathDomainError) Error ¶
func (e *InvalidPathDomainError) Error() string
func (*InvalidPathDomainError) IsUserError ¶
func (*InvalidPathDomainError) IsUserError()
func (*InvalidPathDomainError) SecondaryError ¶
func (e *InvalidPathDomainError) SecondaryError() string
type InvalidPathIdentifierError ¶
func (*InvalidPathIdentifierError) Error ¶
func (e *InvalidPathIdentifierError) Error() string
type InvalidPragmaError ¶
func (*InvalidPragmaError) Error ¶
func (*InvalidPragmaError) Error() string
func (*InvalidPragmaError) IsUserError ¶
func (*InvalidPragmaError) IsUserError()
func (*InvalidPragmaError) SecondaryError ¶
func (e *InvalidPragmaError) SecondaryError() string
type InvalidReferenceToOptionalTypeError ¶ added in v1.8.12
func (*InvalidReferenceToOptionalTypeError) DocumentationLink ¶ added in v1.8.12
func (*InvalidReferenceToOptionalTypeError) DocumentationLink() string
func (*InvalidReferenceToOptionalTypeError) Error ¶ added in v1.8.12
func (*InvalidReferenceToOptionalTypeError) Error() string
func (*InvalidReferenceToOptionalTypeError) IsUserError ¶ added in v1.8.12
func (*InvalidReferenceToOptionalTypeError) IsUserError()
func (*InvalidReferenceToOptionalTypeError) SecondaryError ¶ added in v1.8.12
func (e *InvalidReferenceToOptionalTypeError) SecondaryError() string
func (*InvalidReferenceToOptionalTypeError) SuggestFixes ¶ added in v1.9.4
func (e *InvalidReferenceToOptionalTypeError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
type InvalidResourceAnnotationError ¶
func (*InvalidResourceAnnotationError) DocumentationLink ¶ added in v1.7.0
func (*InvalidResourceAnnotationError) DocumentationLink() string
func (*InvalidResourceAnnotationError) Error ¶
func (e *InvalidResourceAnnotationError) Error() string
func (*InvalidResourceAnnotationError) IsUserError ¶
func (*InvalidResourceAnnotationError) IsUserError()
func (*InvalidResourceAnnotationError) SecondaryError ¶ added in v1.7.0
func (e *InvalidResourceAnnotationError) SecondaryError() string
func (*InvalidResourceAnnotationError) SuggestFixes ¶ added in v1.7.0
func (e *InvalidResourceAnnotationError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
type InvalidResourceArrayMemberError ¶
type InvalidResourceArrayMemberError struct {
Name string
DeclarationKind common.DeclarationKind
ast.Range
}
func (*InvalidResourceArrayMemberError) DocumentationLink ¶ added in v1.7.0
func (*InvalidResourceArrayMemberError) DocumentationLink() string
func (*InvalidResourceArrayMemberError) Error ¶
func (e *InvalidResourceArrayMemberError) Error() string
func (*InvalidResourceArrayMemberError) IsUserError ¶
func (*InvalidResourceArrayMemberError) IsUserError()
func (*InvalidResourceArrayMemberError) SecondaryError ¶ added in v1.7.0
func (*InvalidResourceArrayMemberError) SecondaryError() string
type InvalidResourceAssignmentError ¶
func (*InvalidResourceAssignmentError) DocumentationLink ¶ added in v1.7.0
func (e *InvalidResourceAssignmentError) DocumentationLink() string
func (*InvalidResourceAssignmentError) Error ¶
func (*InvalidResourceAssignmentError) Error() string
func (*InvalidResourceAssignmentError) IsUserError ¶
func (*InvalidResourceAssignmentError) IsUserError()
func (*InvalidResourceAssignmentError) SecondaryError ¶
func (*InvalidResourceAssignmentError) SecondaryError() string
type InvalidResourceCreationError ¶
func (*InvalidResourceCreationError) DocumentationLink ¶ added in v1.7.0
func (*InvalidResourceCreationError) DocumentationLink() string
func (*InvalidResourceCreationError) Error ¶
func (e *InvalidResourceCreationError) Error() string
func (*InvalidResourceCreationError) IsUserError ¶
func (*InvalidResourceCreationError) IsUserError()
func (*InvalidResourceCreationError) SecondaryError ¶ added in v1.7.0
func (*InvalidResourceCreationError) SecondaryError() string
type InvalidResourceDictionaryMemberError ¶
type InvalidResourceDictionaryMemberError struct {
Name string
DeclarationKind common.DeclarationKind
ast.Range
}
func (*InvalidResourceDictionaryMemberError) DocumentationLink ¶ added in v1.7.0
func (*InvalidResourceDictionaryMemberError) DocumentationLink() string
func (*InvalidResourceDictionaryMemberError) Error ¶
func (e *InvalidResourceDictionaryMemberError) Error() string
func (*InvalidResourceDictionaryMemberError) IsUserError ¶
func (*InvalidResourceDictionaryMemberError) IsUserError()
func (*InvalidResourceDictionaryMemberError) SecondaryError ¶ added in v1.7.0
func (*InvalidResourceDictionaryMemberError) SecondaryError() string
type InvalidResourceFieldError ¶
type InvalidResourceFieldError struct {
Name string
CompositeKind common.CompositeKind
Pos ast.Position
}
func (*InvalidResourceFieldError) DocumentationLink ¶ added in v1.7.0
func (*InvalidResourceFieldError) DocumentationLink() string
func (*InvalidResourceFieldError) EndPosition ¶
func (e *InvalidResourceFieldError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*InvalidResourceFieldError) Error ¶
func (e *InvalidResourceFieldError) Error() string
func (*InvalidResourceFieldError) IsUserError ¶
func (*InvalidResourceFieldError) IsUserError()
func (*InvalidResourceFieldError) SecondaryError ¶ added in v1.7.0
func (*InvalidResourceFieldError) SecondaryError() string
func (*InvalidResourceFieldError) StartPosition ¶
func (e *InvalidResourceFieldError) StartPosition() ast.Position
type InvalidResourceOptionalMemberError ¶
type InvalidResourceOptionalMemberError struct {
Name string
DeclarationKind common.DeclarationKind
ast.Range
}
func (*InvalidResourceOptionalMemberError) DocumentationLink ¶ added in v1.7.0
func (*InvalidResourceOptionalMemberError) DocumentationLink() string
func (*InvalidResourceOptionalMemberError) Error ¶
func (e *InvalidResourceOptionalMemberError) Error() string
func (*InvalidResourceOptionalMemberError) IsUserError ¶
func (*InvalidResourceOptionalMemberError) IsUserError()
func (*InvalidResourceOptionalMemberError) SecondaryError ¶ added in v1.7.0
func (*InvalidResourceOptionalMemberError) SecondaryError() string
type InvalidResourceTransactionParameterError ¶
func (*InvalidResourceTransactionParameterError) DocumentationLink ¶ added in v1.7.0
func (*InvalidResourceTransactionParameterError) DocumentationLink() string
func (*InvalidResourceTransactionParameterError) Error ¶
func (e *InvalidResourceTransactionParameterError) Error() string
func (*InvalidResourceTransactionParameterError) IsUserError ¶
func (*InvalidResourceTransactionParameterError) IsUserError()
func (*InvalidResourceTransactionParameterError) SecondaryError ¶ added in v1.7.0
func (*InvalidResourceTransactionParameterError) SecondaryError() string
type InvalidSelfInvalidationError ¶
type InvalidSelfInvalidationError struct {
InvalidationKind ResourceInvalidationKind
ast.Range
}
func (*InvalidSelfInvalidationError) DocumentationLink ¶ added in v1.7.0
func (*InvalidSelfInvalidationError) DocumentationLink() string
func (*InvalidSelfInvalidationError) Error ¶
func (e *InvalidSelfInvalidationError) Error() string
func (*InvalidSelfInvalidationError) IsUserError ¶
func (*InvalidSelfInvalidationError) IsUserError()
func (*InvalidSelfInvalidationError) SecondaryError ¶ added in v1.7.0
func (*InvalidSelfInvalidationError) SecondaryError() string
type InvalidStaticModifierError ¶
func (*InvalidStaticModifierError) Error ¶
func (*InvalidStaticModifierError) Error() string
func (*InvalidStaticModifierError) IsUserError ¶
func (*InvalidStaticModifierError) IsUserError()
func (*InvalidStaticModifierError) SecondaryError ¶ added in v1.7.0
func (*InvalidStaticModifierError) SecondaryError() string
type InvalidSwapExpressionError ¶
type InvalidSwapExpressionError struct {
Side common.OperandSide
ast.Range
}
func (*InvalidSwapExpressionError) DocumentationLink ¶ added in v1.7.0
func (*InvalidSwapExpressionError) DocumentationLink() string
func (*InvalidSwapExpressionError) Error ¶
func (e *InvalidSwapExpressionError) Error() string
func (*InvalidSwapExpressionError) IsUserError ¶
func (*InvalidSwapExpressionError) IsUserError()
func (*InvalidSwapExpressionError) SecondaryError ¶
func (*InvalidSwapExpressionError) SecondaryError() string
type InvalidTopLevelDeclarationError ¶
type InvalidTopLevelDeclarationError struct {
DeclarationKind common.DeclarationKind
ast.Range
}
func (*InvalidTopLevelDeclarationError) Error ¶
func (e *InvalidTopLevelDeclarationError) Error() string
func (*InvalidTopLevelDeclarationError) IsUserError ¶
func (*InvalidTopLevelDeclarationError) IsUserError()
func (*InvalidTopLevelDeclarationError) SecondaryError ¶ added in v1.7.0
func (*InvalidTopLevelDeclarationError) SecondaryError() string
type InvalidTransactionBlockError ¶
func (*InvalidTransactionBlockError) DocumentationLink ¶ added in v1.7.0
func (*InvalidTransactionBlockError) DocumentationLink() string
func (*InvalidTransactionBlockError) EndPosition ¶
func (e *InvalidTransactionBlockError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*InvalidTransactionBlockError) Error ¶
func (*InvalidTransactionBlockError) Error() string
func (*InvalidTransactionBlockError) IsUserError ¶
func (*InvalidTransactionBlockError) IsUserError()
func (*InvalidTransactionBlockError) SecondaryError ¶
func (e *InvalidTransactionBlockError) SecondaryError() string
func (*InvalidTransactionBlockError) StartPosition ¶
func (e *InvalidTransactionBlockError) StartPosition() ast.Position
type InvalidTransactionFieldAccessModifierError ¶
type InvalidTransactionFieldAccessModifierError struct {
Name string
Access ast.Access
Pos ast.Position
}
func (*InvalidTransactionFieldAccessModifierError) DocumentationLink ¶ added in v1.7.0
func (*InvalidTransactionFieldAccessModifierError) DocumentationLink() string
func (*InvalidTransactionFieldAccessModifierError) EndPosition ¶
func (e *InvalidTransactionFieldAccessModifierError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*InvalidTransactionFieldAccessModifierError) Error ¶
func (e *InvalidTransactionFieldAccessModifierError) Error() string
func (*InvalidTransactionFieldAccessModifierError) IsUserError ¶
func (*InvalidTransactionFieldAccessModifierError) IsUserError()
func (*InvalidTransactionFieldAccessModifierError) SecondaryError ¶ added in v1.7.0
func (*InvalidTransactionFieldAccessModifierError) SecondaryError() string
func (*InvalidTransactionFieldAccessModifierError) StartPosition ¶
func (e *InvalidTransactionFieldAccessModifierError) StartPosition() ast.Position
type InvalidTransactionPrepareParameterTypeError ¶
func (*InvalidTransactionPrepareParameterTypeError) DocumentationLink ¶ added in v1.7.0
func (*InvalidTransactionPrepareParameterTypeError) DocumentationLink() string
func (*InvalidTransactionPrepareParameterTypeError) Error ¶
func (e *InvalidTransactionPrepareParameterTypeError) Error() string
func (*InvalidTransactionPrepareParameterTypeError) IsUserError ¶
func (*InvalidTransactionPrepareParameterTypeError) IsUserError()
func (*InvalidTransactionPrepareParameterTypeError) SecondaryError ¶ added in v1.7.0
func (*InvalidTransactionPrepareParameterTypeError) SecondaryError() string
type InvalidTypeArgumentCountError ¶
type InvalidTypeArgumentCountError struct {
TypeParameterCount int
TypeArgumentCount int
ast.Range
}
func (*InvalidTypeArgumentCountError) DocumentationLink ¶ added in v1.7.0
func (*InvalidTypeArgumentCountError) DocumentationLink() string
func (*InvalidTypeArgumentCountError) Error ¶
func (*InvalidTypeArgumentCountError) Error() string
func (*InvalidTypeArgumentCountError) IsUserError ¶
func (*InvalidTypeArgumentCountError) IsUserError()
func (*InvalidTypeArgumentCountError) SecondaryError ¶
func (e *InvalidTypeArgumentCountError) SecondaryError() string
type InvalidTypeArgumentError ¶
func (*InvalidTypeArgumentError) DocumentationLink ¶ added in v1.7.0
func (*InvalidTypeArgumentError) DocumentationLink() string
func (*InvalidTypeArgumentError) Error ¶
func (e *InvalidTypeArgumentError) Error() string
func (*InvalidTypeArgumentError) IsUserError ¶
func (*InvalidTypeArgumentError) IsUserError()
func (*InvalidTypeArgumentError) SecondaryError ¶
func (e *InvalidTypeArgumentError) SecondaryError() string
type InvalidTypeIndexingError ¶
type InvalidTypeIndexingError struct {
IndexingExpression ast.Expression
BaseType Type
ast.Range
}
InvalidTypeIndexingError
func (*InvalidTypeIndexingError) DocumentationLink ¶ added in v1.7.0
func (*InvalidTypeIndexingError) DocumentationLink() string
func (*InvalidTypeIndexingError) Error ¶
func (e *InvalidTypeIndexingError) Error() string
func (*InvalidTypeIndexingError) IsUserError ¶
func (*InvalidTypeIndexingError) IsUserError()
func (*InvalidTypeIndexingError) SecondaryError ¶ added in v1.7.0
func (*InvalidTypeIndexingError) SecondaryError() string
type InvalidTypeParameterizedNonNativeFunctionError ¶
func (*InvalidTypeParameterizedNonNativeFunctionError) Error ¶
func (*InvalidTypeParameterizedNonNativeFunctionError) Error() string
func (*InvalidTypeParameterizedNonNativeFunctionError) IsUserError ¶
func (*InvalidTypeParameterizedNonNativeFunctionError) IsUserError()
func (*InvalidTypeParameterizedNonNativeFunctionError) SecondaryError ¶ added in v1.7.0
func (*InvalidTypeParameterizedNonNativeFunctionError) SecondaryError() string
type InvalidUnaryOperandError ¶
type InvalidUnaryOperandError struct {
ExpectedType Type
ExpectedTypeDescription string
ActualType Type
ast.Range
Operation ast.Operation
}
func (*InvalidUnaryOperandError) DocumentationLink ¶ added in v1.7.0
func (*InvalidUnaryOperandError) DocumentationLink() string
func (*InvalidUnaryOperandError) Error ¶
func (e *InvalidUnaryOperandError) Error() string
func (*InvalidUnaryOperandError) IsUserError ¶
func (*InvalidUnaryOperandError) IsUserError()
func (*InvalidUnaryOperandError) SecondaryError ¶
func (e *InvalidUnaryOperandError) SecondaryError() string
type InvalidatedResourceReferenceError ¶
type InvalidatedResourceReferenceError struct {
Invalidation ResourceInvalidation
ast.Range
}
func (*InvalidatedResourceReferenceError) DocumentationLink ¶ added in v1.7.0
func (*InvalidatedResourceReferenceError) DocumentationLink() string
func (*InvalidatedResourceReferenceError) Error ¶
func (*InvalidatedResourceReferenceError) Error() string
func (*InvalidatedResourceReferenceError) ErrorNotes ¶
func (e *InvalidatedResourceReferenceError) ErrorNotes() []errors.ErrorNote
func (*InvalidatedResourceReferenceError) IsUserError ¶
func (*InvalidatedResourceReferenceError) IsUserError()
func (*InvalidatedResourceReferenceError) SecondaryError ¶ added in v1.7.0
func (e *InvalidatedResourceReferenceError) SecondaryError() string
type InvocationExpressionTypes ¶
type InvocationExpressionTypes struct {
ReturnType Type
TypeArguments *TypeParameterTypeOrderedMap
ArgumentTypes []Type
ParameterTypes []Type
// PassArgumentsWithoutTransferOrConvert indicates whether to transfer/convert the arguments or not.
// IMPORTANT: FOR INTERNAL USE ONLY. User-defined functions must never have this flag on!
PassArgumentsWithoutTransferOrConvert bool
}
type InvocationTypeInferenceError ¶ added in v1.3.0
func (*InvocationTypeInferenceError) DocumentationLink ¶ added in v1.7.0
func (*InvocationTypeInferenceError) DocumentationLink() string
func (*InvocationTypeInferenceError) Error ¶ added in v1.3.0
func (*InvocationTypeInferenceError) Error() string
func (*InvocationTypeInferenceError) IsUserError ¶ added in v1.3.0
func (*InvocationTypeInferenceError) IsUserError()
func (*InvocationTypeInferenceError) SecondaryError ¶ added in v1.7.0
func (*InvocationTypeInferenceError) SecondaryError() string
type LocatedType ¶
LocatedType is a type which has a location
type LocationHandlerFunc ¶
type LocationHandlerFunc func(identifiers []ast.Identifier, location common.Location) ([]ResolvedLocation, error)
func AddressLocationHandlerFunc ¶
func AddressLocationHandlerFunc(resolveAddressContractNames AddressContractNamesResolver) LocationHandlerFunc
AddressLocationHandlerFunc returns a location handler which returns a single location for non-address locations, and uses the given address contract names resolve function to get all contract names for an address
type MappingAccessMissingKeywordError ¶
MappingAccessMissingKeywordError
func (*MappingAccessMissingKeywordError) DocumentationLink ¶ added in v1.7.0
func (*MappingAccessMissingKeywordError) DocumentationLink() string
func (*MappingAccessMissingKeywordError) Error ¶
func (*MappingAccessMissingKeywordError) Error() string
func (*MappingAccessMissingKeywordError) IsUserError ¶
func (*MappingAccessMissingKeywordError) IsUserError()
func (*MappingAccessMissingKeywordError) SecondaryError ¶
func (e *MappingAccessMissingKeywordError) SecondaryError() string
type Member ¶
type Member struct {
TypeAnnotation TypeAnnotation
// Parent type where this member can be resolved
ContainerType Type
DocString string
ArgumentLabels []string
Identifier ast.Identifier
Access Access
// TODO: replace with dedicated MemberKind enum
DeclarationKind common.DeclarationKind
VariableKind ast.VariableKind
// Predeclared fields can be considered initialized
Predeclared bool
HasImplementation bool
HasConditions bool
// IgnoreInSerialization determines if the field is ignored in serialization
IgnoreInSerialization bool
}
func NewConstructorMember ¶
func NewConstructorMember( memoryGauge common.MemoryGauge, containerType Type, access Access, identifier string, functionType *FunctionType, docString string, ) *Member
func NewFieldMember ¶
func NewFieldMember( memoryGauge common.MemoryGauge, containerType Type, access Access, variableKind ast.VariableKind, identifier string, fieldType Type, docString string, ) *Member
func NewFunctionMember ¶
func NewFunctionMember( memoryGauge common.MemoryGauge, containerType Type, access Access, identifier string, functionType *FunctionType, docString string, ) *Member
func NewPublicFunctionMember ¶
func NewPublicFunctionMember( memoryGauge common.MemoryGauge, containerType Type, identifier string, functionType *FunctionType, docString string, ) *Member
func NewUnmeteredFieldMember ¶
func NewUnmeteredPublicFunctionMember ¶
func NewUnmeteredPublicFunctionMember( containerType Type, identifier string, functionType *FunctionType, docString string, ) *Member
func (*Member) IsExportable ¶
IsExportable returns whether a member is exportable
func (*Member) IsImportable ¶
IsImportable returns whether a member can be imported to a program
func (*Member) IsStorable ¶
IsStorable returns whether a member is a storable field
type MemberAccess ¶
type MemberAccessInfo ¶
type MemberAccesses ¶
type MemberAccesses struct {
// contains filtered or unexported fields
}
func NewMemberAccesses ¶
func NewMemberAccesses() *MemberAccesses
func (*MemberAccesses) All ¶
func (m *MemberAccesses) All() []MemberAccess
func (*MemberAccesses) Find ¶
func (m *MemberAccesses) Find(pos Position) *MemberAccess
type MemberFieldDeclarationOrderedMap ¶
type MemberFieldDeclarationOrderedMap = orderedmap.OrderedMap[*Member, *ast.FieldDeclaration]
type MemberMismatch ¶
type MemberMismatchNote ¶
func (MemberMismatchNote) Message ¶
func (MemberMismatchNote) Message() string
type MemberResolver ¶
type MemberResolver struct {
Resolve func(
memoryGauge common.MemoryGauge,
identifier string,
targetRange ast.HasPosition,
report func(error),
) *Member
Kind common.DeclarationKind
}
type MissingAccessModifierError ¶
type MissingAccessModifierError struct {
Explanation string
Pos ast.Position
DeclarationKind common.DeclarationKind
}
func (*MissingAccessModifierError) DocumentationLink ¶ added in v1.7.0
func (*MissingAccessModifierError) DocumentationLink() string
func (*MissingAccessModifierError) EndPosition ¶
func (e *MissingAccessModifierError) EndPosition(common.MemoryGauge) ast.Position
func (*MissingAccessModifierError) Error ¶
func (e *MissingAccessModifierError) Error() string
func (*MissingAccessModifierError) IsUserError ¶
func (*MissingAccessModifierError) IsUserError()
func (*MissingAccessModifierError) SecondaryError ¶ added in v1.7.0
func (*MissingAccessModifierError) SecondaryError() string
func (*MissingAccessModifierError) StartPosition ¶
func (e *MissingAccessModifierError) StartPosition() ast.Position
type MissingArgumentLabelError ¶
func (*MissingArgumentLabelError) DocumentationLink ¶ added in v1.7.0
func (*MissingArgumentLabelError) DocumentationLink() string
func (*MissingArgumentLabelError) Error ¶
func (e *MissingArgumentLabelError) Error() string
func (*MissingArgumentLabelError) IsUserError ¶
func (*MissingArgumentLabelError) IsUserError()
func (*MissingArgumentLabelError) SecondaryError ¶ added in v1.7.0
func (e *MissingArgumentLabelError) SecondaryError() string
func (*MissingArgumentLabelError) SuggestFixes ¶
func (e *MissingArgumentLabelError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
type MissingConformanceError ¶
type MissingConformanceError struct {
CompositeType *CompositeType
InterfaceType *InterfaceType
ast.Range
}
MissingConformanceError
func (*MissingConformanceError) DocumentationLink ¶ added in v1.7.0
func (*MissingConformanceError) DocumentationLink() string
func (*MissingConformanceError) Error ¶
func (e *MissingConformanceError) Error() string
func (*MissingConformanceError) IsUserError ¶
func (*MissingConformanceError) IsUserError()
func (*MissingConformanceError) SecondaryError ¶ added in v1.7.0
func (e *MissingConformanceError) SecondaryError() string
type MissingCreateError ¶
func (*MissingCreateError) DocumentationLink ¶ added in v1.7.0
func (*MissingCreateError) DocumentationLink() string
func (*MissingCreateError) Error ¶
func (*MissingCreateError) Error() string
func (*MissingCreateError) IsUserError ¶
func (*MissingCreateError) IsUserError()
func (*MissingCreateError) SecondaryError ¶
func (*MissingCreateError) SecondaryError() string
func (*MissingCreateError) SuggestFixes ¶ added in v1.7.0
func (e *MissingCreateError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
type MissingEntryPointError ¶
type MissingEntryPointError struct {
Expected string
}
func (*MissingEntryPointError) Error ¶
func (e *MissingEntryPointError) Error() string
func (*MissingEntryPointError) IsUserError ¶
func (*MissingEntryPointError) IsUserError()
func (*MissingEntryPointError) SecondaryError ¶ added in v1.7.0
func (*MissingEntryPointError) SecondaryError() string
type MissingEnumRawTypeError ¶
func (*MissingEnumRawTypeError) DocumentationLink ¶ added in v1.7.0
func (*MissingEnumRawTypeError) DocumentationLink() string
func (*MissingEnumRawTypeError) EndPosition ¶
func (e *MissingEnumRawTypeError) EndPosition(common.MemoryGauge) ast.Position
func (*MissingEnumRawTypeError) Error ¶
func (*MissingEnumRawTypeError) Error() string
func (*MissingEnumRawTypeError) IsUserError ¶
func (*MissingEnumRawTypeError) IsUserError()
func (*MissingEnumRawTypeError) SecondaryError ¶ added in v1.7.0
func (*MissingEnumRawTypeError) SecondaryError() string
func (*MissingEnumRawTypeError) StartPosition ¶
func (e *MissingEnumRawTypeError) StartPosition() ast.Position
type MissingFunctionBodyError ¶
func (*MissingFunctionBodyError) DocumentationLink ¶ added in v1.7.0
func (*MissingFunctionBodyError) DocumentationLink() string
func (*MissingFunctionBodyError) EndPosition ¶
func (e *MissingFunctionBodyError) EndPosition(common.MemoryGauge) ast.Position
func (*MissingFunctionBodyError) Error ¶
func (*MissingFunctionBodyError) Error() string
func (*MissingFunctionBodyError) IsUserError ¶
func (*MissingFunctionBodyError) IsUserError()
func (*MissingFunctionBodyError) SecondaryError ¶ added in v1.7.0
func (*MissingFunctionBodyError) SecondaryError() string
func (*MissingFunctionBodyError) StartPosition ¶
func (e *MissingFunctionBodyError) StartPosition() ast.Position
func (*MissingFunctionBodyError) SuggestFixes ¶ added in v1.7.0
func (e *MissingFunctionBodyError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
type MissingInitializerError ¶
type MissingInitializerError struct {
ContainerType Type
FirstFieldName string
FirstFieldPos ast.Position
}
func (*MissingInitializerError) DocumentationLink ¶ added in v1.7.0
func (*MissingInitializerError) DocumentationLink() string
func (*MissingInitializerError) EndPosition ¶
func (e *MissingInitializerError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*MissingInitializerError) Error ¶
func (e *MissingInitializerError) Error() string
func (*MissingInitializerError) IsUserError ¶
func (*MissingInitializerError) IsUserError()
func (*MissingInitializerError) SecondaryError ¶ added in v1.7.0
func (*MissingInitializerError) SecondaryError() string
func (*MissingInitializerError) StartPosition ¶
func (e *MissingInitializerError) StartPosition() ast.Position
type MissingMoveOperationError ¶
func (*MissingMoveOperationError) DocumentationLink ¶ added in v1.7.0
func (*MissingMoveOperationError) DocumentationLink() string
func (*MissingMoveOperationError) EndPosition ¶
func (e *MissingMoveOperationError) EndPosition(common.MemoryGauge) ast.Position
func (*MissingMoveOperationError) Error ¶
func (*MissingMoveOperationError) Error() string
func (*MissingMoveOperationError) IsUserError ¶
func (*MissingMoveOperationError) IsUserError()
func (*MissingMoveOperationError) SecondaryError ¶ added in v1.7.0
func (*MissingMoveOperationError) SecondaryError() string
func (*MissingMoveOperationError) StartPosition ¶
func (e *MissingMoveOperationError) StartPosition() ast.Position
func (*MissingMoveOperationError) SuggestFixes ¶ added in v1.7.0
func (e *MissingMoveOperationError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
type MissingResourceAnnotationError ¶
func (*MissingResourceAnnotationError) DocumentationLink ¶ added in v1.7.0
func (*MissingResourceAnnotationError) DocumentationLink() string
func (*MissingResourceAnnotationError) Error ¶
func (*MissingResourceAnnotationError) Error() string
func (*MissingResourceAnnotationError) IsUserError ¶
func (*MissingResourceAnnotationError) IsUserError()
func (*MissingResourceAnnotationError) SecondaryError ¶ added in v1.7.0
func (*MissingResourceAnnotationError) SecondaryError() string
func (*MissingResourceAnnotationError) SuggestFixes ¶ added in v1.7.0
func (e *MissingResourceAnnotationError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
type MissingReturnStatementError ¶
func (*MissingReturnStatementError) DocumentationLink ¶ added in v1.7.0
func (*MissingReturnStatementError) DocumentationLink() string
func (*MissingReturnStatementError) Error ¶
func (*MissingReturnStatementError) Error() string
func (*MissingReturnStatementError) IsUserError ¶
func (*MissingReturnStatementError) IsUserError()
func (*MissingReturnStatementError) SecondaryError ¶ added in v1.7.0
func (*MissingReturnStatementError) SecondaryError() string
type MissingReturnValueError ¶
func (*MissingReturnValueError) DocumentationLink ¶ added in v1.7.0
func (*MissingReturnValueError) DocumentationLink() string
func (*MissingReturnValueError) Error ¶
func (e *MissingReturnValueError) Error() string
func (*MissingReturnValueError) IsUserError ¶
func (*MissingReturnValueError) IsUserError()
func (*MissingReturnValueError) SecondaryError ¶ added in v1.7.0
func (*MissingReturnValueError) SecondaryError() string
type MissingSwitchCaseStatementsError ¶
func (*MissingSwitchCaseStatementsError) DocumentationLink ¶ added in v1.7.0
func (*MissingSwitchCaseStatementsError) DocumentationLink() string
func (*MissingSwitchCaseStatementsError) EndPosition ¶
func (e *MissingSwitchCaseStatementsError) EndPosition(common.MemoryGauge) ast.Position
func (*MissingSwitchCaseStatementsError) Error ¶
func (*MissingSwitchCaseStatementsError) Error() string
func (*MissingSwitchCaseStatementsError) IsUserError ¶
func (*MissingSwitchCaseStatementsError) IsUserError()
func (*MissingSwitchCaseStatementsError) SecondaryError ¶ added in v1.7.0
func (*MissingSwitchCaseStatementsError) SecondaryError() string
func (*MissingSwitchCaseStatementsError) StartPosition ¶
func (e *MissingSwitchCaseStatementsError) StartPosition() ast.Position
type MissingTypeArgumentError ¶
func (*MissingTypeArgumentError) DocumentationLink ¶ added in v1.7.0
func (*MissingTypeArgumentError) DocumentationLink() string
func (*MissingTypeArgumentError) Error ¶
func (e *MissingTypeArgumentError) Error() string
func (*MissingTypeArgumentError) IsUserError ¶
func (*MissingTypeArgumentError) IsUserError()
func (*MissingTypeArgumentError) SecondaryError ¶ added in v1.7.0
func (e *MissingTypeArgumentError) SecondaryError() string
type MissingTypeError ¶ added in v1.8.0
func (*MissingTypeError) DocumentationLink ¶ added in v1.8.0
func (*MissingTypeError) DocumentationLink() string
func (*MissingTypeError) Error ¶ added in v1.8.0
func (e *MissingTypeError) Error() string
func (*MissingTypeError) IsUserError ¶ added in v1.8.0
func (*MissingTypeError) IsUserError()
func (*MissingTypeError) SecondaryError ¶ added in v1.8.0
func (*MissingTypeError) SecondaryError() string
type MultipleInterfaceDefaultImplementationsError ¶
type MultipleInterfaceDefaultImplementationsError struct {
CompositeKindedType CompositeKindedType
Member *Member
ast.Range
}
MultipleInterfaceDefaultImplementationsError
func (*MultipleInterfaceDefaultImplementationsError) DocumentationLink ¶ added in v1.7.0
func (*MultipleInterfaceDefaultImplementationsError) DocumentationLink() string
func (*MultipleInterfaceDefaultImplementationsError) Error ¶
func (e *MultipleInterfaceDefaultImplementationsError) Error() string
func (*MultipleInterfaceDefaultImplementationsError) IsUserError ¶
func (*MultipleInterfaceDefaultImplementationsError) IsUserError()
func (*MultipleInterfaceDefaultImplementationsError) SecondaryError ¶ added in v1.7.0
func (*MultipleInterfaceDefaultImplementationsError) SecondaryError() string
type NativeFunctionWithImplementationError ¶
func (*NativeFunctionWithImplementationError) Error ¶
func (*NativeFunctionWithImplementationError) Error() string
func (*NativeFunctionWithImplementationError) IsUserError ¶
func (*NativeFunctionWithImplementationError) IsUserError()
func (*NativeFunctionWithImplementationError) SecondaryError ¶ added in v1.7.0
func (*NativeFunctionWithImplementationError) SecondaryError() string
type NestedReferenceError ¶
type NestedReferenceError struct {
Type *ReferenceType
ast.Range
}
NestedReferenceError
func (*NestedReferenceError) DocumentationLink ¶ added in v1.7.0
func (*NestedReferenceError) DocumentationLink() string
func (*NestedReferenceError) Error ¶
func (e *NestedReferenceError) Error() string
func (*NestedReferenceError) IsUserError ¶
func (*NestedReferenceError) IsUserError()
func (*NestedReferenceError) SecondaryError ¶ added in v1.7.0
func (*NestedReferenceError) SecondaryError() string
type NominalType ¶
type NominalType interface {
Type
MemberMap() *StringMemberOrderedMap
}
supertype of interfaces and composites
type NonReferenceTypeReferenceError ¶
func (*NonReferenceTypeReferenceError) DocumentationLink ¶ added in v1.7.0
func (*NonReferenceTypeReferenceError) DocumentationLink() string
func (*NonReferenceTypeReferenceError) Error ¶
func (*NonReferenceTypeReferenceError) Error() string
func (*NonReferenceTypeReferenceError) IsUserError ¶
func (*NonReferenceTypeReferenceError) IsUserError()
func (*NonReferenceTypeReferenceError) SecondaryError ¶
func (e *NonReferenceTypeReferenceError) SecondaryError() string
type NonResourceTypeError ¶
func (*NonResourceTypeError) DocumentationLink ¶ added in v1.7.0
func (*NonResourceTypeError) DocumentationLink() string
func (*NonResourceTypeError) Error ¶
func (*NonResourceTypeError) Error() string
func (*NonResourceTypeError) IsUserError ¶
func (*NonResourceTypeError) IsUserError()
func (*NonResourceTypeError) SecondaryError ¶
func (e *NonResourceTypeError) SecondaryError() string
type NotCallableError ¶
func (*NotCallableError) DocumentationLink ¶ added in v1.7.0
func (*NotCallableError) DocumentationLink() string
func (*NotCallableError) Error ¶
func (e *NotCallableError) Error() string
func (*NotCallableError) IsUserError ¶
func (*NotCallableError) IsUserError()
func (*NotCallableError) SecondaryError ¶ added in v1.7.0
func (*NotCallableError) SecondaryError() string
type NotDeclaredError ¶
type NotDeclaredError struct {
Expression *ast.IdentifierExpression
Name string
Pos ast.Position
ExpectedKind common.DeclarationKind
}
func (*NotDeclaredError) DocumentationLink ¶ added in v1.7.0
func (*NotDeclaredError) DocumentationLink() string
func (*NotDeclaredError) EndPosition ¶
func (e *NotDeclaredError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*NotDeclaredError) Error ¶
func (e *NotDeclaredError) Error() string
func (*NotDeclaredError) IsUserError ¶
func (*NotDeclaredError) IsUserError()
func (*NotDeclaredError) SecondaryError ¶
func (*NotDeclaredError) SecondaryError() string
func (*NotDeclaredError) StartPosition ¶
func (e *NotDeclaredError) StartPosition() ast.Position
type NotDeclaredMemberError ¶
type NotDeclaredMemberError struct {
Type Type
Expression *ast.MemberExpression
Name string
ast.Range
SuggestMember bool
}
func (*NotDeclaredMemberError) Error ¶
func (e *NotDeclaredMemberError) Error() string
func (*NotDeclaredMemberError) IsUserError ¶
func (*NotDeclaredMemberError) IsUserError()
func (*NotDeclaredMemberError) SecondaryError ¶
func (e *NotDeclaredMemberError) SecondaryError() string
func (*NotDeclaredMemberError) SuggestFixes ¶
func (e *NotDeclaredMemberError) SuggestFixes(_ string) []errors.SuggestedFix[ast.TextEdit]
type NotEquatableTypeError ¶
func (*NotEquatableTypeError) DocumentationLink ¶ added in v1.7.0
func (*NotEquatableTypeError) DocumentationLink() string
func (*NotEquatableTypeError) Error ¶
func (e *NotEquatableTypeError) Error() string
func (*NotEquatableTypeError) IsUserError ¶
func (*NotEquatableTypeError) IsUserError()
func (*NotEquatableTypeError) SecondaryError ¶ added in v1.7.0
func (*NotEquatableTypeError) SecondaryError() string
type NotExportedError ¶
type NotExportedError struct {
Name string
ImportLocation common.Location
Available []string
Pos ast.Position
}
func (*NotExportedError) DocumentationLink ¶ added in v1.7.0
func (*NotExportedError) DocumentationLink() string
func (*NotExportedError) EndPosition ¶
func (e *NotExportedError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*NotExportedError) Error ¶
func (e *NotExportedError) Error() string
func (*NotExportedError) IsUserError ¶
func (*NotExportedError) IsUserError()
func (*NotExportedError) SecondaryError ¶
func (e *NotExportedError) SecondaryError() string
func (*NotExportedError) StartPosition ¶
func (e *NotExportedError) StartPosition() ast.Position
type NotIndexableTypeError ¶
func (*NotIndexableTypeError) DocumentationLink ¶ added in v1.7.0
func (*NotIndexableTypeError) DocumentationLink() string
func (*NotIndexableTypeError) Error ¶
func (e *NotIndexableTypeError) Error() string
func (*NotIndexableTypeError) IsUserError ¶
func (*NotIndexableTypeError) IsUserError()
func (*NotIndexableTypeError) SecondaryError ¶ added in v1.7.0
func (*NotIndexableTypeError) SecondaryError() string
type NotIndexingAssignableTypeError ¶
func (*NotIndexingAssignableTypeError) DocumentationLink ¶ added in v1.7.0
func (*NotIndexingAssignableTypeError) DocumentationLink() string
func (*NotIndexingAssignableTypeError) Error ¶
func (e *NotIndexingAssignableTypeError) Error() string
func (*NotIndexingAssignableTypeError) IsUserError ¶
func (*NotIndexingAssignableTypeError) IsUserError()
func (*NotIndexingAssignableTypeError) SecondaryError ¶ added in v1.7.0
func (*NotIndexingAssignableTypeError) SecondaryError() string
type NumericType ¶
type NumericType struct {
// contains filtered or unexported fields
}
NumericType represent all the types in the integer range and non-fractional ranged types.
func NewNumericType ¶
func NewNumericType(typeName string) *NumericType
func (*NumericType) AsSuperType ¶
func (t *NumericType) AsSuperType() *NumericType
func (*NumericType) ByteSize ¶
func (t *NumericType) ByteSize() int
func (*NumericType) CheckInstantiated ¶
func (*NumericType) CheckInstantiated(_ ast.HasPosition, _ common.MemoryGauge, _ func(err error))
func (*NumericType) ContainFieldsOrElements ¶
func (t *NumericType) ContainFieldsOrElements() bool
func (*NumericType) EffectiveInterfaceConformanceSet ¶ added in v1.3.0
func (t *NumericType) EffectiveInterfaceConformanceSet() *InterfaceSet
func (*NumericType) EffectiveInterfaceConformances ¶ added in v1.4.0
func (t *NumericType) EffectiveInterfaceConformances() []Conformance
func (*NumericType) Equal ¶
func (t *NumericType) Equal(other Type) bool
func (*NumericType) GetMembers ¶
func (t *NumericType) GetMembers() map[string]MemberResolver
func (*NumericType) ID ¶
func (t *NumericType) ID() TypeID
func (*NumericType) IsComparable ¶
func (t *NumericType) IsComparable() bool
func (*NumericType) IsEquatable ¶
func (*NumericType) IsEquatable() bool
func (*NumericType) IsExportable ¶
func (*NumericType) IsExportable(_ map[*Member]bool) bool
func (*NumericType) IsImportable ¶
func (t *NumericType) IsImportable(_ map[*Member]bool) bool
func (*NumericType) IsInvalidType ¶
func (*NumericType) IsInvalidType() bool
func (*NumericType) IsOrContainsReferenceType ¶
func (*NumericType) IsOrContainsReferenceType() bool
func (*NumericType) IsPrimitiveType ¶
func (*NumericType) IsPrimitiveType() bool
func (*NumericType) IsResourceType ¶
func (*NumericType) IsResourceType() bool
func (*NumericType) IsStorable ¶
func (*NumericType) IsStorable(_ map[*Member]bool) bool
func (*NumericType) IsSuperType ¶
func (t *NumericType) IsSuperType() bool
func (*NumericType) IsType ¶
func (*NumericType) IsType()
func (*NumericType) MaxInt ¶
func (t *NumericType) MaxInt() *big.Int
func (*NumericType) MinInt ¶
func (t *NumericType) MinInt() *big.Int
func (*NumericType) Precedence ¶ added in v1.9.4
func (*NumericType) Precedence() ast.TypePrecedence
func (*NumericType) QualifiedString ¶
func (t *NumericType) QualifiedString() string
func (*NumericType) Resolve ¶
func (t *NumericType) Resolve(_ *TypeParameterTypeOrderedMap) Type
func (*NumericType) Rewrite ¶ added in v1.8.12
func (t *NumericType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*NumericType) String ¶
func (t *NumericType) String() string
func (*NumericType) SupportsSaturatingAdd ¶
func (t *NumericType) SupportsSaturatingAdd() bool
func (*NumericType) SupportsSaturatingDivide ¶
func (t *NumericType) SupportsSaturatingDivide() bool
func (*NumericType) SupportsSaturatingMultiply ¶
func (t *NumericType) SupportsSaturatingMultiply() bool
func (*NumericType) SupportsSaturatingSubtract ¶
func (t *NumericType) SupportsSaturatingSubtract() bool
func (*NumericType) Tag ¶
func (t *NumericType) Tag() TypeTag
func (*NumericType) TypeAnnotationState ¶
func (*NumericType) TypeAnnotationState() TypeAnnotationState
func (*NumericType) Unify ¶
func (*NumericType) Unify( _ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), _ common.MemoryGauge, _ ast.HasPosition, ) bool
func (*NumericType) WithByteSize ¶
func (t *NumericType) WithByteSize(size int) *NumericType
func (*NumericType) WithIntRange ¶
func (t *NumericType) WithIntRange(min *big.Int, max *big.Int) *NumericType
func (*NumericType) WithSaturatingFunctions ¶
func (t *NumericType) WithSaturatingFunctions(saturatingArithmetic SaturatingArithmeticSupport) *NumericType
func (*NumericType) WithTag ¶
func (t *NumericType) WithTag(tag TypeTag) *NumericType
type Occurrence ¶
type Occurrences ¶
type Occurrences struct {
// contains filtered or unexported fields
}
func NewOccurrences ¶
func NewOccurrences() *Occurrences
func (*Occurrences) All ¶
func (o *Occurrences) All() []Occurrence
func (*Occurrences) Find ¶
func (o *Occurrences) Find(pos Position) *Occurrence
func (*Occurrences) FindAll ¶
func (o *Occurrences) FindAll(pos Position) []Occurrence
type OptionalType ¶
type OptionalType struct {
Type Type
// contains filtered or unexported fields
}
OptionalType represents the optional variant of another type
func NewOptionalType ¶
func NewOptionalType(memoryGauge common.MemoryGauge, typ Type) *OptionalType
func (*OptionalType) CheckInstantiated ¶
func (t *OptionalType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
func (*OptionalType) ContainFieldsOrElements ¶
func (t *OptionalType) ContainFieldsOrElements() bool
func (*OptionalType) Equal ¶
func (t *OptionalType) Equal(other Type) bool
func (*OptionalType) GetMembers ¶
func (t *OptionalType) GetMembers() map[string]MemberResolver
func (*OptionalType) ID ¶
func (t *OptionalType) ID() TypeID
func (*OptionalType) IsComparable ¶
func (*OptionalType) IsComparable() bool
func (*OptionalType) IsEquatable ¶
func (t *OptionalType) IsEquatable() bool
func (*OptionalType) IsExportable ¶
func (t *OptionalType) IsExportable(results map[*Member]bool) bool
func (*OptionalType) IsImportable ¶
func (t *OptionalType) IsImportable(results map[*Member]bool) bool
func (*OptionalType) IsInvalidType ¶
func (t *OptionalType) IsInvalidType() bool
func (*OptionalType) IsOrContainsReferenceType ¶
func (t *OptionalType) IsOrContainsReferenceType() bool
func (*OptionalType) IsPrimitiveType ¶
func (t *OptionalType) IsPrimitiveType() bool
func (*OptionalType) IsResourceType ¶
func (t *OptionalType) IsResourceType() bool
func (*OptionalType) IsStorable ¶
func (t *OptionalType) IsStorable(results map[*Member]bool) bool
func (*OptionalType) IsType ¶
func (*OptionalType) IsType()
func (*OptionalType) Precedence ¶ added in v1.9.4
func (*OptionalType) Precedence() ast.TypePrecedence
func (*OptionalType) QualifiedString ¶
func (t *OptionalType) QualifiedString() string
func (*OptionalType) Resolve ¶
func (t *OptionalType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
func (*OptionalType) Rewrite ¶ added in v1.8.12
func (t *OptionalType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*OptionalType) String ¶
func (t *OptionalType) String() string
func (*OptionalType) SupportedEntitlements ¶
func (t *OptionalType) SupportedEntitlements() *EntitlementSet
func (*OptionalType) Tag ¶
func (t *OptionalType) Tag() TypeTag
func (*OptionalType) TypeAnnotationState ¶
func (t *OptionalType) TypeAnnotationState() TypeAnnotationState
func (*OptionalType) Unify ¶
func (t *OptionalType) Unify( other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), memoryGauge common.MemoryGauge, outerRange ast.HasPosition, ) bool
type Parameter ¶
type Parameter struct {
TypeAnnotation TypeAnnotation
DefaultArgument Type
Label string
Identifier string
}
func (Parameter) EffectiveArgumentLabel ¶
EffectiveArgumentLabel returns the effective argument label that an argument in a call must use: If no argument label is declared for parameter, the parameter name is used as the argument label
func (Parameter) QualifiedString ¶
type ParameterizedType ¶
type ParameterizedType interface {
Type
TypeParameters() []*TypeParameter
Instantiate(
memoryGauge common.MemoryGauge,
typeArguments []Type,
astTypeArguments []*ast.TypeAnnotation,
report func(err error),
) Type
BaseType() Type
TypeArguments() []Type
}
ParameterizedType is a type which might have type parameters
type Position ¶
type Position struct {
// line number, starting at 1
Line int
// column number, starting at 0 (byte count)
Column int
}
func ASTToSemaPosition ¶
type PositionInfo ¶
type PositionInfo struct {
Occurrences *Occurrences
VariableOrigins map[*Variable]*Origin
MemberOrigins map[Type]map[string]*Origin
MemberAccesses *MemberAccesses
Ranges *Ranges
FunctionInvocations *FunctionInvocations
}
func NewPositionInfo ¶
func NewPositionInfo() *PositionInfo
type PostConditionsRewrite ¶
type PreviousResourceInvalidationNote ¶
type PreviousResourceInvalidationNote struct {
ResourceInvalidation
ast.Range
}
func (PreviousResourceInvalidationNote) Message ¶
func (n PreviousResourceInvalidationNote) Message() string
type PrimitiveAccess ¶
type PrimitiveAccess ast.PrimitiveAccess
func (PrimitiveAccess) Equal ¶
func (a PrimitiveAccess) Equal(other Access) bool
func (PrimitiveAccess) ID ¶
func (PrimitiveAccess) ID() TypeID
func (PrimitiveAccess) IsPrimitiveAccess ¶
func (PrimitiveAccess) IsPrimitiveAccess() bool
func (PrimitiveAccess) PermitsAccess ¶
func (a PrimitiveAccess) PermitsAccess(otherAccess Access) bool
func (PrimitiveAccess) QualifiedKeyword ¶
func (a PrimitiveAccess) QualifiedKeyword() string
func (PrimitiveAccess) QualifiedString ¶
func (a PrimitiveAccess) QualifiedString() string
func (PrimitiveAccess) String ¶
func (a PrimitiveAccess) String() string
type PurityCheckScope ¶
type PurityError ¶
func (*PurityError) DocumentationLink ¶ added in v1.7.0
func (*PurityError) DocumentationLink() string
func (*PurityError) Error ¶
func (*PurityError) Error() string
func (*PurityError) IsUserError ¶
func (*PurityError) IsUserError()
func (*PurityError) SecondaryError ¶ added in v1.7.0
func (*PurityError) SecondaryError() string
type Range ¶
type Range struct {
Type Type
Identifier string
DocString string
DeclarationKind common.DeclarationKind
}
type ReadOnlyTargetAssignmentError ¶
func (*ReadOnlyTargetAssignmentError) DocumentationLink ¶ added in v1.7.0
func (*ReadOnlyTargetAssignmentError) DocumentationLink() string
func (*ReadOnlyTargetAssignmentError) Error ¶
func (*ReadOnlyTargetAssignmentError) Error() string
func (*ReadOnlyTargetAssignmentError) IsUserError ¶
func (*ReadOnlyTargetAssignmentError) IsUserError()
func (*ReadOnlyTargetAssignmentError) SecondaryError ¶ added in v1.7.0
func (*ReadOnlyTargetAssignmentError) SecondaryError() string
type RedeclarationError ¶
type RedeclarationError struct {
PreviousPos *ast.Position
Name string
Pos ast.Position
Kind common.DeclarationKind
}
func (*RedeclarationError) DocumentationLink ¶ added in v1.7.0
func (*RedeclarationError) DocumentationLink() string
func (*RedeclarationError) EndPosition ¶
func (e *RedeclarationError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*RedeclarationError) Error ¶
func (e *RedeclarationError) Error() string
func (*RedeclarationError) ErrorNotes ¶
func (e *RedeclarationError) ErrorNotes() []errors.ErrorNote
func (*RedeclarationError) IsUserError ¶
func (*RedeclarationError) IsUserError()
func (*RedeclarationError) SecondaryError ¶ added in v1.7.0
func (*RedeclarationError) SecondaryError() string
func (*RedeclarationError) StartPosition ¶
func (e *RedeclarationError) StartPosition() ast.Position
type RedeclarationNote ¶
func (RedeclarationNote) Message ¶
func (RedeclarationNote) Message() string
type ReferenceToAnOptionalError ¶
type ReferenceToAnOptionalError struct {
ReferencedOptionalType *OptionalType
ast.Range
}
func (*ReferenceToAnOptionalError) DocumentationLink ¶ added in v1.7.0
func (*ReferenceToAnOptionalError) DocumentationLink() string
func (*ReferenceToAnOptionalError) Error ¶
func (*ReferenceToAnOptionalError) Error() string
func (*ReferenceToAnOptionalError) IsUserError ¶
func (*ReferenceToAnOptionalError) IsUserError()
func (*ReferenceToAnOptionalError) SecondaryError ¶
func (e *ReferenceToAnOptionalError) SecondaryError() string
type ReferenceType ¶
type ReferenceType struct {
Type Type
Authorization Access
// contains filtered or unexported fields
}
ReferenceType represents the reference to a value
func MaybeReferenceType ¶
func MaybeReferenceType(typ Type) (*ReferenceType, bool)
func NewReferenceType ¶
func NewReferenceType( memoryGauge common.MemoryGauge, authorization Access, typ Type, ) *ReferenceType
func (*ReferenceType) AllowsValueIndexingAssignment ¶
func (t *ReferenceType) AllowsValueIndexingAssignment() bool
func (*ReferenceType) CheckInstantiated ¶
func (t *ReferenceType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
func (*ReferenceType) ContainFieldsOrElements ¶
func (*ReferenceType) ContainFieldsOrElements() bool
func (*ReferenceType) ElementType ¶
func (t *ReferenceType) ElementType(isAssignment bool) Type
func (*ReferenceType) Equal ¶
func (t *ReferenceType) Equal(other Type) bool
func (*ReferenceType) GetMembers ¶
func (t *ReferenceType) GetMembers() map[string]MemberResolver
func (*ReferenceType) ID ¶
func (t *ReferenceType) ID() TypeID
func (*ReferenceType) IndexingType ¶
func (t *ReferenceType) IndexingType() Type
func (*ReferenceType) IsComparable ¶
func (*ReferenceType) IsComparable() bool
func (*ReferenceType) IsEquatable ¶
func (*ReferenceType) IsEquatable() bool
func (*ReferenceType) IsExportable ¶
func (t *ReferenceType) IsExportable(_ map[*Member]bool) bool
func (*ReferenceType) IsImportable ¶
func (t *ReferenceType) IsImportable(_ map[*Member]bool) bool
func (*ReferenceType) IsInvalidType ¶
func (t *ReferenceType) IsInvalidType() bool
func (*ReferenceType) IsOrContainsReferenceType ¶
func (*ReferenceType) IsOrContainsReferenceType() bool
func (*ReferenceType) IsPrimitiveType ¶
func (t *ReferenceType) IsPrimitiveType() bool
func (*ReferenceType) IsResourceType ¶
func (t *ReferenceType) IsResourceType() bool
func (*ReferenceType) IsStorable ¶
func (t *ReferenceType) IsStorable(_ map[*Member]bool) bool
func (*ReferenceType) IsType ¶
func (*ReferenceType) IsType()
func (*ReferenceType) IsValidIndexingType ¶
func (t *ReferenceType) IsValidIndexingType(ty Type) bool
func (*ReferenceType) Precedence ¶ added in v1.9.4
func (*ReferenceType) Precedence() ast.TypePrecedence
func (*ReferenceType) QualifiedString ¶
func (t *ReferenceType) QualifiedString() string
func (*ReferenceType) Resolve ¶
func (t *ReferenceType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
func (*ReferenceType) Rewrite ¶ added in v1.8.12
func (t *ReferenceType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*ReferenceType) String ¶
func (t *ReferenceType) String() string
func (*ReferenceType) Tag ¶
func (t *ReferenceType) Tag() TypeTag
func (*ReferenceType) TypeAnnotationState ¶
func (t *ReferenceType) TypeAnnotationState() TypeAnnotationState
func (*ReferenceType) TypeIndexingElementType ¶
func (*ReferenceType) Unify ¶
func (t *ReferenceType) Unify( other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), memoryGauge common.MemoryGauge, outerRange ast.HasPosition, ) bool
type ResolvedLocation ¶
type ResolvedLocation struct {
Location common.Location
Identifiers []ast.Identifier
}
type ResourceCapturingError ¶
func (*ResourceCapturingError) DocumentationLink ¶ added in v1.7.0
func (*ResourceCapturingError) DocumentationLink() string
func (*ResourceCapturingError) EndPosition ¶
func (e *ResourceCapturingError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*ResourceCapturingError) Error ¶
func (e *ResourceCapturingError) Error() string
func (*ResourceCapturingError) IsUserError ¶
func (*ResourceCapturingError) IsUserError()
func (*ResourceCapturingError) SecondaryError ¶ added in v1.7.0
func (*ResourceCapturingError) SecondaryError() string
func (*ResourceCapturingError) StartPosition ¶
func (e *ResourceCapturingError) StartPosition() ast.Position
type ResourceFieldNotInvalidatedError ¶
func (*ResourceFieldNotInvalidatedError) DocumentationLink ¶ added in v1.7.0
func (*ResourceFieldNotInvalidatedError) DocumentationLink() string
func (*ResourceFieldNotInvalidatedError) EndPosition ¶
func (e *ResourceFieldNotInvalidatedError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*ResourceFieldNotInvalidatedError) Error ¶
func (e *ResourceFieldNotInvalidatedError) Error() string
func (*ResourceFieldNotInvalidatedError) IsUserError ¶
func (*ResourceFieldNotInvalidatedError) IsUserError()
func (*ResourceFieldNotInvalidatedError) SecondaryError ¶
func (*ResourceFieldNotInvalidatedError) SecondaryError() string
func (*ResourceFieldNotInvalidatedError) StartPosition ¶
func (e *ResourceFieldNotInvalidatedError) StartPosition() ast.Position
type ResourceInfo ¶
type ResourceInfo struct {
Parent *ResourceInfo
// contains filtered or unexported fields
}
func (*ResourceInfo) Clone ¶
func (ris *ResourceInfo) Clone() ResourceInfo
Clone returns a new child resource invalidation set that contains all entries of this parent set. Changes to the returned set will only be applied in the returned set, not the parent.
func (ResourceInfo) DefinitivelyInvalidated ¶
func (ris ResourceInfo) DefinitivelyInvalidated() bool
func (*ResourceInfo) DeleteLocally ¶
func (ris *ResourceInfo) DeleteLocally(invalidation ResourceInvalidation)
DeleteLocally removes the given resource invalidation from this current set.
NOTE: the invalidation still might exist in a parent afterwards, i.e. call to Contains might still return true!
func (ResourceInfo) Invalidation ¶
func (ris ResourceInfo) Invalidation() *ResourceInvalidation
func (*ResourceInfo) MaybeRecordInvalidation ¶
func (ris *ResourceInfo) MaybeRecordInvalidation(invalidation ResourceInvalidation) ResourceInvalidation
MaybeRecordInvalidation records the given resource invalidation, if no invalidation has yet been recorded for the given resource.
type ResourceInvalidation ¶
type ResourceInvalidation struct {
Kind ResourceInvalidationKind
StartPos ast.Position
EndPos ast.Position
}
type ResourceInvalidationKind ¶
type ResourceInvalidationKind uint
const ( ResourceInvalidationKindUnknown ResourceInvalidationKind = iota ResourceInvalidationKindMoveDefinite ResourceInvalidationKindMovePotential ResourceInvalidationKindMoveTemporary ResourceInvalidationKindDestroyDefinite ResourceInvalidationKindDestroyPotential )
func (ResourceInvalidationKind) AsPotential ¶
func (i ResourceInvalidationKind) AsPotential() ResourceInvalidationKind
func (ResourceInvalidationKind) CoarseNoun ¶
func (i ResourceInvalidationKind) CoarseNoun() string
func (ResourceInvalidationKind) CoarsePassiveVerb ¶
func (i ResourceInvalidationKind) CoarsePassiveVerb() string
func (ResourceInvalidationKind) DetailedNoun ¶
func (i ResourceInvalidationKind) DetailedNoun() string
func (ResourceInvalidationKind) IsDefinite ¶
func (i ResourceInvalidationKind) IsDefinite() bool
func (ResourceInvalidationKind) String ¶
func (i ResourceInvalidationKind) String() string
type ResourceLossError ¶
func (*ResourceLossError) DocumentationLink ¶ added in v1.7.0
func (*ResourceLossError) DocumentationLink() string
func (*ResourceLossError) Error ¶
func (*ResourceLossError) Error() string
func (*ResourceLossError) IsUserError ¶
func (*ResourceLossError) IsUserError()
func (*ResourceLossError) SecondaryError ¶ added in v1.7.0
func (*ResourceLossError) SecondaryError() string
type ResourceMethodBindingError ¶
func (*ResourceMethodBindingError) DocumentationLink ¶ added in v1.7.0
func (*ResourceMethodBindingError) DocumentationLink() string
func (*ResourceMethodBindingError) Error ¶
func (*ResourceMethodBindingError) Error() string
func (*ResourceMethodBindingError) IsUserError ¶
func (*ResourceMethodBindingError) IsUserError()
func (*ResourceMethodBindingError) SecondaryError ¶ added in v1.7.0
func (*ResourceMethodBindingError) SecondaryError() string
type ResourceUseAfterInvalidationError ¶
type ResourceUseAfterInvalidationError struct {
Invalidation ResourceInvalidation
ast.Range
}
func (*ResourceUseAfterInvalidationError) DocumentationLink ¶ added in v1.7.0
func (*ResourceUseAfterInvalidationError) DocumentationLink() string
func (*ResourceUseAfterInvalidationError) Error ¶
func (e *ResourceUseAfterInvalidationError) Error() string
func (*ResourceUseAfterInvalidationError) ErrorNotes ¶
func (e *ResourceUseAfterInvalidationError) ErrorNotes() []errors.ErrorNote
func (*ResourceUseAfterInvalidationError) IsUserError ¶
func (*ResourceUseAfterInvalidationError) IsUserError()
func (*ResourceUseAfterInvalidationError) SecondaryError ¶
func (e *ResourceUseAfterInvalidationError) SecondaryError() string
type Resources ¶
type Resources struct {
// contains filtered or unexported fields
}
Resources is a map which contains invalidation info for resources.
func NewResources ¶
func NewResources() *Resources
func (*Resources) ForEach ¶
func (ris *Resources) ForEach(f func(resource Resource, info ResourceInfo))
func (*Resources) Get ¶
func (ris *Resources) Get(resource Resource) ResourceInfo
func (*Resources) MaybeRecordInvalidation ¶
func (ris *Resources) MaybeRecordInvalidation(resource Resource, invalidation ResourceInvalidation)
MaybeRecordInvalidation records the given resource invalidation, if no invalidation has yet been recorded for the given resource.
func (*Resources) MergeBranches ¶
func (ris *Resources) MergeBranches( thenResources *Resources, thenReturnInfo *ReturnInfo, elseResources *Resources, elseReturnInfo *ReturnInfo, )
MergeBranches merges the given resources from two branches into these resources. Invalidations occurring in both branches are considered definitive, other new invalidations are only considered potential. The else resources are optional.
func (*Resources) RemoveTemporaryMoveInvalidation ¶
func (ris *Resources) RemoveTemporaryMoveInvalidation(resource Resource, invalidation ResourceInvalidation)
RemoveTemporaryMoveInvalidation removes the given invalidation from the set of invalidations for the given resource.
type ResultVariableConflictError ¶
type ResultVariableConflictError struct {
Kind common.DeclarationKind
Pos ast.Position
ReturnTypeRange ast.Range
PostConditionsRange ast.Range
}
func (*ResultVariableConflictError) DocumentationLink ¶ added in v1.7.0
func (*ResultVariableConflictError) DocumentationLink() string
func (*ResultVariableConflictError) EndPosition ¶
func (e *ResultVariableConflictError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*ResultVariableConflictError) Error ¶
func (e *ResultVariableConflictError) Error() string
func (*ResultVariableConflictError) ErrorNotes ¶
func (e *ResultVariableConflictError) ErrorNotes() []errors.ErrorNote
func (*ResultVariableConflictError) IsUserError ¶
func (*ResultVariableConflictError) IsUserError()
func (*ResultVariableConflictError) SecondaryError ¶
func (*ResultVariableConflictError) SecondaryError() string
func (*ResultVariableConflictError) StartPosition ¶
func (e *ResultVariableConflictError) StartPosition() ast.Position
type ResultVariablePostConditionsNote ¶
func (ResultVariablePostConditionsNote) Message ¶
func (ResultVariablePostConditionsNote) Message() string
type ResultVariableReturnTypeNote ¶
func (ResultVariableReturnTypeNote) Message ¶
func (ResultVariableReturnTypeNote) Message() string
type ReturnInfo ¶
type ReturnInfo struct {
// JumpOffsets contains the offsets of all jumps
// (break or continue statements), potential or definite.
//
// If non-empty, indicates that (the branch of) the function
// contains a potential break or continue statement
JumpOffsets *persistent.OrderedSet[int]
// MaybeReturned indicates that (the branch of) the function
// contains a potentially taken return statement
MaybeReturned bool
// DefinitelyReturned indicates that (the branch of) the function
// contains a definite return statement
DefinitelyReturned bool
// DefinitelyHalted indicates that (the branch of) the function
// contains a definite halt (a function call with a Never return type)
DefinitelyHalted bool
// DefinitelyExited indicates that (the branch of)
// the function either contains a definite return statement,
// contains a definite halt (a function call with a Never return type),
// or both.
//
// NOTE: this is NOT the same DefinitelyReturned || DefinitelyHalted:
// For example, for the following program:
//
// if ... {
// return
//
// // DefinitelyReturned = true
// // DefinitelyHalted = false
// // DefinitelyExited = true
// } else {
// panic(...)
//
// // DefinitelyReturned = false
// // DefinitelyHalted = true
// // DefinitelyExited = true
// }
//
// // DefinitelyReturned = false
// // DefinitelyHalted = false
// // DefinitelyExited = true
DefinitelyExited bool
// DefinitelyJumped indicates that (the branch of) the function
// contains a definite break or continue statement
DefinitelyJumped bool
}
ReturnInfo tracks control-flow information
func NewReturnInfo ¶
func NewReturnInfo() *ReturnInfo
func (*ReturnInfo) AddJumpOffset ¶
func (ri *ReturnInfo) AddJumpOffset(offset int)
func (*ReturnInfo) Clone ¶
func (ri *ReturnInfo) Clone() *ReturnInfo
func (*ReturnInfo) IsUnreachable ¶
func (ri *ReturnInfo) IsUnreachable() bool
func (*ReturnInfo) MaybeJumped ¶
func (ri *ReturnInfo) MaybeJumped() bool
func (*ReturnInfo) MergeBranches ¶
func (ri *ReturnInfo) MergeBranches(thenReturnInfo *ReturnInfo, elseReturnInfo *ReturnInfo)
func (*ReturnInfo) MergePotentiallyUnevaluated ¶
func (ri *ReturnInfo) MergePotentiallyUnevaluated(temporaryReturnInfo *ReturnInfo)
func (*ReturnInfo) WithNewJumpTarget ¶
func (ri *ReturnInfo) WithNewJumpTarget(f func())
type ReturnStatementTypes ¶
type RuntimeCastTypes ¶
type RuntimeTypeConstructor ¶
type RuntimeTypeConstructor struct {
Name string
Value *FunctionType
DocString string
}
type SaturatingArithmeticType ¶
type SaturatingArithmeticType interface {
Type
SupportsSaturatingAdd() bool
SupportsSaturatingSubtract() bool
SupportsSaturatingMultiply() bool
SupportsSaturatingDivide() bool
}
SaturatingArithmeticType is a type that supports saturating arithmetic functions
type SemanticError ¶
type SemanticError interface {
errors.UserError
ast.HasPosition
// contains filtered or unexported methods
}
type SignatureAlgorithm ¶
type SignatureAlgorithm uint8
const ( SignatureAlgorithmUnknown SignatureAlgorithm = iota SignatureAlgorithmECDSA_P256 SignatureAlgorithmECDSA_secp256k1 SignatureAlgorithmBLS_BLS12_381 )
NOTE: only add new algorithms, do *NOT* change existing items, reuse raw values for other items, swap the order, etc.
Existing stored values use these raw values and should not change
IMPORTANT: update SignatureAlgorithms
func (SignatureAlgorithm) DocString ¶
func (algo SignatureAlgorithm) DocString() string
func (SignatureAlgorithm) Name ¶
func (algo SignatureAlgorithm) Name() string
Name returns the string representation of this signing algorithm.
func (SignatureAlgorithm) RawValue ¶
func (algo SignatureAlgorithm) RawValue() uint8
func (SignatureAlgorithm) String ¶
func (i SignatureAlgorithm) String() string
type SimpleType ¶
type SimpleType struct {
ValueIndexingInfo ValueIndexingInfo
NestedTypes *StringTypeOrderedMap
Members func(*SimpleType) map[string]MemberResolver
QualifiedName string
TypeID TypeID
Name string
TypeTag TypeTag
Importable bool
Exportable bool
Equatable bool
Comparable bool
Storable bool
Primitive bool
IsResource bool
ContainFields bool
// contains filtered or unexported fields
}
SimpleType represents a simple nominal type.
func (*SimpleType) AllowsValueIndexingAssignment ¶
func (t *SimpleType) AllowsValueIndexingAssignment() bool
func (*SimpleType) CheckInstantiated ¶
func (t *SimpleType) CheckInstantiated(_ ast.HasPosition, _ common.MemoryGauge, _ func(err error))
func (*SimpleType) CompositeKind ¶
func (t *SimpleType) CompositeKind() common.CompositeKind
func (*SimpleType) ContainFieldsOrElements ¶
func (t *SimpleType) ContainFieldsOrElements() bool
func (*SimpleType) EffectiveInterfaceConformanceSet ¶ added in v1.3.0
func (t *SimpleType) EffectiveInterfaceConformanceSet() *InterfaceSet
func (*SimpleType) EffectiveInterfaceConformances ¶ added in v1.4.0
func (t *SimpleType) EffectiveInterfaceConformances() []Conformance
func (*SimpleType) ElementType ¶
func (t *SimpleType) ElementType(isAssignment bool) Type
func (*SimpleType) Equal ¶
func (t *SimpleType) Equal(other Type) bool
func (*SimpleType) GetMembers ¶
func (t *SimpleType) GetMembers() map[string]MemberResolver
func (*SimpleType) GetNestedTypes ¶
func (t *SimpleType) GetNestedTypes() *StringTypeOrderedMap
func (*SimpleType) ID ¶
func (t *SimpleType) ID() TypeID
func (*SimpleType) IndexingType ¶
func (t *SimpleType) IndexingType() Type
func (*SimpleType) IsComparable ¶
func (t *SimpleType) IsComparable() bool
func (*SimpleType) IsContainerType ¶
func (t *SimpleType) IsContainerType() bool
func (*SimpleType) IsEquatable ¶
func (t *SimpleType) IsEquatable() bool
func (*SimpleType) IsExportable ¶
func (t *SimpleType) IsExportable(_ map[*Member]bool) bool
func (*SimpleType) IsImportable ¶
func (t *SimpleType) IsImportable(_ map[*Member]bool) bool
func (*SimpleType) IsInvalidType ¶
func (t *SimpleType) IsInvalidType() bool
func (*SimpleType) IsOrContainsReferenceType ¶
func (*SimpleType) IsOrContainsReferenceType() bool
func (*SimpleType) IsPrimitiveType ¶
func (t *SimpleType) IsPrimitiveType() bool
func (*SimpleType) IsResourceType ¶
func (t *SimpleType) IsResourceType() bool
func (*SimpleType) IsStorable ¶
func (t *SimpleType) IsStorable(_ map[*Member]bool) bool
func (*SimpleType) IsType ¶
func (*SimpleType) IsType()
func (*SimpleType) Precedence ¶ added in v1.9.4
func (*SimpleType) Precedence() ast.TypePrecedence
func (*SimpleType) QualifiedString ¶
func (t *SimpleType) QualifiedString() string
func (*SimpleType) Resolve ¶
func (t *SimpleType) Resolve(_ *TypeParameterTypeOrderedMap) Type
func (*SimpleType) Rewrite ¶ added in v1.8.12
func (t *SimpleType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*SimpleType) String ¶
func (t *SimpleType) String() string
func (*SimpleType) Tag ¶
func (t *SimpleType) Tag() TypeTag
func (*SimpleType) TypeAnnotationState ¶
func (*SimpleType) TypeAnnotationState() TypeAnnotationState
func (*SimpleType) Unify ¶
func (*SimpleType) Unify( _ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), _ common.MemoryGauge, _ ast.HasPosition, ) bool
type SpecialFunctionDefaultImplementationError ¶
type SpecialFunctionDefaultImplementationError struct {
Container ast.Declaration
Identifier *ast.Identifier
KindName string
}
SpecialFunctionDefaultImplementationError
func (*SpecialFunctionDefaultImplementationError) DocumentationLink ¶ added in v1.7.0
func (*SpecialFunctionDefaultImplementationError) DocumentationLink() string
func (*SpecialFunctionDefaultImplementationError) EndPosition ¶
func (e *SpecialFunctionDefaultImplementationError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*SpecialFunctionDefaultImplementationError) Error ¶
func (e *SpecialFunctionDefaultImplementationError) Error() string
func (*SpecialFunctionDefaultImplementationError) IsUserError ¶
func (*SpecialFunctionDefaultImplementationError) IsUserError()
func (*SpecialFunctionDefaultImplementationError) SecondaryError ¶ added in v1.7.0
func (*SpecialFunctionDefaultImplementationError) SecondaryError() string
func (*SpecialFunctionDefaultImplementationError) StartPosition ¶
func (e *SpecialFunctionDefaultImplementationError) StartPosition() ast.Position
type StringImportElementOrderedMap ¶
type StringImportElementOrderedMap = orderedmap.OrderedMap[string, ImportElement]
type StringMemberOrderedMap ¶
type StringMemberOrderedMap = orderedmap.OrderedMap[string, *Member]
func MembersAsMap ¶
func MembersAsMap(members []*Member) *StringMemberOrderedMap
type StringTypeOrderedMap ¶
type StringTypeOrderedMap = orderedmap.OrderedMap[string, Type]
type StringVariableOrderedMap ¶
type StringVariableOrderedMap = orderedmap.OrderedMap[string, *Variable]
type SwapStatementTypes ¶
type SwitchDefaultPositionError ¶
func (*SwitchDefaultPositionError) DocumentationLink ¶ added in v1.7.0
func (*SwitchDefaultPositionError) DocumentationLink() string
func (*SwitchDefaultPositionError) Error ¶
func (*SwitchDefaultPositionError) Error() string
func (*SwitchDefaultPositionError) IsUserError ¶
func (*SwitchDefaultPositionError) IsUserError()
func (*SwitchDefaultPositionError) SecondaryError ¶ added in v1.7.0
func (*SwitchDefaultPositionError) SecondaryError() string
type TransactionMissingPrepareError ¶
func (*TransactionMissingPrepareError) DocumentationLink ¶ added in v1.7.0
func (*TransactionMissingPrepareError) DocumentationLink() string
func (*TransactionMissingPrepareError) EndPosition ¶
func (e *TransactionMissingPrepareError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*TransactionMissingPrepareError) Error ¶
func (e *TransactionMissingPrepareError) Error() string
func (*TransactionMissingPrepareError) IsUserError ¶
func (*TransactionMissingPrepareError) IsUserError()
func (*TransactionMissingPrepareError) SecondaryError ¶ added in v1.7.0
func (*TransactionMissingPrepareError) SecondaryError() string
func (*TransactionMissingPrepareError) StartPosition ¶
func (e *TransactionMissingPrepareError) StartPosition() ast.Position
type TransactionType ¶
type TransactionType struct {
Location common.Location
Fields []string
PrepareParameters []Parameter
Parameters []Parameter
Members *StringMemberOrderedMap
// contains filtered or unexported fields
}
func (*TransactionType) CheckInstantiated ¶
func (t *TransactionType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
func (*TransactionType) ContainFieldsOrElements ¶
func (*TransactionType) ContainFieldsOrElements() bool
func (*TransactionType) EntryPointFunctionType ¶
func (t *TransactionType) EntryPointFunctionType() *FunctionType
func (*TransactionType) Equal ¶
func (*TransactionType) Equal(other Type) bool
func (*TransactionType) ExecuteFunctionType ¶
func (*TransactionType) ExecuteFunctionType() *FunctionType
func (*TransactionType) GetMembers ¶
func (t *TransactionType) GetMembers() map[string]MemberResolver
func (*TransactionType) ID ¶
func (t *TransactionType) ID() TypeID
func (*TransactionType) IsComparable ¶
func (*TransactionType) IsComparable() bool
func (*TransactionType) IsEquatable ¶
func (*TransactionType) IsEquatable() bool
func (*TransactionType) IsExportable ¶
func (*TransactionType) IsExportable(_ map[*Member]bool) bool
func (*TransactionType) IsImportable ¶
func (t *TransactionType) IsImportable(_ map[*Member]bool) bool
func (*TransactionType) IsInvalidType ¶
func (*TransactionType) IsInvalidType() bool
func (*TransactionType) IsOrContainsReferenceType ¶
func (*TransactionType) IsOrContainsReferenceType() bool
func (*TransactionType) IsPrimitiveType ¶
func (*TransactionType) IsPrimitiveType() bool
func (*TransactionType) IsResourceType ¶
func (*TransactionType) IsResourceType() bool
func (*TransactionType) IsStorable ¶
func (*TransactionType) IsStorable(_ map[*Member]bool) bool
func (*TransactionType) IsType ¶
func (*TransactionType) IsType()
func (*TransactionType) Precedence ¶ added in v1.9.4
func (*TransactionType) Precedence() ast.TypePrecedence
func (*TransactionType) PrepareFunctionType ¶
func (t *TransactionType) PrepareFunctionType() *FunctionType
func (*TransactionType) QualifiedString ¶
func (*TransactionType) QualifiedString() string
func (*TransactionType) Resolve ¶
func (t *TransactionType) Resolve(_ *TypeParameterTypeOrderedMap) Type
func (*TransactionType) Rewrite ¶ added in v1.8.12
func (t *TransactionType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*TransactionType) String ¶
func (*TransactionType) String() string
func (*TransactionType) Tag ¶
func (t *TransactionType) Tag() TypeTag
func (*TransactionType) TypeAnnotationState ¶
func (*TransactionType) TypeAnnotationState() TypeAnnotationState
func (*TransactionType) Unify ¶
func (*TransactionType) Unify( _ Type, _ *TypeParameterTypeOrderedMap, _ func(err error), _ common.MemoryGauge, _ ast.HasPosition, ) bool
type Type ¶
type Type interface {
IsType()
ID() TypeID
Tag() TypeTag
String() string
QualifiedString() string
Precedence() ast.TypePrecedence
Equal(other Type) bool
// IsPrimitiveType returns true if the type is itself a primitive,
// Note that the container of a primitive type (e.g. optionals, arrays, dictionaries, etc.)
// are not a primitive.
IsPrimitiveType() bool
// IsResourceType returns true if the type is itself a resource (a `CompositeType` with resource kind),
// or it contains a resource type (e.g. for optionals, arrays, dictionaries, etc.)
IsResourceType() bool
// IsInvalidType returns true if the type is itself the invalid type (see `InvalidType`),
// or it contains an invalid type (e.g. for optionals, arrays, dictionaries, etc.)
IsInvalidType() bool
// IsOrContainsReferenceType returns true if the type is itself a reference type,
// or it contains a reference type (e.g. for optionals, arrays, dictionaries, etc.)
IsOrContainsReferenceType() bool
// IsStorable returns true if the type is allowed to be a stored,
// e.g. in a field of a composite type.
//
// The check if the type is storable is recursive,
// the results parameter prevents cycles:
// it is checked at the start of the recursively called function,
// and pre-set before a recursive call.
IsStorable(results map[*Member]bool) bool
// IsExportable returns true if a value of this type can be exported.
//
// The check if the type is exportable is recursive,
// the results parameter prevents cycles:
// it is checked at the start of the recursively called function,
// and pre-set before a recursive call.
IsExportable(results map[*Member]bool) bool
// IsImportable returns true if values of the type can be imported to a program as arguments
IsImportable(results map[*Member]bool) bool
// IsEquatable returns true if values of the type can be equated
IsEquatable() bool
// IsComparable returns true if values of the type can be compared
IsComparable() bool
// ContainFieldsOrElements returns true if value of the type can have nested values (fields or elements).
// This notion is to indicate that a type can be used to access its nested values using
// either index-expression or member-expression. e.g. `foo.bar` or `foo[bar]`.
// This is used to determine if a field/element of this type should be returning a reference or not.
//
// Only a subset of types has this characteristic. e.g:
// - Composites
// - Interfaces
// - Arrays (Variable/Constant sized)
// - Dictionaries
// - Intersection types
// - Optionals of the above.
// - Then there are also built-in simple types, like StorageCapabilityControllerType, BlockType, etc.
// where the type is implemented as a simple type, but they also have fields.
//
// This is different from the existing `ValueIndexableType` in the sense that it is also implemented by simple types
// but not all simple types are indexable.
// On the other-hand, some indexable types (e.g. String) shouldn't be treated/returned as references.
//
ContainFieldsOrElements() bool
TypeAnnotationState() TypeAnnotationState
Rewrite(rewrite TypeRewriter) (result Type, rewritten bool)
// Unify attempts to unify the given type with this type, i.e., resolve type parameters
// in generic types (see `GenericType`) using the given type parameters.
//
// For a generic type, unification assigns a given type with a type parameter.
//
// If the type parameter has not been previously unified with a type,
// through an explicitly provided type argument in an invocation
// or through a previous unification, the type parameter is assigned the given type.
//
// If the type parameter has already been previously unified with a type,
// the type parameter's unified .
//
// The boolean return value indicates if a generic type was encountered during unification.
// For primitives (e.g. `Int`, `String`, etc.) it would be false, as .
// For types with nested types (e.g. optionals, arrays, and dictionaries)
// the result is the successful unification of the inner types.
//
// The boolean return value does *not* indicate if unification succeeded or not.
//
Unify(
other Type,
typeArguments *TypeParameterTypeOrderedMap,
report func(err error),
memoryGauge common.MemoryGauge,
outerRange ast.HasPosition,
) bool
// Resolve returns a type that is free of generic types (see `GenericType`),
// i.e. it resolves the type parameters in generic types given the type parameter
// unifications of `typeParameters`.
//
// If resolution fails, it returns `nil`.
//
Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
GetMembers() map[string]MemberResolver
CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
}
func CheckIntersectionType ¶
func CheckIntersectionType( memoryGauge common.MemoryGauge, types []*InterfaceType, report func(func(*ast.IntersectionType) error), ) Type
func CheckPathLiteral ¶
func CheckPathLiteral( gauge common.MemoryGauge, domain string, identifier string, domainRange ast.HasPosition, identifierRange ast.HasPosition, ) (Type, error)
func LeastCommonSuperType ¶
func MustInstantiate ¶
func MustInstantiate(t ParameterizedType, typeArguments ...Type) Type
func RewriteWithIntersectionTypes ¶ added in v1.8.12
RewriteWithIntersectionTypes rewrites interface types (I) to intersection types ({I})
func RewriteWithOptionalReferenceTypes ¶ added in v1.8.12
RewriteWithOptionalReferenceTypes rewrites references to optionals (&(T?)) to optional references ((&T)?)
func TypeActivationNestedType ¶
func TypeActivationNestedType(typeActivation *VariableActivation, qualifiedIdentifier string) Type
func UnwrapOptionalType ¶
UnwrapOptionalType returns the type if it is not an optional type, or the inner-most type if it is (optional types are repeatedly unwrapped)
type TypeAnnotation ¶
func NewTypeAnnotation ¶
func NewTypeAnnotation(ty Type) TypeAnnotation
func (TypeAnnotation) Equal ¶
func (a TypeAnnotation) Equal(other TypeAnnotation) bool
func (TypeAnnotation) QualifiedString ¶
func (a TypeAnnotation) QualifiedString() string
func (TypeAnnotation) String ¶
func (a TypeAnnotation) String() string
func (TypeAnnotation) TypeAnnotationState ¶
func (a TypeAnnotation) TypeAnnotationState() TypeAnnotationState
type TypeAnnotationRequiredError ¶
func (*TypeAnnotationRequiredError) DocumentationLink ¶ added in v1.7.0
func (*TypeAnnotationRequiredError) DocumentationLink() string
func (*TypeAnnotationRequiredError) EndPosition ¶
func (e *TypeAnnotationRequiredError) EndPosition(common.MemoryGauge) ast.Position
func (*TypeAnnotationRequiredError) Error ¶
func (e *TypeAnnotationRequiredError) Error() string
func (*TypeAnnotationRequiredError) IsUserError ¶
func (*TypeAnnotationRequiredError) IsUserError()
func (*TypeAnnotationRequiredError) SecondaryError ¶ added in v1.7.0
func (*TypeAnnotationRequiredError) SecondaryError() string
func (*TypeAnnotationRequiredError) StartPosition ¶
func (e *TypeAnnotationRequiredError) StartPosition() ast.Position
type TypeAnnotationState ¶
type TypeAnnotationState uint
const ( TypeAnnotationStateUnknown TypeAnnotationState = iota TypeAnnotationStateValid // Resource annotations (@) are invalid on non-resource types (e.g. @Int) TypeAnnotationStateInvalidResourceAnnotation // Resource types must have a resource annotation (@) TypeAnnotationStateMissingResourceAnnotation // Entitlement types must only appear in `access` or `auth` modifier positions TypeAnnotationStateDirectEntitlementTypeAnnotation // attachments types must never appear directly as annotations, and instead // should appear only in reference types: e.g. `&A` or `[&A]` TypeAnnotationStateDirectAttachmentTypeAnnotation )
func (TypeAnnotationState) String ¶
func (i TypeAnnotationState) String() string
type TypeArgumentsCheck ¶
type TypeArgumentsCheck func( memoryGauge common.MemoryGauge, typeArguments *TypeParameterTypeOrderedMap, astTypeArguments []*ast.TypeAnnotation, invocationRange ast.HasPosition, report func(err error), )
type TypeCheckFunc ¶
type TypeCheckFunc = func() Type
type TypeDeclaration ¶
type TypeID ¶
func InclusiveRangeTypeID ¶
type TypeIDOrderedSet ¶
type TypeIDOrderedSet = orderedmap.OrderedMap[common.TypeID, struct{}]
type TypeIndexableType ¶
type TypeIndexableType interface {
Type
IsValidIndexingType(indexingType Type) bool
TypeIndexingElementType(indexingType Type, astRange func() ast.Range) (Type, error)
// contains filtered or unexported methods
}
TypeIndexableType is a type which can be indexed into using a type
type TypeMismatchError ¶
type TypeMismatchError struct {
ExpectedType Type
ActualType Type
Expression ast.Expression
ast.Range
}
func (*TypeMismatchError) DocumentationLink ¶ added in v1.7.0
func (*TypeMismatchError) DocumentationLink() string
func (*TypeMismatchError) Error ¶
func (*TypeMismatchError) Error() string
func (*TypeMismatchError) IsUserError ¶
func (*TypeMismatchError) IsUserError()
func (*TypeMismatchError) SecondaryError ¶
func (e *TypeMismatchError) SecondaryError() string
type TypeMismatchWithDescriptionError ¶
type TypeMismatchWithDescriptionError struct {
ActualType Type
ExpectedTypeDescription string
ast.Range
}
func (*TypeMismatchWithDescriptionError) DocumentationLink ¶ added in v1.7.0
func (*TypeMismatchWithDescriptionError) DocumentationLink() string
func (*TypeMismatchWithDescriptionError) Error ¶
func (*TypeMismatchWithDescriptionError) Error() string
func (*TypeMismatchWithDescriptionError) IsUserError ¶
func (*TypeMismatchWithDescriptionError) IsUserError()
func (*TypeMismatchWithDescriptionError) SecondaryError ¶
func (e *TypeMismatchWithDescriptionError) SecondaryError() string
type TypeParameter ¶
func (TypeParameter) Equal ¶
func (p TypeParameter) Equal(other *TypeParameter) bool
func (TypeParameter) IDPart ¶ added in v1.3.4
func (p TypeParameter) IDPart() string
func (TypeParameter) QualifiedString ¶
func (p TypeParameter) QualifiedString() string
func (TypeParameter) String ¶
func (p TypeParameter) String() string
func (TypeParameter) TypeBoundEqual ¶ added in v1.3.4
func (p TypeParameter) TypeBoundEqual(ty Type) bool
type TypeParameterTypeInferenceError ¶
func (*TypeParameterTypeInferenceError) DocumentationLink ¶ added in v1.7.0
func (*TypeParameterTypeInferenceError) DocumentationLink() string
func (*TypeParameterTypeInferenceError) Error ¶
func (e *TypeParameterTypeInferenceError) Error() string
func (*TypeParameterTypeInferenceError) IsUserError ¶
func (*TypeParameterTypeInferenceError) IsUserError()
func (*TypeParameterTypeInferenceError) SecondaryError ¶ added in v1.7.0
func (e *TypeParameterTypeInferenceError) SecondaryError() string
type TypeParameterTypeMismatchError ¶
type TypeParameterTypeMismatchError struct {
TypeParameter *TypeParameter
ExpectedType Type
ActualType Type
ast.Range
}
func (*TypeParameterTypeMismatchError) DocumentationLink ¶ added in v1.7.0
func (*TypeParameterTypeMismatchError) DocumentationLink() string
func (*TypeParameterTypeMismatchError) Error ¶
func (*TypeParameterTypeMismatchError) Error() string
func (*TypeParameterTypeMismatchError) IsUserError ¶
func (*TypeParameterTypeMismatchError) IsUserError()
func (*TypeParameterTypeMismatchError) SecondaryError ¶
func (e *TypeParameterTypeMismatchError) SecondaryError() string
type TypeParameterTypeOrderedMap ¶
type TypeParameterTypeOrderedMap = orderedmap.OrderedMap[*TypeParameter, Type]
type TypeRewriter ¶ added in v1.8.12
type TypeTag ¶
type TypeTag struct {
// contains filtered or unexported fields
}
TypeTag is a bitmask representation for types. Each type has a unique dedicated bit/bit-pattern in the bitmask. The mask consist of two sections: `lowerMask` and the `upperMask`. Each section can represent 64-types.
func (TypeTag) ContainsAny ¶
type UnauthorizedReferenceAssignmentError ¶
type UnauthorizedReferenceAssignmentError struct {
}
func (*UnauthorizedReferenceAssignmentError) DocumentationLink ¶ added in v1.7.0
func (*UnauthorizedReferenceAssignmentError) DocumentationLink() string
func (*UnauthorizedReferenceAssignmentError) Error ¶
func (e *UnauthorizedReferenceAssignmentError) Error() string
func (*UnauthorizedReferenceAssignmentError) IsUserError ¶
func (*UnauthorizedReferenceAssignmentError) IsUserError()
func (*UnauthorizedReferenceAssignmentError) SecondaryError ¶
func (e *UnauthorizedReferenceAssignmentError) SecondaryError() string
type UnconvertibleTypeError ¶ added in v1.7.0
func (*UnconvertibleTypeError) Error ¶ added in v1.7.0
func (e *UnconvertibleTypeError) Error() string
func (*UnconvertibleTypeError) IsUserError ¶ added in v1.7.0
func (*UnconvertibleTypeError) IsUserError()
func (*UnconvertibleTypeError) SecondaryError ¶ added in v1.7.0
func (*UnconvertibleTypeError) SecondaryError() string
type UninitializedFieldAccessError ¶
func (*UninitializedFieldAccessError) DocumentationLink ¶ added in v1.7.0
func (*UninitializedFieldAccessError) DocumentationLink() string
func (*UninitializedFieldAccessError) EndPosition ¶
func (e *UninitializedFieldAccessError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*UninitializedFieldAccessError) Error ¶
func (e *UninitializedFieldAccessError) Error() string
func (*UninitializedFieldAccessError) IsUserError ¶
func (*UninitializedFieldAccessError) IsUserError()
func (*UninitializedFieldAccessError) SecondaryError ¶ added in v1.7.0
func (*UninitializedFieldAccessError) SecondaryError() string
func (*UninitializedFieldAccessError) StartPosition ¶
func (e *UninitializedFieldAccessError) StartPosition() ast.Position
type UninitializedUseError ¶
func (*UninitializedUseError) DocumentationLink ¶ added in v1.7.0
func (*UninitializedUseError) DocumentationLink() string
func (*UninitializedUseError) EndPosition ¶
func (e *UninitializedUseError) EndPosition(memoryGauge common.MemoryGauge) ast.Position
func (*UninitializedUseError) Error ¶
func (e *UninitializedUseError) Error() string
func (*UninitializedUseError) IsUserError ¶
func (*UninitializedUseError) IsUserError()
func (*UninitializedUseError) SecondaryError ¶ added in v1.7.0
func (*UninitializedUseError) SecondaryError() string
func (*UninitializedUseError) StartPosition ¶
func (e *UninitializedUseError) StartPosition() ast.Position
type UnknownSpecialFunctionError ¶
func (*UnknownSpecialFunctionError) DocumentationLink ¶ added in v1.7.0
func (*UnknownSpecialFunctionError) DocumentationLink() string
func (*UnknownSpecialFunctionError) EndPosition ¶
func (e *UnknownSpecialFunctionError) EndPosition(common.MemoryGauge) ast.Position
func (*UnknownSpecialFunctionError) Error ¶
func (*UnknownSpecialFunctionError) Error() string
func (*UnknownSpecialFunctionError) IsUserError ¶
func (*UnknownSpecialFunctionError) IsUserError()
func (*UnknownSpecialFunctionError) SecondaryError ¶ added in v1.7.0
func (*UnknownSpecialFunctionError) SecondaryError() string
func (*UnknownSpecialFunctionError) StartPosition ¶
func (e *UnknownSpecialFunctionError) StartPosition() ast.Position
type UnparameterizedTypeInstantiationError ¶
func (*UnparameterizedTypeInstantiationError) DocumentationLink ¶ added in v1.7.0
func (*UnparameterizedTypeInstantiationError) DocumentationLink() string
func (*UnparameterizedTypeInstantiationError) Error ¶
func (*UnparameterizedTypeInstantiationError) Error() string
func (*UnparameterizedTypeInstantiationError) IsUserError ¶
func (*UnparameterizedTypeInstantiationError) IsUserError()
func (*UnparameterizedTypeInstantiationError) SecondaryError ¶
func (e *UnparameterizedTypeInstantiationError) SecondaryError() string
type UnreachableStatementError ¶
func (*UnreachableStatementError) DocumentationLink ¶ added in v1.7.0
func (*UnreachableStatementError) DocumentationLink() string
func (*UnreachableStatementError) Error ¶
func (*UnreachableStatementError) Error() string
func (*UnreachableStatementError) IsUserError ¶
func (*UnreachableStatementError) IsUserError()
func (*UnreachableStatementError) SecondaryError ¶
func (*UnreachableStatementError) SecondaryError() string
func (*UnreachableStatementError) SuggestFixes ¶ added in v1.7.0
func (e *UnreachableStatementError) SuggestFixes(code string) []errors.SuggestedFix[ast.TextEdit]
type UnrepresentableEntitlementMapOutputError ¶
type UnrepresentableEntitlementMapOutputError struct {
Input EntitlementSetAccess
Map *EntitlementMapType
ast.Range
}
UnrepresentableEntitlementMapOutputError
func (*UnrepresentableEntitlementMapOutputError) DocumentationLink ¶ added in v1.7.0
func (*UnrepresentableEntitlementMapOutputError) DocumentationLink() string
func (*UnrepresentableEntitlementMapOutputError) EndPosition ¶
func (e *UnrepresentableEntitlementMapOutputError) EndPosition(common.MemoryGauge) ast.Position
func (*UnrepresentableEntitlementMapOutputError) Error ¶
func (e *UnrepresentableEntitlementMapOutputError) Error() string
func (*UnrepresentableEntitlementMapOutputError) IsUserError ¶
func (*UnrepresentableEntitlementMapOutputError) IsUserError()
func (*UnrepresentableEntitlementMapOutputError) SecondaryError ¶
func (e *UnrepresentableEntitlementMapOutputError) SecondaryError() string
func (*UnrepresentableEntitlementMapOutputError) StartPosition ¶
func (e *UnrepresentableEntitlementMapOutputError) StartPosition() ast.Position
type UnresolvedImportError ¶
func (*UnresolvedImportError) DocumentationLink ¶ added in v1.7.0
func (*UnresolvedImportError) DocumentationLink() string
func (*UnresolvedImportError) Error ¶
func (e *UnresolvedImportError) Error() string
func (*UnresolvedImportError) IsUserError ¶
func (*UnresolvedImportError) IsUserError()
func (*UnresolvedImportError) SecondaryError ¶ added in v1.7.0
func (*UnresolvedImportError) SecondaryError() string
type UnsupportedOptionalChainingAssignmentError ¶
func (*UnsupportedOptionalChainingAssignmentError) DocumentationLink ¶ added in v1.7.0
func (*UnsupportedOptionalChainingAssignmentError) DocumentationLink() string
func (*UnsupportedOptionalChainingAssignmentError) Error ¶
func (*UnsupportedOptionalChainingAssignmentError) Error() string
func (*UnsupportedOptionalChainingAssignmentError) IsUserError ¶
func (*UnsupportedOptionalChainingAssignmentError) IsUserError()
func (*UnsupportedOptionalChainingAssignmentError) SecondaryError ¶ added in v1.7.0
func (*UnsupportedOptionalChainingAssignmentError) SecondaryError() string
type UnsupportedOverloadingError ¶
type UnsupportedOverloadingError struct {
DeclarationKind common.DeclarationKind
ast.Range
}
func (*UnsupportedOverloadingError) DocumentationLink ¶ added in v1.7.0
func (e *UnsupportedOverloadingError) DocumentationLink() string
func (*UnsupportedOverloadingError) Error ¶
func (e *UnsupportedOverloadingError) Error() string
func (*UnsupportedOverloadingError) IsUserError ¶
func (*UnsupportedOverloadingError) IsUserError()
func (*UnsupportedOverloadingError) SecondaryError ¶ added in v1.7.0
func (e *UnsupportedOverloadingError) SecondaryError() string
type UnsupportedResourceForLoopError ¶
func (*UnsupportedResourceForLoopError) DocumentationLink ¶ added in v1.7.0
func (*UnsupportedResourceForLoopError) DocumentationLink() string
func (*UnsupportedResourceForLoopError) Error ¶
func (*UnsupportedResourceForLoopError) Error() string
func (*UnsupportedResourceForLoopError) IsUserError ¶
func (*UnsupportedResourceForLoopError) IsUserError()
func (*UnsupportedResourceForLoopError) SecondaryError ¶ added in v1.7.0
func (*UnsupportedResourceForLoopError) SecondaryError() string
type ValidTopLevelDeclarationsHandlerFunc ¶
type ValidTopLevelDeclarationsHandlerFunc func(common.Location) common.DeclarationKindSet
type ValueDeclaration ¶
type ValueIndexableType ¶
type ValueIndexableType interface {
Type
AllowsValueIndexingAssignment() bool
ElementType(isAssignment bool) Type
IndexingType() Type
// contains filtered or unexported methods
}
ValueIndexableType is a type which can be indexed into using a value
type ValueIndexingInfo ¶
type ValueIndexingInfo struct {
ElementType func(_ bool) Type
IndexingType *NumericType
IsValueIndexableType bool
AllowsValueIndexingAssignment bool
}
type Variable ¶
type Variable struct {
// Type is the type of the variable
Type Type
// Pos is the position where the variable was declared
Pos *ast.Position
Identifier string
// DocString is the optional docstring
DocString string
// ArgumentLabels are the argument labels that must be used in an invocation of the variable
ArgumentLabels []string
DeclarationKind common.DeclarationKind
// Access is the access modifier
Access Access
// ActivationDepth is the depth of scopes in which the variable was declared
ActivationDepth int
// IsConstant indicates if the variable is read-only
IsConstant bool
// contains filtered or unexported fields
}
type VariableActivation ¶
type VariableActivation struct {
Parent *VariableActivation
LeaveCallbacks []func(EndPositionGetter)
Depth int
// contains filtered or unexported fields
}
An VariableActivation is a map of strings to variables. It is used to represent an active scope in a program, i.e. it is used as a symbol table during semantic analysis.
func NewVariableActivation ¶
func NewVariableActivation(parent *VariableActivation) *VariableActivation
NewVariableActivation returns as new activation with the given parent. The parent may be nil.
func (*VariableActivation) Clear ¶
func (a *VariableActivation) Clear()
Clear removes all variables from this activation.
func (*VariableActivation) DeclareType ¶
func (a *VariableActivation) DeclareType(declaration TypeDeclaration)
func (*VariableActivation) DeclareValue ¶
func (a *VariableActivation) DeclareValue(declaration ValueDeclaration)
func (*VariableActivation) Find ¶
func (a *VariableActivation) Find(name string) *Variable
Find returns the variable for a given name in the activation. It returns nil if no variable is found.
func (*VariableActivation) ForEach ¶
func (a *VariableActivation) ForEach(cb func(string, *Variable) error) error
ForEach calls the given function for each name-variable pair in the activation. It can be used to iterate over all entries of the activation.
func (*VariableActivation) Set ¶
func (a *VariableActivation) Set(name string, variable *Variable)
Set sets the given variable.
func (*VariableActivation) SetParent ¶
func (a *VariableActivation) SetParent(parent *VariableActivation)
SetParent sets the parent of this activation to the given parent and updates the depth.
type VariableActivations ¶
type VariableActivations struct {
// contains filtered or unexported fields
}
VariableActivations is a stack of activation records. Each entry represents a new activation record.
The current / most nested activation record can be found at the top of the stack (see function `Current`).
func NewVariableActivations ¶
func NewVariableActivations(parent *VariableActivation) *VariableActivations
func NewVariableActivationsFromHandler ¶
func NewVariableActivationsFromHandler( handler ActivationHandlerFunc, location common.Location, defaultActivation *VariableActivation, ) *VariableActivations
func (*VariableActivations) Current ¶
func (a *VariableActivations) Current() *VariableActivation
Current returns the current / most nested activation, which can be found at the top of the stack. It returns nil if there is no active activation.
func (*VariableActivations) DeclareValue ¶
func (a *VariableActivations) DeclareValue(declaration ValueDeclaration) (*Variable, error)
func (*VariableActivations) Depth ¶
func (a *VariableActivations) Depth() int
Depth returns the depth (size) of the activation stack.
func (*VariableActivations) Enter ¶
func (a *VariableActivations) Enter()
Enter pushes a new empty activation to the top of the activation stack. The new activation has the current activation as its parent.
func (*VariableActivations) Find ¶
func (a *VariableActivations) Find(name string) *Variable
Find returns the variable for a given name in the current activation. It returns nil if no variable is found or if there is no current activation.
func (*VariableActivations) ForEachVariableDeclaredInAndBelow ¶
func (a *VariableActivations) ForEachVariableDeclaredInAndBelow(depth int, f func(name string, value *Variable))
func (*VariableActivations) Leave ¶
func (a *VariableActivations) Leave(getEndPosition func(common.MemoryGauge) ast.Position)
Leave pops the top-most (current) activation from the top of the activation stack.
func (*VariableActivations) Set ¶
func (a *VariableActivations) Set(name string, variable *Variable)
Set sets the variable in the current activation.
type VariableSizedType ¶
type VariableSizedType struct {
Type Type
// contains filtered or unexported fields
}
VariableSizedType is a variable sized array type
func NewVariableSizedType ¶
func NewVariableSizedType(memoryGauge common.MemoryGauge, typ Type) *VariableSizedType
func (*VariableSizedType) AllowsValueIndexingAssignment ¶
func (*VariableSizedType) AllowsValueIndexingAssignment() bool
func (*VariableSizedType) CheckInstantiated ¶
func (t *VariableSizedType) CheckInstantiated(pos ast.HasPosition, memoryGauge common.MemoryGauge, report func(err error))
func (*VariableSizedType) ContainFieldsOrElements ¶
func (t *VariableSizedType) ContainFieldsOrElements() bool
func (*VariableSizedType) ElementType ¶
func (t *VariableSizedType) ElementType(_ bool) Type
func (*VariableSizedType) Equal ¶
func (t *VariableSizedType) Equal(other Type) bool
func (*VariableSizedType) GetMembers ¶
func (t *VariableSizedType) GetMembers() map[string]MemberResolver
func (*VariableSizedType) ID ¶
func (t *VariableSizedType) ID() TypeID
func (*VariableSizedType) IndexingType ¶
func (t *VariableSizedType) IndexingType() Type
func (*VariableSizedType) IsComparable ¶
func (t *VariableSizedType) IsComparable() bool
func (*VariableSizedType) IsEquatable ¶
func (t *VariableSizedType) IsEquatable() bool
func (*VariableSizedType) IsExportable ¶
func (t *VariableSizedType) IsExportable(results map[*Member]bool) bool
func (*VariableSizedType) IsImportable ¶
func (t *VariableSizedType) IsImportable(results map[*Member]bool) bool
func (*VariableSizedType) IsInvalidType ¶
func (t *VariableSizedType) IsInvalidType() bool
func (*VariableSizedType) IsOrContainsReferenceType ¶
func (t *VariableSizedType) IsOrContainsReferenceType() bool
func (*VariableSizedType) IsPrimitiveType ¶
func (t *VariableSizedType) IsPrimitiveType() bool
func (*VariableSizedType) IsResourceType ¶
func (t *VariableSizedType) IsResourceType() bool
func (*VariableSizedType) IsStorable ¶
func (t *VariableSizedType) IsStorable(results map[*Member]bool) bool
func (*VariableSizedType) IsType ¶
func (*VariableSizedType) IsType()
func (*VariableSizedType) Precedence ¶ added in v1.9.4
func (*VariableSizedType) Precedence() ast.TypePrecedence
func (*VariableSizedType) QualifiedString ¶
func (t *VariableSizedType) QualifiedString() string
func (*VariableSizedType) Resolve ¶
func (t *VariableSizedType) Resolve(typeArguments *TypeParameterTypeOrderedMap) Type
func (*VariableSizedType) Rewrite ¶ added in v1.8.12
func (t *VariableSizedType) Rewrite(rewrite TypeRewriter) (Type, bool)
func (*VariableSizedType) String ¶
func (t *VariableSizedType) String() string
func (*VariableSizedType) SupportedEntitlements ¶
func (t *VariableSizedType) SupportedEntitlements() *EntitlementSet
func (*VariableSizedType) Tag ¶
func (t *VariableSizedType) Tag() TypeTag
func (*VariableSizedType) TypeAnnotationState ¶
func (t *VariableSizedType) TypeAnnotationState() TypeAnnotationState
func (*VariableSizedType) Unify ¶
func (t *VariableSizedType) Unify( other Type, typeArguments *TypeParameterTypeOrderedMap, report func(err error), memoryGauge common.MemoryGauge, outerRange ast.HasPosition, ) bool
type VirtualImport ¶
type VirtualImport struct {
ValueElements *StringImportElementOrderedMap
TypeElements *StringImportElementOrderedMap
}
func (VirtualImport) AllTypeElements ¶
func (i VirtualImport) AllTypeElements() *StringImportElementOrderedMap
func (VirtualImport) AllValueElements ¶
func (i VirtualImport) AllValueElements() *StringImportElementOrderedMap
func (VirtualImport) IsChecking ¶
func (VirtualImport) IsChecking() bool
Source Files
¶
- access.go
- accesscheckmode.go
- accesscheckmode_string.go
- account.gen.go
- account.go
- account_capability_controller.gen.go
- account_capability_controller.go
- any_type.go
- anyattachment_types.go
- anyresource_type.go
- anystruct_type.go
- before_extractor.go
- binaryoperationkind.go
- binaryoperationkind_string.go
- block.gen.go
- block.go
- bool_type.go
- character.gen.go
- character.go
- check_array_expression.go
- check_assignment.go
- check_attach_expression.go
- check_binary_expression.go
- check_block.go
- check_casting_expression.go
- check_composite_declaration.go
- check_conditional.go
- check_conditions.go
- check_create_expression.go
- check_destroy_expression.go
- check_dictionary_expression.go
- check_emit_statement.go
- check_event_declaration.go
- check_expression.go
- check_for.go
- check_force_expression.go
- check_function.go
- check_import_declaration.go
- check_interface_declaration.go
- check_invocation_expression.go
- check_member_expression.go
- check_path_expression.go
- check_pragma.go
- check_reference_expression.go
- check_remove_statement.go
- check_return_statement.go
- check_string_template_expression.go
- check_swap.go
- check_switch.go
- check_transaction_declaration.go
- check_unary_expression.go
- check_variable_declaration.go
- check_while.go
- checker.go
- config.go
- containerkind.go
- containerkind_string.go
- crypto_algorithm_types.go
- declarations.go
- deployedcontract.gen.go
- deployedcontract.go
- deployment_result.gen.go
- deployment_result.go
- elaboration.go
- entitlements.gen.go
- entitlements.go
- entitlementset.go
- entrypoint.go
- errors.go
- function_activations.go
- function_invocations.go
- hashable_struct.gen.go
- hashable_struct.go
- hashalgorithm_string.go
- import.go
- initialization_info.go
- interfaceset.go
- invalid_type.go
- member_accesses.go
- meta_type.go
- never_type.go
- occurrences.go
- orderdmaps.go
- path_type.go
- positioninfo.go
- post_conditions_rewrite.go
- ranges.go
- resolve.go
- resource_invalidation.go
- resourceinfo.go
- resourceinvalidationkind.go
- resourceinvalidationkind_string.go
- resources.go
- return_info.go
- runtime_type_constructors.go
- signaturealgorithm_string.go
- simple_type.go
- storable_type.go
- storage_capability_controller.gen.go
- storage_capability_controller.go
- string_type.go
- struct_stringer.gen.go
- struct_stringer.go
- subtype_check.gen.go
- subtype_check.go
- subtype_comparison_disabled.go
- type.go
- type_names.go
- type_tags.go
- typeannotationstate.go
- typeannotationstate_string.go
- typecheckfunc.go
- variable.go
- variable_activations.go
- void_type.go