compiler/ast/reports_debug

  Source   Edit

module with Debug legacy reports definitions

TODO: even though it's legacy we shouldn't group "debug" reports like this,
that's what severity or some other categorization is for. Instead, break these up into additional report types within reports_sem/vm/etc

Types

DebugReport = object of DebugReportBase
  case kind*: ReportKind
  of rdbgOptionsPush, rdbgOptionsPop:
      optionsNow*: TOptions

  of rdbgVmExecTraceFull:
      vmgenExecFull*: tuple[pc: int, opc: TOpcode, info: TLineInfo,
                            ra, rb, rc: TRegisterKind]

  of rdbgVmExecTraceMinimal:
      vmgenExecMinimal*: tuple[info: TLineInfo, opc: TOpcode]

  else:
      nil

  
  Source   Edit

Procs

func severity(report: DebugReport): ReportSeverity {....raises: [], tags: [].}
  Source   Edit