(ref: UnresolvedRef, context: ResolutionContext)
| 70 | }, |
| 71 | |
| 72 | resolve(ref: UnresolvedRef, context: ResolutionContext): ResolvedRef | null { |
| 73 | if (!ref.referenceName.startsWith(TRANSID_REF_PREFIX)) return null; |
| 74 | const tx = ref.referenceName.slice(TRANSID_REF_PREFIX.length).toUpperCase(); |
| 75 | |
| 76 | const source = context.getNodesByKind('variable'); |
| 77 | let entry = transidIndexes.get(context); |
| 78 | if (!entry || entry.source !== source) { |
| 79 | entry = { source, index: buildIndex(context) }; |
| 80 | transidIndexes.set(context, entry); |
| 81 | } |
| 82 | |
| 83 | const targetNodeId = entry.index.get(tx); |
| 84 | if (!targetNodeId) return null; |
| 85 | return { |
| 86 | original: ref, |
| 87 | targetNodeId, |
| 88 | confidence: 0.85, |
| 89 | resolvedBy: 'framework', |
| 90 | }; |
| 91 | }, |
| 92 | }; |
nothing calls this directly
no test coverage detected