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

Function buildReplacementMap

packages/extension/utils/variable-output.ts:127–140  ·  view source on GitHub ↗
(
  context: VariableProjectionContext,
  format: VariableFormatter
)

Source from the content-addressed store, hash-verified

125}
126
127function buildReplacementMap(
128 context: VariableProjectionContext,
129 format: VariableFormatter
130): Map<string, string> {
131 const map = new Map<string, string>()
132
133 for (const variable of context.variablesById.values()) {
134 const value = format(variable)
135 if (!value) continue
136 map.set(getVariableCssName(variable), value)
137 }
138
139 return map
140}
141
142function rewriteKnownCodeSyntaxValues(
143 style: Record<string, string>,

Callers 1

applyVariableStyleFunction · 0.85

Calls 1

getVariableCssNameFunction · 0.90

Tested by

no test coverage detected