import { Token } from 'antlr4ts'; import { CandidatesCollection } from 'antlr4-c3'; import { PostgreSQLLexer } from '../lib/pgsql/PostgreSQLLexer'; import { PostgreSQLParser, ProgramContext } from '../lib/pgsql/PostgreSQLParser'; import BasicParser from './common/basicParser'; import { Suggestions } from './common/basic-parser-types'; export default class PostgresSQL extends BasicParser { public createLexerFormCharStream(charStreams) { const lexer = new PostgreSQLLexer(charStreams); return lexer; } public createParserFromTokenStream(tokenStream) { return new PostgreSQLParser(tokenStream); } public preferredRules: Set = new Set(); protected get splitListener () { return null as any; } public processCandidates( candidates: CandidatesCollection, allTokens: Token[], caretTokenIndex: number ): Suggestions { return { syntax: [], keywords: [] } } }