openCppClassScope: a class-like node's body as a scope for visit_in_brace_scope.
(&mut self, scope: &Scope, body: Node<'t>)
| 1139 | |
| 1140 | /// openCppClassScope: a class-like node's body as a scope for visit_in_brace_scope. |
| 1141 | fn open_class_scope(&mut self, scope: &Scope, body: Node<'t>) { |
| 1142 | let Some(close) = self.brace_scopes.as_ref().and_then(|s| s.close_of(body.start_byte())) else { return }; |
| 1143 | if self.class_scopes.add(body.start_byte(), close, scope.clone()) { |
| 1144 | self.class_scope_rows.insert(scope.row); |
| 1145 | } |
| 1146 | } |
| 1147 | |
| 1148 | fn dispatch_node(&mut self, node: Node<'t>) { |
| 1149 | stack_guard!(); |
no test coverage detected