Skip to main content

Crate react_compiler_diagnostics

Crate react_compiler_diagnostics 

Source

Modules§

code_frame

Structs§

CompilerDiagnostic
A single compiler diagnostic (new-style)
CompilerError
Aggregate compiler error - can contain multiple diagnostics. This is the main error type thrown/returned by the compiler.
CompilerErrorDetail
Legacy-style error detail (matches CompilerErrorDetail in TS)
CompilerSuggestion
A compiler suggestion for fixing an error
Position
SourceLocation
Source location (matches Babel’s SourceLocation format) This is the HIR source location, separate from AST’s BaseNode location. GeneratedSource is represented as None.

Enums§

CompilerDiagnosticDetail
Detail for a diagnostic
CompilerErrorOrDiagnostic
Either a new-style diagnostic or legacy error detail
CompilerSuggestionOperation
Suggestion operations for auto-fixes
ErrorCategory
Error categories matching the TS ErrorCategory enum
ErrorSeverity
Error severity levels

Constants§

GENERATED_SOURCE
Sentinel value for generated/synthetic source locations

Functions§

format_category_heading