(&mut self)
| 202 | } |
| 203 | |
| 204 | fn parse_output_block(&mut self) -> Result<Cow<'static, str>, String> { |
| 205 | let mut output = Cow::Borrowed(""); |
| 206 | loop { |
| 207 | if self.consume_close("Output")? { |
| 208 | break; |
| 209 | } |
| 210 | let key = self.expect_ident()?; |
| 211 | self.expect(Token::Equals)?; |
| 212 | if key == "input" { |
| 213 | output = Cow::Owned(self.expect_ref()?); |
| 214 | } else { |
| 215 | self.skip_value()?; |
| 216 | } |
| 217 | } |
| 218 | Ok(output) |
| 219 | } |
| 220 | |
| 221 | fn parse_graph_node_block(&mut self, key: String) -> Result<AnimationTreeGraphNode, String> { |
| 222 | self.expect(Token::LBracket)?; |
no test coverage detected