(definition)
| 234 | return (await callSitesForFile(file.abs, file.language, [key])).get(siteKey(key)) ?? null; |
| 235 | }, |
| 236 | async decorators(definition) { |
| 237 | // Not counted: one lookup per step, on a tree the walk has parsed anyway. |
| 238 | if (!definition.startLine || !supportsBranchGuards(definition.language)) return null; |
| 239 | const file = resolve(definition); |
| 240 | if (!file) return null; |
| 241 | return (await decoratorsForFile(file.abs, file.language, [definition.startLine])).get(definition.startLine) ?? null; |
| 242 | }, |
| 243 | async memberTypes(definition) { |
| 244 | if (!definition.startLine || !supportsBranchGuards(definition.language)) return new Map(); |
| 245 | const file = resolve(definition); |
nothing calls this directly
no test coverage detected