(fromFile: string, declFile: string, name: string, context: ResolutionContext)
| 745 | * library of `fromFile` cannot be established. |
| 746 | */ |
| 747 | export function dartLibrarySees(fromFile: string, declFile: string, name: string, context: ResolutionContext): boolean { |
| 748 | if (fromFile === declFile) return true; |
| 749 | const memo = memoFor(context); |
| 750 | const scope = scopeOf(fromFile, context, memo); |
| 751 | if (!scope || scope.own.has(declFile)) return true; |
| 752 | if (name.startsWith('_')) return false; |
| 753 | return (importedFilters(scope, '', declFile, context, memo) ?? []).some((f) => lets(f, name)); |
| 754 | } |
| 755 | |
| 756 | /** |
| 757 | * Whether `prefix.name` in `fromFile` can mean `name` declared at the top |
nothing calls this directly
no test coverage detected