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

Method drop

crates/css_parse/src/cursor_compact_write_sink.rs:100–106  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

98
99impl<'a, T: SourceCursorSink<'a>> Drop for CursorCompactWriteSink<'a, T> {
100 fn drop(&mut self) {
101 if let Some(prev) = self.pending.take()
102 && prev == Kind::Semicolon
103 {
104 self.emit(prev);
105 }
106 }
107}
108
109impl<'a, T: SourceCursorSink<'a>> CursorSink for CursorCompactWriteSink<'a, T> {

Callers

nothing calls this directly

Calls 1

emitMethod · 0.80

Tested by

no test coverage detected