Skip to main content

Module diagnostics

Module diagnostics 

Source

Structs§

ErrorDecision
The explicit presentation decision for one ParseErrorKind.

Enums§

DocsLink
Whether a diagnostic carries a “read more” link into LOGOS_QUICKGUIDE.md.
Quickfix
Whether code_actions offers a mechanical fix for an error kind.

Constants§

ANALYSIS_DECISIONS
The severity contract for the analysis-layer hint/warning codes — one row per emitted code, locked (both directions) by tests/locks.rs.
REFUSAL_CODE
The diagnostic code of a browser-tier refusal.

Functions§

convert_analysis_errors
Convert analysis errors (escape/ownership) to LSP diagnostics.
convert_errors
Convert a list of parse errors to LSP diagnostics.
copy_finding_code
copy- and the kind’s variant name in kebab case: OrphanedCopy → copy-orphaned-copy — mirrors lgx_finding_code’s own convention for its own, separate finding type.
copy_finding_diagnostics
The value-semantics copy lint’s findings, as the editor shows them — same treatment lgx_finding_diagnostics gives its own, separate finding type: at the mutation the lint is about, with its own severity and message.
decision_for
lgx_finding_code
lgx- and the kind’s variant name in kebab case: ImageWithoutAlt → lgx-image-without-alt.
lgx_finding_diagnostics
The LGX template checker’s findings, as the editor shows them: at the element they are about, with the checker’s own severity and message.
refusal_diagnostics
The browser build’s refusals, at the construct each refuses.
shadowing_warnings
Warnings for re-declared names: a second Let x in the same block makes the earlier x unreachable from that point on — legal, and usually a misspelled Set.
unused_function_hints
Hints for functions nothing calls — only in programs WITH a ## Main (a library file’s functions are its API, not dead code).
unused_variable_hints
Hints for Let bindings nothing ever reads.