Function
parse_value
(
line: &str,
start: usize,
end: usize,
helper: &MyHelper,
)
Source from the content-addressed store, hash-verified
| 313 | } |
| 314 | } |
| 315 | fn parse_value( |
| 316 | line: &str, |
| 317 | start: usize, |
| 318 | end: usize, |
| 319 | helper: &MyHelper, |
| 320 | ) -> Option<(usize, Partial)> { |
| 321 | let v = line[start..end].parse::<Exp>().ok()?.eval(helper).ok()?; |
| 322 | Some((end, Partial::Val(v, line[end..].to_string()))) |
| 323 | } |
| 324 | fn match_selector(v: &IDLValue, prefix: &str) -> Vec<Pair> { |
| 325 | match v { |
| 326 | IDLValue::Opt(_) => vec![Pair { |
Tested by
no test coverage detected