refactor: move findCaretTokenIndex file to parser/common/utils

This commit is contained in:
hayden 2023-12-12 19:39:28 +08:00 committed by Hayden
parent 96b0376510
commit eb5b0a5550
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import {
} from 'antlr4ts'; } from 'antlr4ts';
import { ParseTreeWalker, ParseTreeListener } from 'antlr4ts/tree'; import { ParseTreeWalker, ParseTreeListener } from 'antlr4ts/tree';
import { CandidatesCollection, CodeCompletionCore } from 'antlr4-c3'; import { CandidatesCollection, CodeCompletionCore } from 'antlr4-c3';
import { findCaretTokenIndex } from '../../utils/findCaretTokenIndex'; import { findCaretTokenIndex } from './utils/findCaretTokenIndex';
import { import {
CaretPosition, CaretPosition,
Suggestions, Suggestions,

View File

@ -1,5 +1,5 @@
import { Token } from 'antlr4ts'; 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) * find token index via caret position (cursor position)