(node: SyntaxNode)
| 40 | * pointer, and the declaration stays a variable. |
| 41 | */ |
| 42 | export 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`). */ |
| 47 | const CLASS_LIKE_SPECIFIERS = new Set(['class_specifier', 'struct_specifier', 'union_specifier', 'enum_specifier']); |
nothing calls this directly
no outgoing calls
no test coverage detected