MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / get_child

Method get_child

src/ast/helper.rs:70–73  ·  view source on GitHub ↗

Get the signle child. You must make sure this kind of stmt only has a single child.

(&self)

Source from the content-addressed store, hash-verified

68
69 /// Get the signle child. You must make sure this kind of stmt only has a single child.
70 fn get_child(&self) -> &Self {
71 assert_eq!(self.inner.len(), 1);
72 self.inner.first().unwrap()
73 }
74
75 fn get_child_mut(&mut self) -> &mut Self {
76 self.inner.get_mut(0).unwrap()

Callers 2

ignore_castMethod · 0.80
get_childsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected