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

Method has_init

src/ast/kind.rs:87–89  ·  view source on GitHub ↗
(&self, node: &Node)

Source from the content-addressed store, hash-verified

85 }
86
87 pub fn has_init(&self, node: &Node) -> bool {
88 !node.inner.is_empty()
89 }
90
91 pub fn get_init(&self, node: &'a Node) -> &'a Node {
92 assert!(self.has_init(node));

Callers 6

visit_var_declMethod · 0.80
get_var_initMethod · 0.80
is_var_fuzzableFunction · 0.80
is_format_stringFunction · 0.80

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected