module with base sem-like reports definitions
Types
ReportContext = object location*: TLineInfo ## Report context instantiation case kind*: ReportContextKind of sckInstantiationOf: entry*: PSym ## Instantiated entry symbol of sckInstantiationFrom: nil
- Source Edit
ReportContextKind = enum sckInstantiationOf, sckInstantiationFrom
- Source Edit
SemishReportBase = object of ReportBase context*: seq[ReportContext]
-
Base for Sem and VM reports which may require additional contextual data. Created as part of a refactor to extract diagnostic data out of reports and put it back into the appropriate modules. The name is temporary and ideally we no longer will need inheritance.
For refactor info: https://github.com/nim-works/nimskull/issues/443
Source Edit