MCPcopy Create free account
hub / github.com/csskit/csskit / visit_property_rule

Method visit_property_rule

crates/csskit_highlight/src/css.rs:134–137  ·  view source on GitHub ↗

Visit PropertyRule to mark the AtKeyword and the Prelude

(&mut self, property: &PropertyRule<'a>)

Source from the content-addressed store, hash-verified

132
133 // Visit PropertyRule to mark the AtKeyword and the Prelude
134 fn visit_property_rule<'a>(&mut self, property: &PropertyRule<'a>) {
135 self.insert(property.name.to_span(), SemanticKind::AtKeyword, SemanticModifier::none());
136 self.insert(property.prelude.to_span(), SemanticKind::Declaration, SemanticModifier::Custom);
137 }
138
139 // Visit Color nodes to decorate with the swatch
140 fn visit_color(&mut self, color: &Color) {

Callers

nothing calls this directly

Calls 2

insertMethod · 0.45
to_spanMethod · 0.45

Tested by

no test coverage detected