import { LintStrategy } from './index' ; import { EditorView } from '@codemirror/view' ; import { Diagnostic } from '@codemirror/lint' ; import { Parser } from '../parser' ; export class HybridLint implements LintStrategy { public promQL ( this ) { return ( view ) => { const parser = new Parser ( view . state ) ; parser . analyze ( ) ; return parser . getDiagnostics ( ) ; } ; } }