@devicescript/interop
Version:
Interfaces for interaction with DeviceScript files
69 lines • 1.7 kB
TypeScript
import { LocalBuildConfig } from "./archconfig";
export type SrcLocation = [number, number];
export interface SrcFile {
path: string;
length: number;
text?: string;
index?: number;
}
export declare const srcMapEntrySize = 3;
export type SrcMap = number[];
export type ConstValue = number | boolean | string | null | {
special: string;
};
export interface FunctionDebugInfo {
name: string;
startpc: number;
size: number;
location?: SrcLocation;
users: SrcLocation[];
slots: VarDebugInfo[];
constVars: Record<string, ConstValue>;
}
export type DebugVarType = "loc" | "glb" | "arg" | "tmp";
export interface VarDebugInfo {
name: string;
type: string;
}
export interface SpecDebugInfo {
name: string;
classIdentifier: number;
}
export interface DebugInfo {
sizes: Record<string, number> & {
header: number;
floats: number;
strings: number;
roles: number;
align: number;
};
localConfig: LocalBuildConfig;
functions: FunctionDebugInfo[];
specs: SpecDebugInfo[];
globals: VarDebugInfo[];
srcmap: SrcMap;
sources: SrcFile[];
binarySHA256?: string;
binary: {
hex: string;
};
_resolverCache?: any;
}
export interface VersionInfo {
devsVersion: string;
runtimeVersion: string;
nodeVersion: string;
}
export declare function emptyDebugInfo(): DebugInfo;
export interface ServerInfo {
label: string;
startName: string;
detail: string;
classIdentifiers?: number[];
imports: Record<string, string>;
snippet: string;
}
export interface ServerInfoFile {
servers: ServerInfo[];
}
//# sourceMappingURL=info.d.ts.map