MCPcopy Create free account
hub / github.com/PerroEngine/Perro / parse_output_block

Method parse_output_block

perro_source/core/perro_animation/src/anim_tree.rs:204–219  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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)?;

Callers 1

parseMethod · 0.80

Calls 5

consume_closeMethod · 0.80
expect_refMethod · 0.80
skip_valueMethod · 0.80
expect_identMethod · 0.45
expectMethod · 0.45

Tested by

no test coverage detected