(&self)
| 181 | } |
| 182 | |
| 183 | fn dump(&self) -> String { |
| 184 | let dump_str = match &self.kind { |
| 185 | Clang::ImplicitCastExpr(ce) => get_source_code_content(&ce.range), |
| 186 | Clang::CStyleCastExpr(ce) => get_source_code_content(&ce.range), |
| 187 | Clang::StringLiteral(sl) => get_source_code_content(&sl.range), |
| 188 | Clang::IntegerLiteral(il) => get_source_code_content(&il.range), |
| 189 | Clang::CharacterLiteral(cl) => get_source_code_content(&cl.range), |
| 190 | Clang::FloatingLiteral(fl) => get_source_code_content(&fl.range), |
| 191 | //Clang::IfStmt(is) => { |
| 192 | // get_source_code_content(&is.range) |
| 193 | //}, |
| 194 | Clang::DeclStmt(ds) => get_source_code_content(&ds.range), |
| 195 | Clang::BinaryOperator(bo) => get_source_code_content(&bo.range), |
| 196 | Clang::ReturnStmt(rs) => get_source_code_content(&rs.range), |
| 197 | Clang::CallExpr(ce) => get_source_code_content(&ce.range), |
| 198 | Clang::ParmVarDecl(pvd) => get_source_code_content(&pvd.range), |
| 199 | Clang::UnaryOperator(uo) => get_source_code_content(&uo.range), |
| 200 | Clang::ConstantExpr(ue) => get_source_code_content(&ue.range), |
| 201 | _ => Ok(format!("{:?}", self.kind)), |
| 202 | }; |
| 203 | dump_str.unwrap_or_else(|_| format!("{:?}", self.kind)) |
| 204 | } |
| 205 | |
| 206 | fn is_macro_expansion(&self) -> bool { |
| 207 | match &self.kind { |
no test coverage detected