PHP 7.4.33
Preview: lines.d.ts Size: 2.23 KB
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/recast/lib/lines.d.ts
import { Options } from "./options";
import { namedTypes } from "ast-types";
type Pos = namedTypes.Position;
type LineInfo = {
    readonly line: string;
    readonly indent: number;
    readonly locked: boolean;
    readonly sliceStart: number;
    readonly sliceEnd: number;
};
export declare class Lines {
    private infos;
    readonly length: number;
    readonly name: string | null;
    private mappings;
    private cachedSourceMap;
    private cachedTabWidth;
    constructor(infos: LineInfo[], sourceFileName?: string | null);
    toString(options?: Options): string;
    getSourceMap(sourceMapName: string, sourceRoot?: string): any;
    bootstrapCharAt(pos: Pos): string;
    charAt(pos: Pos): string;
    stripMargin(width: number, skipFirstLine: boolean): Lines;
    indent(by: number): Lines;
    indentTail(by: number): Lines;
    lockIndentTail(): Lines;
    getIndentAt(line: number): number;
    guessTabWidth(): number;
    startsWithComment(): boolean;
    isOnlyWhitespace(): boolean;
    isPrecededOnlyByWhitespace(pos: Pos): boolean;
    getLineLength(line: number): number;
    nextPos(pos: Pos, skipSpaces?: boolean): boolean;
    prevPos(pos: Pos, skipSpaces?: boolean): boolean;
    firstPos(): {
        line: number;
        column: number;
    };
    lastPos(): {
        line: number;
        column: number;
    };
    skipSpaces(pos: Pos, backward?: boolean, modifyInPlace?: boolean): namedTypes.Position | null;
    trimLeft(): Lines;
    trimRight(): Lines;
    trim(): Lines;
    eachPos(callback: (pos: Pos) => any, startPos?: Pos, skipSpaces?: boolean): void;
    bootstrapSlice(start: Pos, end: Pos): Lines;
    slice(start?: Pos, end?: Pos): Lines;
    bootstrapSliceString(start: Pos, end: Pos, options?: Options): string;
    sliceString(start?: Pos, end?: Pos, options?: Options): string;
    isEmpty(): boolean;
    join(elements: (string | Lines)[]): Lines;
    concat(...args: (string | Lines)[]): Lines;
}
export declare function countSpaces(spaces: string, tabWidth?: number): number;
/**
 * @param {Object} options - Options object that configures printing.
 */
export declare function fromString(string: string | Lines, options?: Options): Lines;
export declare function concat(elements: (string | Lines)[]): Lines;
export {};

Directory Contents

Dirs: 0 × Files: 18
Name Size Perms Modified Actions
144 B lrw-r--r-- 2025-03-28 11:04:32
Edit Download
11.97 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
746 B lrw-r--r-- 2025-03-28 11:04:32
Edit Download
19.24 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
2.23 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
24.96 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
573 B lrw-r--r-- 2025-03-28 11:04:32
Edit Download
7.75 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
5.01 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
1.75 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
117 B lrw-r--r-- 2025-03-28 11:04:32
Edit Download
9.32 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
413 B lrw-r--r-- 2025-03-28 11:04:32
Edit Download
15.74 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
340 B lrw-r--r-- 2025-03-28 11:04:32
Edit Download
96.20 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
858 B lrw-r--r-- 2025-03-28 11:04:32
Edit Download
12.58 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).