addDiagnostic method

void addDiagnostic(
  1. String info
)

Implementation

void addDiagnostic(String info) {
  final msg = switch (debugPath) {
    final String path => '$info\n\t... in "$path".',
    _ => info,
  };

  results.addDiagnostic(msg);
}