MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / open_class_scope

Method open_class_scope

codegraph-kernel/src/ccpp/mod.rs:1131–1136  ·  view source on GitHub ↗

openCppClassScope: a class-like node's body as a scope for visit_in_brace_scope.

(&mut self, scope: &Scope, body: Node<'t>)

Source from the content-addressed store, hash-verified

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!();

Callers 2

extract_classMethod · 0.80
extract_aggregateMethod · 0.80

Calls 2

close_ofMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected