/// /// import { ErrorCode, UpdateType } from '../../Constants'; /** * A COMPILE_ERROR is sent if a compilation error occurs. In this case, the update_type field in a DebuggerUpdate message is set to * COMPILE_ERROR, and the data field contains a structure named CompileErrorUpdateData that provides the reason for the error. * The CompileErrorUpdateData structure has the following syntax: ``` struct CompileErrorUpdateData { uint32 flags; // Always 0, reserved for future use utf8z error_string; utf8z file_spec; uint32 line_number; utf8z library_name; } ``` */ export declare class CompileErrorUpdate { static fromJson(data: { errorMessage: string; filePath: string; lineNumber: number; libraryName: string; }): CompileErrorUpdate; static fromBuffer(buffer: Buffer): CompileErrorUpdate; toBuffer(): Buffer; success: boolean; /** * How many bytes were read by the `fromBuffer` method. Only populated when constructed by `fromBuffer` */ readOffset: number; data: { flags: number; /** * A text message describing the compiler error. * * This is completely unrelated to the DebuggerUpdate.errorCode field. */ errorMessage: string; /** * A simple file path indicating where the compiler error occurred. It maps to all matching file paths in the channel or its libraries * * `"pkg:/"` specifies a file in the channel * * `"lib://"` specifies a file in a library. */ filePath: string; /** * The 1-based line number where the compile error occurred. */ lineNumber: number; /** * The name of the library where the compile error occurred. */ libraryName: string; packetLength: number; requestId: number; errorCode: ErrorCode; updateType: UpdateType; }; }