Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
50 lines
1.1 KiB
Plaintext
50 lines
1.1 KiB
Plaintext
type Line = number;
|
|
type Column = number;
|
|
type Kind = number;
|
|
type Name = number;
|
|
type Var = number;
|
|
type SourcesIndex = number;
|
|
type ScopesIndex = number;
|
|
type Mix<A, B, O> = (A & O) | (B & O);
|
|
export type OriginalScope = Mix<[
|
|
Line,
|
|
Column,
|
|
Line,
|
|
Column,
|
|
Kind
|
|
], [
|
|
Line,
|
|
Column,
|
|
Line,
|
|
Column,
|
|
Kind,
|
|
Name
|
|
], {
|
|
vars: Var[];
|
|
}>;
|
|
export type GeneratedRange = Mix<[
|
|
Line,
|
|
Column,
|
|
Line,
|
|
Column
|
|
], [
|
|
Line,
|
|
Column,
|
|
Line,
|
|
Column,
|
|
SourcesIndex,
|
|
ScopesIndex
|
|
], {
|
|
callsite: CallSite | null;
|
|
bindings: Binding[];
|
|
isScope: boolean;
|
|
}>;
|
|
export type CallSite = [SourcesIndex, Line, Column];
|
|
type Binding = BindingExpressionRange[];
|
|
export 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 {};
|
|
//# sourceMappingURL=scopes.d.ts.map |