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

Function hasModifier

src/extraction/languages/vbnet.ts:17–22  ·  view source on GitHub ↗

Case-insensitive member-modifier scan (VB keywords are case-insensitive).

(node: SyntaxNode, re: RegExp)

Source from the content-addressed store, hash-verified

15
16/** Case-insensitive member-modifier scan (VB keywords are case-insensitive). */
17function hasModifier(node: SyntaxNode, re: RegExp): boolean {
18 for (const child of childrenOf(node)) {
19 if (child?.type === 'member_modifier' && re.test(child.text)) return true;
20 }
21 return false;
22}
23
24/**
25 * A VB.NET method's declared return type (`Function Foo(...) As Bar`),

Callers 1

vbnet.tsFile · 0.85

Calls 1

childrenOfFunction · 0.90

Tested by

no test coverage detected