mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Sorry about the thrash in advance! This removes the top level `forget` directory which adds unnecessary nesting to our repo Hopefully everything still works
forget_diagnostics
Types for representing compiler diagnostics. Includes a general-purpose representation
of diagnostics with related information which can be converted into miette::Diagnostic to exploit miette's pretty printing of errors.
Unlike miette, lsp_types, and other diagnostic libraries, the error severities match Forget's semantics. The intent is that a given Forget diagnostic may be displayed as an error, warning, or not displayed at all depending on the context in which the compiler is being used. For example, an ESLint plugin powered by Forget may ignore InvalidSyntax diagnostics, whereas the regular compiler may report them as errors.