From 01459537be5a87ff464eb9805fe0b97a976084c6 Mon Sep 17 00:00:00 2001 From: Mark Sujew Date: Thu, 5 Sep 2024 13:44:24 +0000 Subject: [PATCH] Adjust types --- packages/langium/src/parser/indentation-aware.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/langium/src/parser/indentation-aware.ts b/packages/langium/src/parser/indentation-aware.ts index 9ab89f148..6db1ca2fb 100644 --- a/packages/langium/src/parser/indentation-aware.ts +++ b/packages/langium/src/parser/indentation-aware.ts @@ -15,8 +15,6 @@ import { DefaultLexer, isTokenTypeArray } from './lexer.js'; type IndentationAwareDelimiter = [begin: TokenName, end: TokenName]; -export type TokenGroups = { [groupName: string]: IToken[] }; - export interface IndentationTokenBuilderOptions { /** * The name of the token used to denote indentation in the grammar. @@ -231,7 +229,7 @@ export class IndentationAwareTokenBuilder { + protected indentMatcher(text: string, offset: number, tokens: IToken[], _groups: Record): ReturnType { const { indentTokenName } = this.options; if (!this.isStartOfLine(text, offset)) { @@ -268,7 +266,7 @@ export class IndentationAwareTokenBuilder { + protected dedentMatcher(text: string, offset: number, tokens: IToken[], _groups: Record): ReturnType { const { dedentTokenName } = this.options; if (!this.isStartOfLine(text, offset)) {