Sha256: 27afd8b7b257383099760b327b374a49797adb78065773e69405966e270b22f5

Contents?: true

Size: 1.64 KB

Versions: 15

Compression:

Stored size: 1.64 KB

Contents

import { GenMapping } from '@jridgewell/gen-mapping';
import type { TraceMap } from '@jridgewell/trace-mapping';
export declare type SourceMapSegmentObject = {
    column: number;
    line: number;
    name: string;
    source: string;
    content: string | null;
    ignore: boolean;
};
export declare type OriginalSource = {
    map: null;
    sources: Sources[];
    source: string;
    content: string | null;
    ignore: boolean;
};
export declare type MapSource = {
    map: TraceMap;
    sources: Sources[];
    source: string;
    content: null;
    ignore: false;
};
export declare type Sources = OriginalSource | MapSource;
/**
 * MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes
 * (which may themselves be SourceMapTrees).
 */
export declare function MapSource(map: TraceMap, sources: Sources[]): MapSource;
/**
 * A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive
 * segment tracing ends at the `OriginalSource`.
 */
export declare function OriginalSource(source: string, content: string | null, ignore: boolean): OriginalSource;
/**
 * traceMappings is only called on the root level SourceMapTree, and begins the process of
 * resolving each mapping in terms of the original source files.
 */
export declare function traceMappings(tree: MapSource): GenMapping;
/**
 * originalPositionFor is only called on children SourceMapTrees. It recurses down into its own
 * child SourceMapTrees, until we find the original source map.
 */
export declare function originalPositionFor(source: Sources, line: number, column: number, name: string): SourceMapSegmentObject | null;

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
immosquare-cleaner-0.1.50 node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
immosquare-cleaner-0.1.49 node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
immosquare-cleaner-0.1.48 node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
immosquare-cleaner-0.1.47 node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
immosquare-cleaner-0.1.46 node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
immosquare-cleaner-0.1.45 node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
immosquare-cleaner-0.1.44 node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
immosquare-cleaner-0.1.43 node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
immosquare-cleaner-0.1.42 node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
immosquare-cleaner-0.1.41 node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
immosquare-cleaner-0.1.40 node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
wice_grid-7.1.0 node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
immosquare-cleaner-0.1.39 node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
immosquare-cleaner-0.1.38 node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts