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

Method with_cursor

crates/css_lexer/src/token.rs:1045–1047  ·  view source on GitHub ↗
(self, offset: SourceOffset)

Source from the content-addressed store, hash-verified

1043 /// A convenience function for `Cursor::new(offset, token)`.
1044 #[inline(always)]
1045 pub fn with_cursor(self, offset: SourceOffset) -> Cursor {
1046 Cursor::new(offset, self)
1047 }
1048
1049 /// If the [Kind] is [Kind::Hash] then this token may have had the opportunity to be parsed as a `<hex-value>` (e.g.
1050 /// `#fff`). When this happens the character data is parsed during tokenization into a u32 which stores the

Callers 15

nextMethod · 0.80
test_caseFunction · 0.80
tokenizes_block_commentFunction · 0.80
tokenizes_basic_selectorFunction · 0.80
tokenizes_basic_css_fileFunction · 0.80
tokenizes_escaped_urlFunction · 0.80
tokenizes_wtfFunction · 0.80

Calls

no outgoing calls