MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / print_call_statement

Function print_call_statement

graphlite/src/ast/pretty_printer.rs:251–279  ·  view source on GitHub ↗
(call_stmt: &CallStatement, indent: usize)

Source from the content-addressed store, hash-verified

249}
250
251fn print_call_statement(call_stmt: &CallStatement, indent: usize) {
252 debug!(
253 "{}Procedure: {}",
254 get_indent(indent),
255 call_stmt.procedure_name
256 );
257
258 if !call_stmt.arguments.is_empty() {
259 debug!(
260 "{}Arguments ({})",
261 get_indent(indent),
262 call_stmt.arguments.len()
263 );
264 for (i, arg) in call_stmt.arguments.iter().enumerate() {
265 debug!("{}Argument {}", get_indent(indent + 1), i);
266 print_expression(arg, indent + 2);
267 }
268 }
269
270 if let Some(yield_clause) = &call_stmt.yield_clause {
271 debug!("{}YieldClause", get_indent(indent));
272 print_yield_clause(yield_clause, indent + 1);
273 }
274
275 if let Some(where_clause) = &call_stmt.where_clause {
276 debug!("{}WhereClause", get_indent(indent));
277 print_where_clause(where_clause, indent + 1);
278 }
279}
280
281fn print_yield_clause(yield_clause: &YieldClause, indent: usize) {
282 debug!(

Callers 1

print_statementFunction · 0.85

Calls 5

print_expressionFunction · 0.85
print_yield_clauseFunction · 0.85
print_where_clauseFunction · 0.85
is_emptyMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected