File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import * as assert from 'assert';
1010import * as fs from 'fs' ;
1111import * as path from 'path' ;
1212import { VbaParser , VbaLexer } from '../project/parser/vbaAntlr' ;
13- import { CharStream , CharStreamImpl , CommonTokenStream } from 'antlr4ng' ;
13+ import { CharStream , CommonTokenStream } from 'antlr4ng' ;
1414
1515describe ( '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 ) ;
You can’t perform that action at this time.
0 commit comments