Versions in this module Expand all Collapse all v0 v0.0.10 Dec 6, 2024 Changes in this version + const FnVarOriginOverdraft v0.0.9 Nov 8, 2024 Changes in this version + const FnSetAccountMeta + const FnSetTxMeta + const FnVarOriginBalance + const FnVarOriginMeta + 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 + 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 BuiltinFnHover struct + Context BuiltinFnHoverContext + Node *parser.FnCall + Range parser.Range + type BuiltinFnHoverContext = uint + const OriginContext + const StatementContext + type CheckResult struct + Diagnostics []Diagnostic + Program parser.Program + func CheckProgram(program parser.Program) CheckResult + func CheckSource(source string) CheckResult + func (r *CheckResult) GetSymbols() []DocumentSymbol + func (r CheckResult) GetErrorsCount() int + func (r CheckResult) GetWarningsCount() int + func (r CheckResult) ResolveBuiltinFn(v *parser.FnCallIdentifier) FnCallResolution + func (r CheckResult) ResolveVar(v *parser.VariableLiteral) *parser.VarDeclaration + type Diagnostic struct + Kind DiagnosticKind + Range parser.Range + type DiagnosticKind interface + Message func() string + Severity func() Severity + 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 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 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 TypeMismatch struct + Expected string + Got string + func (*TypeMismatch) Severity() Severity + func (e *TypeMismatch) Message() string + type UnboundVariable struct + Name 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 + func (VarOriginFnCallResolution) ContextName() string + func (r VarOriginFnCallResolution) GetParams() []string + type VariableHover struct + Node *parser.VariableLiteral + Range parser.Range