Ignore useless parent node
(&self)
| 28 | impl 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 { |
no outgoing calls
no test coverage detected