* Whether the item a name heuristic found is one the reference can name: * `Context<'_>` under `use std::task::{Context, Poll}` is std's, not tokio's * `runtime::context::Context` (642 of them).
(id: string, ref: UnresolvedRef, context: ResolutionContext)
| 17 | * `runtime::context::Context` (642 of them). |
| 18 | */ |
| 19 | function inRustScope(id: string, ref: UnresolvedRef, context: ResolutionContext): boolean { |
| 20 | const node = context.getNodeById?.(id); |
| 21 | return !node || isRustNameInScope(node, ref, context); |
| 22 | } |
| 23 | |
| 24 | export const rustResolver: FrameworkResolver = { |
| 25 | name: 'rust', |