package-type imports
This commit is contained in:
@@ -65,10 +65,14 @@ diagnostic_message :: proc(emitter: ^Emitter, diagnostic: int, span: source.Span
|
||||
delete(message, emitter.allocator)
|
||||
return id
|
||||
}
|
||||
line, column := source.line_and_column(emitter.diagnostics.source, span.start)
|
||||
source_file := source.source_for_span(emitter.diagnostics, span)
|
||||
if source_file == nil {
|
||||
return register_message(emitter, fallback)
|
||||
}
|
||||
line, column := source.line_and_column(source_file, span.start)
|
||||
message := fmt.aprintf(
|
||||
"%s:%d:%d: runtime trap: %s",
|
||||
emitter.diagnostics.source.path,
|
||||
source_file.path,
|
||||
line,
|
||||
column,
|
||||
fallback,
|
||||
|
||||
Reference in New Issue
Block a user