The qualified name of the routine a call of `name` is made from, or the file's name.
(source: string, name: string)
| 26 | } |
| 27 | /** The qualified name of the routine a call of `name` is made from, or the file's name. */ |
| 28 | function callerOf(source: string, name: string): string | undefined { |
| 29 | const result = extract(source); |
| 30 | const ref = result.unresolvedReferences.find((r) => r.referenceName === name); |
| 31 | return result.nodes.find((n) => n.id === ref?.fromNodeId)?.qualifiedName; |
| 32 | } |
| 33 | |
| 34 | describe('Pascal implementations find their declarations (#3453)', () => { |
| 35 | it('gives the body to the first of two declarations that {$IFDEF} branches write alike', () => { |
no test coverage detected