(toks: &[Tok<'_>])
| 102 | } |
| 103 | |
| 104 | pub(super) fn direction_after(toks: &[Tok<'_>]) -> GraphDirection { |
| 105 | match word_after(toks, "DIRECTION") |
| 106 | .as_deref() |
| 107 | .map(str::to_ascii_uppercase) |
| 108 | .as_deref() |
| 109 | { |
| 110 | Some("IN") => GraphDirection::In, |
| 111 | Some("BOTH") => GraphDirection::Both, |
| 112 | _ => GraphDirection::Out, |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | pub(super) fn extract_properties(toks: &[Tok<'_>]) -> GraphProperties { |
| 117 | let Some(pos) = find_keyword(toks, "PROPERTIES") else { |
no test coverage detected