( id: string, context: VariableProjectionContext, readers: FigmaLookupReaders )
| 265 | } |
| 266 | |
| 267 | function resolveContextVariable( |
| 268 | id: string, |
| 269 | context: VariableProjectionContext, |
| 270 | readers: FigmaLookupReaders |
| 271 | ): Variable | null { |
| 272 | const cached = context.variablesById.get(id) |
| 273 | if (cached) return cached |
| 274 | |
| 275 | const variable = resolveVariableById(id, readers) |
| 276 | if (variable) { |
| 277 | context.variablesById.set(id, variable) |
| 278 | } |
| 279 | return variable |
| 280 | } |
no test coverage detected