time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

SqError.d.ts (1351B)


      1 import { ICompileError, IRuntimeError } from "../errors/IError.js";
      2 import { Frame } from "../reducer/frameStack.js";
      3 declare abstract class SqAbstractError<T extends string> {
      4     abstract tag: T;
      5     abstract toString(): string;
      6     abstract toStringWithDetails(): string;
      7 }
      8 export declare class SqFrame {
      9     private _value;
     10     constructor(_value: Frame);
     11     name(): string;
     12     location(): import("peggy").LocationRange | undefined;
     13 }
     14 export declare class SqRuntimeError extends SqAbstractError<"runtime"> {
     15     private _value;
     16     tag: "runtime";
     17     constructor(_value: IRuntimeError);
     18     toString(): string;
     19     toStringWithDetails(): string;
     20     private getTopFrame;
     21     getFrameArray(): SqFrame[];
     22     location(): import("peggy").LocationRange | undefined;
     23 }
     24 export declare class SqCompileError extends SqAbstractError<"compile"> {
     25     private _value;
     26     tag: "compile";
     27     constructor(_value: ICompileError);
     28     toString(): string;
     29     toStringWithDetails(): string;
     30     location(): import("peggy").LocationRange;
     31 }
     32 export declare class SqOtherError extends SqAbstractError<"other"> {
     33     private _value;
     34     tag: "other";
     35     constructor(_value: string);
     36     toString(): string;
     37     toStringWithDetails(): string;
     38 }
     39 export type SqError = SqRuntimeError | SqCompileError | SqOtherError;
     40 export {};
     41 //# sourceMappingURL=SqError.d.ts.map