MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / count_modifier_annotations

Function count_modifier_annotations

internal/cbm/extract_defs.c:1862–1872  ·  view source on GitHub ↗

Extract decorator names from preceding decorator/annotation nodes Count annotations inside a Java/Kotlin/C# "modifiers" node.

Source from the content-addressed store, hash-verified

1860// Extract decorator names from preceding decorator/annotation nodes
1861// Count annotations inside a Java/Kotlin/C# "modifiers" node.
1862static int count_modifier_annotations(TSNode modifiers, const CBMLangSpec *spec) {
1863 int count = 0;
1864 uint32_t mc = ts_node_child_count(modifiers);
1865 for (uint32_t mi = 0; mi < mc; mi++) {
1866 TSNode mchild = ts_node_child(modifiers, mi);
1867 if (cbm_kind_in_set(mchild, spec->decorator_node_types)) {
1868 count++;
1869 }
1870 }
1871 return count;
1872}
1873
1874// Find every wrapper child that holds annotations/attributes for languages
1875// where they are nested under an intermediate node rather than being a

Callers 1

extract_decoratorsFunction · 0.85

Calls 1

cbm_kind_in_setFunction · 0.85

Tested by

no test coverage detected