Fix/export abstract visitor (#237)

* fix: #236 export AbstractParseTreeVisitor

* build: set isolatedModules true

* feat: import parser about from filters
This commit is contained in:
Hayden
2023-12-19 19:22:27 +08:00
committed by GitHub
parent 55a4832047
commit 8f72a5af60
162 changed files with 327 additions and 277 deletions

View File

@ -1,7 +1,6 @@
import fs from 'fs';
import path from 'path';
import { CaretPosition, SyntaxContextType } from '../../../../src/parser/common/basic-parser-types';
import PgSQL from '../../../../src/parser/pgsql';
import { PostgresSQL, CaretPosition, SyntaxContextType } from '../../../filters';
import { commentOtherLine } from '../../../helper';
const syntaxSql = fs.readFileSync(
@ -10,7 +9,7 @@ const syntaxSql = fs.readFileSync(
);
describe('Postgre SQL Syntax Suggestion', () => {
const parser = new PgSQL();
const parser = new PostgresSQL();
test('Validate Syntax SQL', () => {
expect(parser.validate(syntaxSql).length).not.toBe(0);