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

Function print_graph_expression

graphlite/src/ast/pretty_printer.rs:685–701  ·  view source on GitHub ↗
(graph_expr: &GraphExpression, indent: usize)

Source from the content-addressed store, hash-verified

683}
684
685fn print_graph_expression(graph_expr: &GraphExpression, indent: usize) {
686 match graph_expr {
687 GraphExpression::Reference(path) => {
688 debug!("{}Reference: {}", get_indent(indent), path);
689 }
690 GraphExpression::Union { left, right, all } => {
691 debug!("{}Union (ALL: {})", get_indent(indent), all);
692 debug!("{}Left", get_indent(indent + 1));
693 print_graph_expression(left, indent + 2);
694 debug!("{}Right", get_indent(indent + 1));
695 print_graph_expression(right, indent + 2);
696 }
697 GraphExpression::CurrentGraph => {
698 debug!("{}CurrentGraph (session graph)", get_indent(indent));
699 }
700 }
701}
702
703fn print_group_clause(group_clause: &GroupClause, indent: usize) {
704 debug!(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected