MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / resolveContextVariable

Function resolveContextVariable

packages/extension/utils/variable-output.ts:267–280  ·  view source on GitHub ↗
(
  id: string,
  context: VariableProjectionContext,
  readers: FigmaLookupReaders
)

Source from the content-addressed store, hash-verified

265}
266
267function 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}

Callers 1

applyVariableToPropsFunction · 0.85

Calls 2

resolveVariableByIdFunction · 0.90
getMethod · 0.80

Tested by

no test coverage detected