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

Function isUnnamedMemberType

src/extraction/languages/c-cpp.ts:80–82  ·  view source on GitHub ↗
(specifier: SyntaxNode)

Source from the content-addressed store, hash-verified

78
79/** Is this class-like specifier an unnamed member of another (`struct S { union { … } u; };`)? */
80export function isUnnamedMemberType(specifier: SyntaxNode): boolean {
81 return !getChildByField(specifier, 'name') && specifier.parent?.type === 'field_declaration';
82}
83
84/** A type name a declaration writes: the name as references carry it, and the node it is read at. */
85export interface CTypeName {

Callers 1

Calls 1

getChildByFieldFunction · 0.90

Tested by

no test coverage detected