MCPcopy Create free account
hub / github.com/cel-rust/cel-rust / indent

Method indent

cel/src/parser/parser.rs:2268–2277  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

2266 }
2267
2268 fn indent(&mut self) {
2269 if self.line_start {
2270 self.line_start = false;
2271 self.buffer.push_str(
2272 iter::repeat_n(" ", self.indents)
2273 .collect::<String>()
2274 .as_str(),
2275 )
2276 }
2277 }
2278
2279 fn newline(&mut self) {
2280 self.buffer.push('\n');

Callers 1

pushMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected