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

Function print_path_pattern

graphlite/src/ast/pretty_printer.rs:316–335  ·  view source on GitHub ↗
(path_pattern: &PathPattern, indent: usize)

Source from the content-addressed store, hash-verified

314}
315
316fn print_path_pattern(path_pattern: &PathPattern, indent: usize) {
317 debug!(
318 "{}Elements ({})",
319 get_indent(indent),
320 path_pattern.elements.len()
321 );
322
323 for (i, element) in path_pattern.elements.iter().enumerate() {
324 match element {
325 PatternElement::Node(node) => {
326 debug!("{}Node {}", get_indent(indent + 1), i);
327 print_node(node, indent + 2);
328 }
329 PatternElement::Edge(edge) => {
330 debug!("{}Edge {}", get_indent(indent + 1), i);
331 print_edge(edge, indent + 2);
332 }
333 }
334 }
335}
336
337fn print_node(node: &Node, indent: usize) {
338 if let Some(identifier) = &node.identifier {

Callers 2

print_match_clauseFunction · 0.85
print_expressionFunction · 0.85

Calls 3

print_nodeFunction · 0.85
print_edgeFunction · 0.85
iterMethod · 0.45

Tested by

no test coverage detected