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

Method ignore_parent

src/ast/helper.rs:30–38  ·  view source on GitHub ↗

Ignore useless parent node

(&self)

Source from the content-addressed store, hash-verified

28impl CommomHelper for Node {
29 /// Ignore useless parent node
30 fn ignore_parent(&self) -> &Self {
31 match &self.kind {
32 Clang::TranslationUnitDecl
33 | Clang::CompoundLiteralExpr
34 | Clang::MaterializeTemporaryExpr
35 | Clang::ExprWithCleanups => self.inner.first().unwrap().ignore_parent(),
36 _ => self,
37 }
38 }
39
40 /// Ignore the cast-style stmt.
41 fn ignore_cast(&self) -> &Self {

Callers 15

visit_stmtMethod · 0.80
get_rvalueMethod · 0.80
get_childsMethod · 0.80
get_var_initMethod · 0.80
get_var_init_callMethod · 0.80
get_base_exprMethod · 0.80
get_new_size_varMethod · 0.80
is_var_fuzzableFunction · 0.80
is_arg_fuzzableFunction · 0.80
get_nth_argFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected