(toks: &[Tok<'_>])
| 50 | } |
| 51 | |
| 52 | pub(super) fn parse_traverse(toks: &[Tok<'_>]) -> Option<NodedbStatement> { |
| 53 | let start = quoted_after(toks, "FROM")?; |
| 54 | let depth = usize_after(toks, "DEPTH").unwrap_or(2); |
| 55 | let edge_label = quoted_after(toks, "LABEL"); |
| 56 | let direction = direction_after(toks); |
| 57 | Some(NodedbStatement::Graph(GraphStmt::GraphTraverse { |
| 58 | start, |
| 59 | depth, |
| 60 | edge_label, |
| 61 | direction, |
| 62 | })) |
| 63 | } |
| 64 | |
| 65 | pub(super) fn parse_neighbors(toks: &[Tok<'_>]) -> Option<NodedbStatement> { |
| 66 | let node = quoted_after(toks, "OF")?; |
no test coverage detected