openCppClassScope: a class-like node's body as a scope for visit_in_brace_scope.
(&mut self, scope: &Scope, body: Node<'t>)
| 1129 | |
| 1130 | /// openCppClassScope: a class-like node's body as a scope for visit_in_brace_scope. |
| 1131 | fn open_class_scope(&mut self, scope: &Scope, body: Node<'t>) { |
| 1132 | let Some(close) = self.brace_scopes.as_ref().and_then(|s| s.close_of(body.start_byte())) else { return }; |
| 1133 | if self.class_scopes.add(body.start_byte(), close, scope.clone()) { |
| 1134 | self.class_scope_rows.insert(scope.row); |
| 1135 | } |
| 1136 | } |
| 1137 | |
| 1138 | fn dispatch_node(&mut self, node: Node<'t>) { |
| 1139 | stack_guard!(); |
no test coverage detected