From eb5b0a55500a4ad7652223090447b48104b5aa7d Mon Sep 17 00:00:00 2001 From: hayden Date: Tue, 12 Dec 2023 19:39:28 +0800 Subject: [PATCH] refactor: move findCaretTokenIndex file to parser/common/utils --- src/parser/common/basicParser.ts | 2 +- src/{ => parser/common}/utils/findCaretTokenIndex.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/{ => parser/common}/utils/findCaretTokenIndex.ts (93%) diff --git a/src/parser/common/basicParser.ts b/src/parser/common/basicParser.ts index fdb69f6..be783a2 100644 --- a/src/parser/common/basicParser.ts +++ b/src/parser/common/basicParser.ts @@ -9,7 +9,7 @@ import { } from 'antlr4ts'; import { ParseTreeWalker, ParseTreeListener } from 'antlr4ts/tree'; import { CandidatesCollection, CodeCompletionCore } from 'antlr4-c3'; -import { findCaretTokenIndex } from '../../utils/findCaretTokenIndex'; +import { findCaretTokenIndex } from './utils/findCaretTokenIndex'; import { CaretPosition, Suggestions, diff --git a/src/utils/findCaretTokenIndex.ts b/src/parser/common/utils/findCaretTokenIndex.ts similarity index 93% rename from src/utils/findCaretTokenIndex.ts rename to src/parser/common/utils/findCaretTokenIndex.ts index 74bbd3f..96dac29 100644 --- a/src/utils/findCaretTokenIndex.ts +++ b/src/parser/common/utils/findCaretTokenIndex.ts @@ -1,5 +1,5 @@ import { Token } from 'antlr4ts'; -import { CaretPosition } from '../parser/common/basic-parser-types'; +import { CaretPosition } from '../basic-parser-types'; /** * find token index via caret position (cursor position)