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