UNPKG

@syntaxs/compiler

Version:

Compiler used to compile Syntax Script projects.

21 lines 808 B
import { FullDocumentDiagnosticReport, Range } from 'lsp-types'; /** * Creates a diagnostic report from the file path given. * @param {string} filePath Path of the file to create a report. * @param {string} fileContent Content of the file if it is already fetched. * @author efekos * @version 1.0.1 * @since 0.0.2-alpha * @returns A diagnostic report language servers can use. */ export declare function createSyntaxScriptDiagnosticReport(filePath: string, fileContent?: string): FullDocumentDiagnosticReport; /** * Modifies the given range to be zero-based. * @param {Range} r Any range. * @returns Same range with every value decreased by 1. * @author efekos * @version 1.0.0 * @since 0.0.1-alpha */ export declare function subRange(r: Range): Range; //# sourceMappingURL=diagnostic.d.ts.map