Skip to content

Commit 058570e

Browse files
committed
Remove CharStreamImpl
1 parent 6eb2bcc commit 058570e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/test/antlr-parser.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import * as assert from 'assert';
1010
import * as fs from 'fs';
1111
import * as path from 'path';
1212
import { VbaParser, VbaLexer } from '../project/parser/vbaAntlr';
13-
import { CharStream, CharStreamImpl, CommonTokenStream } from 'antlr4ng';
13+
import { CharStream, CommonTokenStream } from 'antlr4ng';
1414

1515
describe('ANTLR VBA Main Parser', () => {
1616

@@ -155,7 +155,7 @@ describe('ANTLR VBA Main Parser', () => {
155155
* Test helper to parse input and collect syntax errors
156156
*/
157157
function parseAndGetErrors(input: string) {
158-
const inputStream = new CharStreamImpl(input);
158+
const inputStream = CharStream.fromString(input);
159159
const lexer = new VbaLexer(inputStream);
160160
const tokens = new CommonTokenStream(lexer);
161161
const parser = new VbaParser(tokens);

0 commit comments

Comments
 (0)