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

Function modifierTextOf

src/extraction/languages/java.ts:75–78  ·  view source on GitHub ↗

Text of a declaration's `modifiers` child (keyword modifiers are anonymous, so match on text).

(node: SyntaxNode)

Source from the content-addressed store, hash-verified

73
74/** Text of a declaration's `modifiers` child (keyword modifiers are anonymous, so match on text). */
75function modifierTextOf(node: SyntaxNode): string {
76 const modifiers = node.namedChildren.find((c: SyntaxNode) => c.type === 'modifiers');
77 return modifiers ? modifiers.text : '';
78}
79
80function capitalizeJava(name: string): string {
81 return name ? name.charAt(0).toUpperCase() + name.slice(1) : name;

Callers 1

synthesizeLombokMembersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected