Type references whose declaration lies outside the focused symbol.
(ir: SemanticIR)
| 752 | |
| 753 | /** Type references whose declaration lies outside the focused symbol. */ |
| 754 | function sharedNames(ir: SemanticIR): string[] { |
| 755 | const start = ir.symbol.range.start.line + 1; |
| 756 | const end = ir.symbol.range.end.line; |
| 757 | const names = (ir.typeRefs?.value ?? []) |
| 758 | .filter((entry) => entry.file !== ir.symbol.uri |
| 759 | || entry.line === undefined |
| 760 | || entry.line < start |
| 761 | || entry.line > end) |
| 762 | .map((entry) => entry.name) |
| 763 | .filter((name) => name.length > 0); |
| 764 | return [...new Set(names)]; |
| 765 | } |
| 766 | |
| 767 | /** Facts whose impact is useful before any level-specific shape begins. */ |
| 768 | function contextLines(ir: SemanticIR, facets: ReadonlySet<Facet>): string[] { |
no outgoing calls
no test coverage detected