types.ts 833 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. export interface EcalAstNode {
  2. allowescapes: boolean;
  3. children: EcalAstNode[];
  4. id: number;
  5. identifier: boolean;
  6. line: number;
  7. linepos: number;
  8. name: string;
  9. pos: number;
  10. source: string;
  11. value: any;
  12. }
  13. export interface ThreadInspection {
  14. callstack: string[];
  15. threadRunning: boolean;
  16. code?: string;
  17. node?: EcalAstNode;
  18. vs?: any;
  19. }
  20. export interface ClientBreakEvent {
  21. tid: number;
  22. inspection: ThreadInspection;
  23. }
  24. export interface ThreadStatus {
  25. callstack: string[];
  26. threadRunning?: boolean;
  27. }
  28. export interface DebugStatus {
  29. breakonstart: boolean;
  30. breakpoints: Record<string, boolean>;
  31. sources: string[];
  32. threads: Record<number, ThreadStatus>;
  33. }
  34. /**
  35. * Log output stream for this client.
  36. */
  37. export interface LogOutputStream {
  38. log(value: string): void;
  39. error(value: string): void;
  40. }