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

Function modifierTextOf

src/extraction/languages/java.ts:74–77  ·  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

72
73/** Text of a declaration's `modifiers` child (keyword modifiers are anonymous, so match on text). */
74function modifierTextOf(node: SyntaxNode): string {
75 const modifiers = node.namedChildren.find((c: SyntaxNode) => c.type === 'modifiers');
76 return modifiers ? modifiers.text : '';
77}
78
79function capitalizeJava(name: string): string {
80 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