Versions in this module Expand all Collapse all v0 v0.0.26 Jul 24, 2026 v0.0.25 Jul 24, 2026 Changes in this version + const FnVarOriginScoped v0.0.24 Jul 24, 2026 Changes in this version + const FnSetAccountMeta + const FnSetTxMeta + const FnVarOriginBalance + const FnVarOriginGetAmount + const FnVarOriginGetAsset + const FnVarOriginMeta + const FnVarOriginOverdraft + const TypeAccount + const TypeAny + const TypeAsset + const TypeMonetary + const TypeNumber + const TypePortion + const TypeString + var AllowedTypes = []string + var Builtins = map[string]FnCallResolution + func SeverityToAnsiString(s Severity) string + func SeverityToString(s Severity) string + func TypeToString(r Type) string + func Unify(t1 Type, t2 Type) (ok bool) + type AssetMismatch struct + Expected string + Got string + func (AssetMismatch) Severity() Severity + func (e AssetMismatch) Message() string + type BadAllotmentSum struct + Sum big.Rat + func (BadAllotmentSum) Severity() Severity + func (e BadAllotmentSum) Message() string + type BadArity struct + Actual int + Expected int + func (BadArity) Severity() Severity + func (e BadArity) Message() string + type BoundAsset struct + BoundAssetType BoundAssetType + InferredAsset string + func (BoundAsset) Severity() Severity + func (e BoundAsset) Message() string + type BoundAssetType = uint + const BoundAssetTypeAsset + const BoundAssetTypeMonetary + type BuiltinFnHover struct + Context BuiltinFnHoverContext + Node *parser.FnCall + Range parser.Range + type BuiltinFnHoverContext = uint + const OriginContext + const StatementContext + type CheckResult struct + DeclaredVars map[string]parser.VarDeclaration + Diagnostics []Diagnostic + Program parser.Program + func CheckProgram(program parser.Program) CheckResult + func CheckSource(source string) CheckResult + func (r *CheckResult) GetExprType(expr parser.ValueExpr) Type + func (r *CheckResult) GetSymbols() []DocumentSymbol + func (r *CheckResult) GetVarDeclType(decl parser.VarDeclaration) Type + func (r CheckResult) GetErrorsCount() int + func (r CheckResult) GetWarningsCount() int + func (r CheckResult) ResolveBuiltinFn(v *parser.FnCallIdentifier) FnCallResolution + func (r CheckResult) ResolveVar(v *parser.Variable) *parser.VarDeclaration + type Diagnostic struct + Id int32 + Kind DiagnosticKind + Range parser.Range + type DiagnosticKind interface + Message func() string + Severity func() Severity + type DivByZero struct + Sum big.Rat + func (DivByZero) Severity() Severity + func (e DivByZero) Message() string + type DocumentSymbol struct + Detail string + Kind DocumentSymbolKind + Name string + Range parser.Range + SelectionRange parser.Range + type DocumentSymbolKind = float64 + const DocumentSymbolVariable + type DuplicateVariable struct + Name string + func (DuplicateVariable) Severity() Severity + func (e DuplicateVariable) Message() string + type EmptiedAccount struct + Name string + func (EmptiedAccount) Severity() Severity + func (e EmptiedAccount) Message() string + type ExperimentalFeature struct + Name string + func (ExperimentalFeature) Severity() Severity + func (e ExperimentalFeature) Message() string + type FixedPortionVariable struct + Value big.Rat + func (FixedPortionVariable) Severity() Severity + func (e FixedPortionVariable) Message() string + type FnCallResolution interface + ContextName func() string + GetParams func() []string + type GotoDefinitionResult struct + Range parser.Range + func GotoDefinition(program parser.Program, position parser.Position, checkResult CheckResult) *GotoDefinitionResult + type Hover interface + func HoverOn(program parser.Program, position parser.Position) Hover + type InvalidFeature struct + Feature string + func (InvalidFeature) Severity() Severity + func (e InvalidFeature) Message() string + type InvalidType struct + Name string + func (InvalidType) Severity() Severity + func (e InvalidType) Message() string + type InvalidUnboundedAccount struct + func (InvalidUnboundedAccount) Severity() Severity + func (e InvalidUnboundedAccount) Message() string + type InvalidWorldOverdraft struct + func (InvalidWorldOverdraft) Severity() Severity + func (e InvalidWorldOverdraft) Message() string + type NoAllotmentInSendAll struct + func (NoAllotmentInSendAll) Severity() Severity + func (e NoAllotmentInSendAll) Message() string + type Parsing struct + Description string + func (Parsing) Severity() Severity + func (e Parsing) Message() string + type RedundantRemaining struct + func (RedundantRemaining) Severity() Severity + func (e RedundantRemaining) Message() string + type RemainingIsNotLast struct + func (RemainingIsNotLast) Severity() Severity + func (e RemainingIsNotLast) Message() string + type Severity = byte + const ErrorSeverity + const Hint + const Information + const WarningSeverity + type StatementFnCallResolution struct + Docs string + Params []string + func (StatementFnCallResolution) ContextName() string + func (r StatementFnCallResolution) GetParams() []string + type TAsset string + func (a *TAsset) Resolve() Type + type TVar struct + func (t *TVar) Resolve() Type + type Type interface + Resolve func() Type + type TypeMismatch struct + Expected string + Got string + func (TypeMismatch) Severity() Severity + func (e TypeMismatch) Message() string + type UnboundVariable struct + Name string + Type string + func (UnboundVariable) Severity() Severity + func (e UnboundVariable) Message() string + type UnboundedAccountIsNotLast struct + func (UnboundedAccountIsNotLast) Severity() Severity + func (e UnboundedAccountIsNotLast) Message() string + type UnknownFunction struct + Name string + func (UnknownFunction) Severity() Severity + func (e UnknownFunction) Message() string + type UnusedVar struct + Name string + func (UnusedVar) Severity() Severity + func (e UnusedVar) Message() string + type VarOriginFnCallResolution struct + Docs string + Params []string + Return string + VersionConstraints []VersionClause + func (VarOriginFnCallResolution) ContextName() string + func (r VarOriginFnCallResolution) GetParams() []string + type VariableHover struct + Node *parser.Variable + type VersionClause struct + FeatureFlag flags.FeatureFlag + Version parser.Version + type VersionMismatch struct + GotVersion parser.Version + RequiredVersion parser.Version + func (VersionMismatch) Severity() Severity + func (e VersionMismatch) Message() string