MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / set_indent

Method set_indent

crates/core/src/source.rs:106–110  ·  view source on GitHub ↗

Set the indentation level, and return the old level.

(&mut self, amt: usize)

Source from the content-addressed store, hash-verified

104
105 /// Set the indentation level, and return the old level.
106 pub fn set_indent(&mut self, amt: usize) -> usize {
107 let old = self.indent;
108 self.indent = amt;
109 old
110 }
111
112 fn newline(&mut self) {
113 self.in_line_comment = false;

Callers 1

emit_custom_sectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected