BaseDiagnostic Base diagnostic with common fields.
level
'error' | 'warning'message
stringsuggestion
string | nullDiagnostic types for CSS class extraction and generation.
Provides a unified diagnostic system across all phases: - Extraction: Parsing source files to find class names - Generation: Producing CSS output from class definitions
9 declarations
BaseDiagnostic Base diagnostic with common fields.
level'error' | 'warning'messagestringsuggestionstring | null(diagnostic: InterpreterDiagnostic, locations: SourceLocation[] | null): GenerationDiagnostic Converts a InterpreterDiagnostic to a GenerationDiagnostic with locations.
diagnostic- Interpreter diagnostic to convert
locations- Source locations where the class was used
SourceLocation[] | nullGenerationDiagnostic Error thrown when CSS generation encounters errors or warnings
(depending on on_error and on_warning settings).
Contains the full diagnostics array for programmatic access.
Errordiagnosticstype Array<Diagnostic>
constructortype new (diagnostics: Diagnostic[]): CssGenerationError
diagnosticsDiagnostic[]Diagnostic Union of all diagnostic types.
ExtractionDiagnostic Diagnostic from the extraction phase.
phase'extraction'location(d: Diagnostic): string Formats a diagnostic for display.
dstring GenerationDiagnostic Diagnostic from the generation phase.
phase'generation'level'error' | 'warning'messagestringsuggestionstring | nullclass_namestringlocationsSource locations where this class was used, or null if from include_classes
Array<SourceLocation> | nullInterpreterDiagnostic Diagnostic from CSS class interpretation. Used internally by interpreters; converted to GenerationDiagnostic with locations.
level'error' | 'warning'messagestringclass_namestringsuggestionstring | nullSourceLocation Source location for IDE/LSP integration.
filestringline1-based line number
numbercolumn1-based column number
number