(type: Node)
| 4263 | // builds with `new`; a Java "call" of a type's name is a record pattern |
| 4264 | // (`case Result.Error(String m)`) or a static-import's method, kept on the type. |
| 4265 | const built = (type: Node): Node => |
| 4266 | (ref.language === 'kotlin' |
| 4267 | ? context.getNodesByQualifiedName(`${type.qualifiedName}::${type.name}`) |
| 4268 | .find((n) => n.kind === 'method' && n.filePath === type.filePath) |
| 4269 | : undefined) ?? type; |
| 4270 | let current = owner; |
| 4271 | for (let i = 0; i < steps.length; i++) { |
| 4272 | const segment = steps[i]!; |
no test coverage detected