README

mizchi/crater-css/diagnostics does not have a README file

#
Diagnostic

pub(all) struct Diagnostic {
property : String
value : String
level : SupportLevel
severity : Severity
selector : String
}

A single diagnostic entry
impl Show for Diagnostic

#
DiagnosticSummary

pub(all) struct DiagnosticSummary {
total_properties : Int
supported : Int
partial : Int
unsupported_layout : Int
unsupported_visual : Int
deprecated : Int
unknown : Int
}

Summary statistics for diagnostics

#
DiagnosticsCollector

pub struct DiagnosticsCollector {
diagnostics : Array[Diagnostic]
seen : Map[String, Bool]
supported_count : Int
partial_count : Int
unsupported_layout_count : Int
unsupported_visual_count : Int
deprecated_count : Int
unknown_count : Int
}

Collector for CSS diagnostics

#
DiagnosticsCollector::add_property

fn DiagnosticsCollector::add_property(self : DiagnosticsCollector, property : String, value : String, selector : String) -> Unit

Add a property to the collector

#
DiagnosticsCollector::format_compact

fn DiagnosticsCollector::format_compact(self : DiagnosticsCollector) -> String

Format a compact one-line summary

#
DiagnosticsCollector::format_report

fn DiagnosticsCollector::format_report(self : DiagnosticsCollector, max_entries : Int) -> String

Format diagnostics as a string report

#
DiagnosticsCollector::get_by_severity

fn DiagnosticsCollector::get_by_severity(self : DiagnosticsCollector, severity : Severity) -> Array[Diagnostic]

Get diagnostics filtered by severity

#
DiagnosticsCollector::get_diagnostics

Get all diagnostics

#
DiagnosticsCollector::get_layout_affecting

fn DiagnosticsCollector::get_layout_affecting(self : DiagnosticsCollector) -> Array[Diagnostic]

Get diagnostics that affect layout

#
DiagnosticsCollector::get_summary

Get summary statistics

#
DiagnosticsCollector::new

Create a new diagnostics collector

#
Severity

pub(all) enum Severity {
Info
Warning
Error
}

Severity level for diagnostics
impl Show for Severity

#
SupportLevel

pub(all) enum SupportLevel {
Supported
Partial(String)
UnsupportedLayout
UnsupportedVisual
Deprecated(String)
Unknown
}

Support level for a CSS property

#
affects_layout

fn affects_layout(level : SupportLevel) -> Bool

Check if a property affects layout

#
get_support_level

fn get_support_level(property : String) -> SupportLevel

Get support level for a CSS property

#
should_warn

fn should_warn(level : SupportLevel) -> Bool

Check if a property should be warned about (not fully supported)

#
support_to_severity

fn support_to_severity(level : SupportLevel) -> Severity

Get severity for a support level

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io