From 07946287a5bb021e99ffec2d2d9f43c0560fbb8b Mon Sep 17 00:00:00 2001 From: Patrick Stahl Date: Mon, 18 Nov 2024 18:02:26 +0100 Subject: [PATCH] fix: correct map clearing logic Signed-off-by: Patrick Stahl --- src/backend/SourceContext.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/SourceContext.ts b/src/backend/SourceContext.ts index b0312ae..bd4d61a 100644 --- a/src/backend/SourceContext.ts +++ b/src/backend/SourceContext.ts @@ -764,7 +764,7 @@ export class SourceContext implements ISourceContext { this.grammarLexerData = undefined; this.grammarLexerRuleMap.clear(); this.grammarParserData = undefined; - this.grammarLexerRuleMap.clear(); + this.grammarParserRuleMap.clear(); this.semanticAnalysisDone = false; this.diagnostics.length = 0;