Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ push
Method
push
crates/ruff_python_parser/src/parser/scratch_buffer.rs:24–26 ·
view source on GitHub ↗
(&mut self, value: T)
Source
from the content-addressed store, hash-verified
22
23
#[inline]
24
pub(super) fn push(&mut self, value: T) {
25
self.buffer.push(value);
26
}
27
28
#[inline]
29
pub(super) fn is_empty(&self, snapshot: &ScratchSnapshot) -> bool {
Callers
15
push_error
Method · 0.45
lex_interpolated_string_start
Method · 0.45
lex
Function · 0.45
test_non_ascii_name_flag
Function · 0.45
parse_cells_unchecked
Function · 0.45
parse_interpolated_string_middle
Method · 0.45
parse_bytes
Method · 0.45
parse_string
Method · 0.45
visit_expr
Method · 0.45
bump
Method · 0.45
do_bump
Method · 0.45
parse_arguments
Method · 0.45
Calls
no outgoing calls
Tested by
14
test_non_ascii_name_flag
Function · 0.36
recursion_limit_nested_match_patterns
Function · 0.36
recursion_limit_binary_paren_interplay
Function · 0.36
recursion_limit_right_assoc_pow_chain
Function · 0.36
recursion_limit_ternary_else_chain
Function · 0.36
recursion_limit_nested_lambda_chain
Function · 0.36
snapshot_is_empty_relative_to_its_buffer
Function · 0.36
install_tests
Function · 0.36
collect_tests
Function · 0.36
extract_comment_blocks
Function · 0.36
enter_node
Method · 0.36
report_semantic_error
Method · 0.36