MCPcopy Create free account
hub / github.com/astral-sh/ruff / p_delim

Method p_delim

crates/ruff_python_codegen/src/generator.rs:234–236  ·  view source on GitHub ↗
(&mut self, first: &mut bool, s: &str)

Source from the content-addressed store, hash-verified

232 }
233
234 fn p_delim(&mut self, first: &mut bool, s: &str) {
235 self.p_if(!std::mem::take(first), s);
236 }
237
238 pub(crate) fn generate(self) -> String {
239 self.buffer

Callers 7

unparse_patternMethod · 0.80
unparse_type_paramsMethod · 0.80
unparse_exprMethod · 0.80
unparse_parametersMethod · 0.80

Calls 1

p_ifMethod · 0.80

Tested by

no test coverage detected