TypeCobol icon indicating copy to clipboard operation
TypeCobol copied to clipboard

Duplicate diagnostics for CompilerDirective in incremental

Open fm-117 opened this issue 1 year ago • 0 comments

In some incremental parsing scenarios, diagnostics created during compiler directive processing are duplicated.

ProcessingDiagnostics are created:

  • to signal errors that occur during EI-Legacy suffixing
  • to signal errors for unsupported altered REPLACE by a REPLACING clause

Technical

  • identify in which collection the duplicate is originally found (either in ProcessingDiagnostics itself or after being copied into ParserDiagnostics on CodeElementsLine)
  • see also #2335 to think about another model.

To reproduce, remove the exclusion of UseCopyWithReplaceDeclaredWithReplacing / UseCopyWithReplaceDeclaredWithReplacing2 in incremental tests.

fm-117 avatar Mar 21 '23 09:03 fm-117