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

Method p

crates/ruff_python_codegen/src/generator.rs:171–179  ·  view source on GitHub ↗
(&mut self, s: &str)

Source from the content-addressed store, hash-verified

169 }
170
171 fn p(&mut self, s: &str) {
172 if self.num_newlines > 0 {
173 for _ in 0..self.num_newlines {
174 self.buffer += &self.line_ending;
175 }
176 self.num_newlines = 0;
177 }
178 self.buffer += s;
179 }
180
181 fn p_id(&mut self, s: &Identifier) {
182 self.p(s.as_str());

Callers 15

p_idMethod · 0.80
p_str_reprMethod · 0.80
p_ifMethod · 0.80
unparse_patternMethod · 0.80
unparse_match_caseMethod · 0.80
unparse_type_paramsMethod · 0.80
unparse_type_paramMethod · 0.80
unparse_exprMethod · 0.80
unparse_singletonMethod · 0.80
unparse_parametersMethod · 0.80
unparse_parameterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected