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

Function isClassLikeDefinition

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

Source from the content-addressed store, hash-verified

194 * opposed to naming one (`struct Foo *p`, the forward declaration `class Foo;`).
195 */
196export function isClassLikeDefinition(node: SyntaxNode): boolean {
197 return CLASS_LIKE_SPECIFIERS.has(node.type) && getChildByField(node, 'body') !== null;
198}
199
200/**
201 * 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