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

Function emitMethod

src/extraction/languages/java.ts:166–183  ·  view source on GitHub ↗
(
    name: string,
    anchor: SyntaxNode,
    signature: string,
    fromAnnotation: string,
    extra: { returnType?: string; isStatic?: boolean } = {}
  )

Source from the content-addressed store, hash-verified

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) {

Callers 1

synthesizeLombokMembersFunction · 0.85

Calls 2

hasMethod · 0.80
createNodeMethod · 0.65

Tested by

no test coverage detected