import { worker } from 'monaco-editor' ; import FlinkSQL from 'dt-sql-parser/dist/parser/flinksql' ; import { BaseSQLWorker } from '../baseSQLWorker' ; export interface ICreateData { languageId : string ; } export class FLinkSQLWorker extends BaseSQLWorker { protected _ctx : worker . IWorkerContext ; protected parser : FlinkSQL ; constructor ( ctx , createData ) { super ( ) ; this . _ctx = ctx ; this . parser = new FlinkSQL ( ) ; } } export function create ( ctx , createData ) { return new FLinkSQLWorker ( ctx , createData ) ; }