(
_root: string,
filePath: string,
line: number,
_opts?: ProviderQueryOptions,
)
| 125 | }; |
| 126 | }, |
| 127 | async resolveSymbolAt( |
| 128 | _root: string, |
| 129 | filePath: string, |
| 130 | line: number, |
| 131 | _opts?: ProviderQueryOptions, |
| 132 | ): Promise<ResolveResult> { |
| 133 | resolveCalls.push(`${filePath}:${line}`); |
| 134 | if (unresolvable.has(filePath)) { |
| 135 | return { kind: 'file-not-indexed', filePath }; |
| 136 | } |
| 137 | const name = Object.keys(DECLARED).find( |
| 138 | (key) => DECLARED[key].file === filePath && DECLARED[key].line === line, |
| 139 | ); |
| 140 | if (name === undefined) { |
| 141 | return { kind: 'no-symbol-at-line', filePath }; |
| 142 | } |
| 143 | return { kind: 'ok', symbol: symbolNamed(name), enclosing: [] }; |
| 144 | }, |
| 145 | }; |
| 146 | } |
| 147 |
nothing calls this directly
no test coverage detected