@eagleoutice/flowr - v2.15.8
    Preparing search index...

    Variable LintQuickFixesConst

    LintQuickFixes: {
        apply(this: void, code: string, fixes: readonly LintQuickFix[]): string;
        byFile(this: void, results: LintResultsByRule): Map<string, LintQuickFix[]>;
    } = ...

    Type Declaration

    • apply: function
      • The content of one file with the given fixes carried out, as LintQuickFixes.byFile groups them. Of two overlapping fixes only the one coming first in the file is kept, since the second would be applied to a range that no longer says what it did. What survives is then carried out back to front, so the offsets of the edits still to come stay valid.

        Fixes naming a file must all name the same one, as those of another file would cut at offsets of a text that is not this one. Fixes naming none are taken to belong to whatever code is.

        Parameters

        Returns string

    • byFile: function