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

Method openCppClassScope

src/extraction/tree-sitter.ts:1584–1590  ·  view source on GitHub ↗

Open a class-like node's body as a scope for visitInCppBraceScope.

(node: Node, body: SyntaxNode | null | undefined)

Source from the content-addressed store, hash-verified

1582
1583 /** Open a class-like node's body as a scope for visitInCppBraceScope. */
1584 private openCppClassScope(node: Node, body: SyntaxNode | null | undefined): void {
1585 if (!body) return;
1586 const close = this.cppBraceScopes?.closeOf(body.startIndex);
1587 if (close !== undefined && this.cppClassScopes.add(body.startIndex, close, node.id)) {
1588 this.cppClassScopeIds.add(node.id);
1589 }
1590 }
1591
1592 private dispatchNode(node: SyntaxNode): void {
1593 if (!this.extractor) return;

Callers 2

extractClassMethod · 0.95
extractAggregateMethod · 0.95

Calls 2

closeOfMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected