MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / code

Method code

src/mcp/tools/render.rs:356–364  ·  view source on GitHub ↗
(&mut self, lang: &str, body: &str)

Source from the content-addressed store, hash-verified

354 }
355
356 pub(super) fn code(&mut self, lang: &str, body: &str) -> &mut Self {
357 let _ = writeln!(self.buf, "```{lang}");
358 self.buf.push_str(body);
359 if !body.ends_with('\n') {
360 self.buf.push('\n');
361 }
362 self.buf.push_str("```\n");
363 self
364 }
365
366 pub(super) fn render(self) -> String {
367 self.buf

Callers 4

is_ignored_by_gitFunction · 0.80
ast_grep_rewriteMethod · 0.80
render_body_mdFunction · 0.80
render_read_mdFunction · 0.80

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected