MCPcopy Create free account
hub / github.com/ChristianSchott/boris / function_source

Method function_source

project/boris_analysis/src/analysis.rs:290–293  ·  view source on GitHub ↗
(&self, fn_def_id: FunctionId)

Source from the content-addressed store, hash-verified

288 }
289
290 pub fn function_source(&self, fn_def_id: FunctionId) -> Option<String> {
291 self.function_to_ast(fn_def_id)
292 .map(|func| func.value.syntax().text().to_string())
293 }
294
295 pub fn reload(&mut self, fn_def_id: FunctionId) {
296 if let Some(node) = self.function_to_ast(fn_def_id) {

Callers 1

analyze_fnMethod · 0.80

Calls 1

function_to_astMethod · 0.80

Tested by

no test coverage detected