(
name: string,
anchor: SyntaxNode,
signature: string,
fromAnnotation: string,
extra: { returnType?: string; isStatic?: boolean } = {}
)
| 164 | const className = classRec?.name ?? getNodeText(classNameNode, ctx.source).trim(); |
| 165 | |
| 166 | const emitMethod = ( |
| 167 | name: string, |
| 168 | anchor: SyntaxNode, |
| 169 | signature: string, |
| 170 | fromAnnotation: string, |
| 171 | extra: { returnType?: string; isStatic?: boolean } = {} |
| 172 | ): void => { |
| 173 | if (!name || takenMethods.has(name)) return; |
| 174 | takenMethods.add(name); |
| 175 | ctx.createNode('method', name, anchor, { |
| 176 | visibility: 'public', |
| 177 | signature, |
| 178 | docstring: `Lombok-generated (${fromAnnotation})`, |
| 179 | decorators: ['lombok'], |
| 180 | isStatic: extra.isStatic, |
| 181 | returnType: extra.returnType, |
| 182 | }); |
| 183 | }; |
| 184 | |
| 185 | // Per-field getters/setters. |
| 186 | for (const fd of fields) { |
no test coverage detected