Versions in this module Expand all Collapse all v0 v0.1.0 Dec 18, 2025 Changes in this version + const DefaultMaxFileSize + type FunctionCallInfo struct + Name string + Position diagnostic.Position + type LintListener struct + Rules []RuleInfo + func NewLintListener() *LintListener + func (l *LintListener) EnterAssignment(ctx *grulev3.AssignmentContext) + func (l *LintListener) EnterComparisonOperator(ctx *grulev3.ComparisonOperatorContext) + func (l *LintListener) EnterExpression(ctx *grulev3.ExpressionContext) + func (l *LintListener) EnterFunctionCall(ctx *grulev3.FunctionCallContext) + func (l *LintListener) EnterRuleDescription(ctx *grulev3.RuleDescriptionContext) + func (l *LintListener) EnterRuleEntry(ctx *grulev3.RuleEntryContext) + func (l *LintListener) EnterRuleName(ctx *grulev3.RuleNameContext) + func (l *LintListener) EnterSalience(ctx *grulev3.SalienceContext) + func (l *LintListener) EnterThenScope(ctx *grulev3.ThenScopeContext) + func (l *LintListener) EnterVariable(ctx *grulev3.VariableContext) + func (l *LintListener) EnterWhenScope(ctx *grulev3.WhenScopeContext) + func (l *LintListener) ExitRuleEntry(ctx *grulev3.RuleEntryContext) + func (l *LintListener) ExitThenScope(ctx *grulev3.ThenScopeContext) + func (l *LintListener) ExitWhenScope(ctx *grulev3.WhenScopeContext) + type ParseError struct + Column int + Line int + Message string + type ParseResult struct + Errors []ParseError + File string + KnowledgeBase *gruleAst.KnowledgeBase + Rules []RuleInfo + Source string + func (r *ParseResult) GetRuleInfo(ruleName string) (*RuleInfo, bool) + func (r *ParseResult) GetRulePosition(ruleName string) (diagnostic.Position, bool) + func (r *ParseResult) Success() bool + func (r *ParseResult) ToDiagnostics() []diagnostic.Diagnostic + type Parser struct + MaxFileSize int64 + func NewParser() *Parser + func (p *Parser) ParseFile(file string) (*ParseResult, error) + func (p *Parser) ParseString(file, content string) *ParseResult + type RuleInfo struct + ConditionCount int + Description string + EndPosition diagnostic.Position + FunctionCalls []FunctionCallInfo + HasWhenExpression bool + Name string + Position diagnostic.Position + Salience string + ThenActionCount int + ThenPosition diagnostic.Position + VariableAssignments []VariableInfo + VariableUsages []VariableInfo + WhenExpressionText string + WhenPosition diagnostic.Position + type VariableInfo struct + Name string + Position diagnostic.Position