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

Method openCppClassScope

src/extraction/tree-sitter.ts:1623–1629  ·  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

1621
1622 /** Open a class-like node's body as a scope for visitInCppBraceScope. */
1623 private openCppClassScope(node: Node, body: SyntaxNode | null | undefined): void {
1624 if (!body) return;
1625 const close = this.cppBraceScopes?.closeOf(body.startIndex);
1626 if (close !== undefined && this.cppClassScopes.add(body.startIndex, close, node.id)) {
1627 this.cppClassScopeIds.add(node.id);
1628 }
1629 }
1630
1631 private dispatchNode(node: SyntaxNode): void {
1632 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