(&mut self, call: &ast::Node)
| 733 | } |
| 734 | |
| 735 | pub fn create_object_for_call(&mut self, call: &ast::Node) -> Result<Symbol<T>> { |
| 736 | if let ast::Clang::CallExpr(ce) = &call.kind { |
| 737 | let ty = ce.get_type(); |
| 738 | let state = ObjectState::Call; |
| 739 | let ctx = self.get_current_ctx(); |
| 740 | let symbol = Symbol::new(ty, state, ctx); |
| 741 | return Ok(symbol); |
| 742 | } |
| 743 | eyre::bail!("create var for call, but receive: {call:#?}") |
| 744 | } |
| 745 | |
| 746 | fn get_current_ctx(&mut self) -> usize { |
| 747 | self.ctx += 1; |
no test coverage detected