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

Method replace

crates/csskit_transform/src/transformer.rs:144–149  ·  view source on GitHub ↗
(&self, span: impl ToSpan, cursors: Vec<'a, SourceCursor<'a>>)

Source from the content-addressed store, hash-verified

142 }
143
144 pub fn replace(&self, span: impl ToSpan, cursors: Vec<'a, SourceCursor<'a>>) {
145 let span = span.to_span();
146 debug_assert!(span.start() <= span.end(), "Transformer::replace received invalid span: {:?}", span);
147 *self.changed.borrow_mut() = true;
148 self.edits.borrow_mut().push(TransformEdit::Replace { target: span, cursors });
149 }
150
151 pub fn delete(&self, span: impl ToSpan) {
152 let span = span.to_span();

Callers 15

replace_parsedMethod · 0.80
visit_lengthMethod · 0.80
fix_formattingFunction · 0.80
convert_inheritedFunction · 0.80
convert_percentagesFunction · 0.80
convert_applies_toFunction · 0.80
convert_animation_typeFunction · 0.80
convert_computed_valueFunction · 0.80
generate_property_typeFunction · 0.80
parseMethod · 0.80
eleventy.config.jsFile · 0.80

Calls 1

to_spanMethod · 0.45