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

Function isConstDeclaration

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

Source from the content-addressed store, hash-verified

40 * pointer, and the declaration stays a variable.
41 */
42export function isConstDeclaration(node: SyntaxNode): boolean {
43 return node.namedChildren.some((c: SyntaxNode) => c.type === 'type_qualifier' && c.text === 'const');
44}
45
46/** C and C++ specifiers that define a class-like type, or an enum, when they carry a body (C has no `class_specifier`). */
47const CLASS_LIKE_SPECIFIERS = new Set(['class_specifier', 'struct_specifier', 'union_specifier', 'enum_specifier']);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected