MCPcopy Create free account
hub / github.com/tailwindlabs/tailwindcss / push

Method push

crates/oxide/src/extractor/bracket_stack.rs:18–34  ·  view source on GitHub ↗
(&mut self, bracket: u8)

Source from the content-addressed store, hash-verified

16
17 #[inline(always)]
18 pub fn push(&mut self, bracket: u8) -> bool {
19 if self.bracket_stack_len >= SIZE {
20 return false;
21 }
22
23 unsafe {
24 *self.bracket_stack.get_unchecked_mut(self.bracket_stack_len) = match bracket {
25 b'(' => b')',
26 b'[' => b']',
27 b'{' => b'}',
28 _ => std::hint::unreachable_unchecked(),
29 };
30 }
31
32 self.bracket_stack_len += 1;
33 true
34 }
35
36 #[inline(always)]
37 pub fn pop(&mut self, bracket: u8) -> bool {

Callers 15

optimizeFunction · 0.45
startMethod · 0.45
reportMethod · 0.45
rewriteUrlsFunction · 0.45
traceDependenciesFunction · 0.45
wordWrapFunction · 0.45
createOutputFunction · 0.45
helpFunction · 0.45
getClassListFunction · 0.45
sortFractionsLastFunction · 0.45
exitFunction · 0.45

Calls

no outgoing calls

Tested by 6

createOutputFunction · 0.36
enterFunction · 0.36
exitFunction · 0.36
formatFunction · 0.36
test_extract_allMethod · 0.36
test_extract_containsMethod · 0.36