Frontend.Diagnosticval range_of_loc_span :
?printed_filename:string ->
?code:string ->
Middle.Location_span.t ->
Grace.Range.t * Grace.Diagnostic.Label.t listReturns the range represented by the location span and a list of secondary diagnostics identifying where it was included from, if applicable
val make :
?printed_filename:string ->
?code:string ->
?labels:Grace.Diagnostic.Label.t list ->
?notes:Grace.Diagnostic.Message.t list ->
?summary:Grace.Diagnostic.Message.t ->
Middle.Location_span.t ->
Grace.Diagnostic.Severity.t ->
('a, 'b Grace.Diagnostic.t) Grace.Diagnostic.format ->
'aBuilds Grace.Diagnostic.ts from code locations, a primary message, and additional labels, notes, or a summary message.
val context :
?printed_filename:string ->
?code:string ->
Middle.Location_span.t ->
('a, Grace.Diagnostic.Label.t list) Grace.Diagnostic.format ->
'aBuilds a secondary label.
Removes duplicated secondary labels. These are "included here" messages.
Resets the style before the label to allow our own coloring to work better.