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

Function isClassLikeDefinition

src/extraction/languages/c-cpp.ts:193–195  ·  view source on GitHub ↗
(node: SyntaxNode)

Source from the content-addressed store, hash-verified

191 * opposed to naming one (`struct Foo *p`, the forward declaration `class Foo;`).
192 */
193export function isClassLikeDefinition(node: SyntaxNode): boolean {
194 return CLASS_LIKE_SPECIFIERS.has(node.type) && getChildByField(node, 'body') !== null;
195}
196
197/**
198 * The `declaration` a class, struct, union or enum is defined in the type of —

Callers 2

dispatchNodeMethod · 0.90
definingDeclarationFunction · 0.85

Calls 2

getChildByFieldFunction · 0.90
hasMethod · 0.80

Tested by

no test coverage detected