summaryrefslogtreecommitdiff
path: root/src/reports
Commit message (Collapse)AuthorAge
* Don't print original source in redefinition errorsBen Bridle2025-03-25
| | | | | | | | | The source context of the original definition of a redefined symbol was being printed when reporting a redefinition error. Since only the source code containing the redefinition was available, if the original definition was in a different file then the source context of the original definition would just pull from this source code and the context shown would be completely nonsensical.
* Large restructureBen Bridle2025-03-18
| | | | | Files were moved to be better organised, error messages were changed to be more general, and a Compiler type was added to the library.
* Implement source chainsBen Bridle2025-03-11
| | | | | | | | | | A SourceSpan can now contain a child SourceSpan, ad infinitum, in order to represent a chain of locations. The report_source_issue function has been changed to print the entire chain, instead of just one SourceSpan. The report_source_issue function has also been changed to correctly print SourceSpans that extend across multiple source lines.
* Make output of report_source_issue more conciseBen Bridle2025-03-10
| | | | | Instead of displaying two locations for the same error, only show the in_merged source location if there is no in_source location.
* Create struct for reporting unused definitionsBen Bridle2025-02-13
|
* Create struct for reporting in detail the symbols in a resolverBen Bridle2025-02-10
| | | | This is used for debugging symbol definition and resolution issues.
* Track related symbols in resolverBen Bridle2025-02-10
| | | | | | | | As well as the already-implemented tracking of the existing definition of redefinitions, the resolver will now also track the definition that resolves each reference, and the references resolved by each definition. Instead of using tuples to hold this information, named wrapper structs have been created for each category.
* Import from the log and ansi crates once in the reports moduleBen Bridle2025-02-10
| | | | This is tidier than duplicate imports in every file of the module.
* Simplify infallible indexing operations in resolverBen Bridle2025-02-10
| | | | | Indexing into a resolver with a pointer from the same resolver should never fail, and if it does we don't want to silently squash the error.
* Move report-printing structs to separate moduleBen Bridle2025-02-10