Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Compiler_Module_Name_Diagnostics.H File Reference

Reusable diagnostics for top-level inter-module name resolution. More...

#include <string>
#include <Compiler_Module_Name_Resolver.H>
#include <ah-diagnostics.H>
Include dependency graph for Compiler_Module_Name_Diagnostics.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Aleph
 Main namespace for Aleph-w library functions.
 

Functions

size_t Aleph::compiler_emit_module_name_resolution_diagnostic (Diagnostic_Engine &diagnostics, const Source_Span &span, const Compiler_Module_Name_Resolution &resolution, const std::string &code, const std::string &subject)
 Emits one structured diagnostic for a module-name resolution failure.
 

Detailed Description

Reusable diagnostics for top-level inter-module name resolution.

This header translates one Compiler_Module_Name_Resolution into a structured diagnostic with stable wording, notes, and help messages. It is intended for frontends that reuse the module-surface resolver but still want frontend-specific error codes and subject names such as "callee" or "imported type".

Definition in file Compiler_Module_Name_Diagnostics.H.