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

Method last_forbids_ws_after

crates/css_parse/src/cursor_compact_write_sink.rs:39–41  ·  view source on GitHub ↗

True when the previously-emitted token never needs a separator after it (e.g. `,`, `)`, `{`). Whitespace can be dropped and re-injection skipped.

(&self)

Source from the content-addressed store, hash-verified

37 /// True when the previously-emitted token never needs a separator after it
38 /// (e.g. `,`, `)`, `{`). Whitespace can be dropped and re-injection skipped.
39 fn last_forbids_ws_after(&self) -> bool {
40 self.last_token.is_some_and(|t| t == NO_WHITESPACE_AFTER_KINDSET)
41 }
42
43 fn emit(&mut self, c: SourceCursor<'a>) {
44 self.last_token = Some(c.token());

Callers 1

writeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected