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

Method newline

crates/core/src/source.rs:112–116  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

110 }
111
112 fn newline(&mut self) {
113 self.in_line_comment = false;
114 self.continuing_line = false;
115 self.s.push('\n');
116 }
117
118 pub fn as_mut_string(&mut self) -> &mut String {
119 &mut self.s

Callers 1

push_strMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected