Return EmittedDiagnostics in Session
as a list of Diagnostic
objects and not in human format
#124
Labels
C-enhancement
Category: an issue proposing an enhancement or a PR with one
Describe the feature
Running this code:
The function
emitted_errors
returns anEmittedDiagnostics
object which is a human format representation of a list ofDiagnostic
objects.I think the session object should not make the decision to return the errors in that specific format but return the
Diagnostic
objects itself and let the calling function decide how to format the result.To give more colour to my use case, I was trying to write a debugger using solar and I need to format the diagnostics in a certain way.
Additional context
No response
The text was updated successfully, but these errors were encountered: