Sha256: 06295c22e97b9d46ca41d3fe4b5bcd1929d123bdc36c280f7b1216b04711f53c

Contents?: true

Size: 1.19 KB

Versions: 28

Compression:

Stored size: 1.19 KB

Contents

declare type Line = number;
declare type Column = number;
declare type Kind = number;
declare type Name = number;
declare type Var = number;
declare type SourcesIndex = number;
declare type ScopesIndex = number;
declare type Mix<A, B, O> = (A & O) | (B & O);
export declare type OriginalScope = Mix<[
    Line,
    Column,
    Line,
    Column,
    Kind
], [
    Line,
    Column,
    Line,
    Column,
    Kind,
    Name
], {
    vars: Var[];
}>;
export declare type GeneratedRange = Mix<[
    Line,
    Column,
    Line,
    Column
], [
    Line,
    Column,
    Line,
    Column,
    SourcesIndex,
    ScopesIndex
], {
    callsite: CallSite | null;
    bindings: Binding[];
    isScope: boolean;
}>;
export declare type CallSite = [SourcesIndex, Line, Column];
declare type Binding = BindingExpressionRange[];
export declare type BindingExpressionRange = [Name] | [Name, Line, Column];
export declare function decodeOriginalScopes(input: string): OriginalScope[];
export declare function encodeOriginalScopes(scopes: OriginalScope[]): string;
export declare function decodeGeneratedRanges(input: string): GeneratedRange[];
export declare function encodeGeneratedRanges(ranges: GeneratedRange[]): string;
export {};

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.62 node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
immosquare-cleaner-0.1.61 node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.26 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.25 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.24 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.23 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.22 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.21 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.20 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.19 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.18 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.17 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.16 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.15 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.14 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.13 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.12 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.11 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.10 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts
clapton-0.0.9 lib/clapton/javascripts/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts