MCPcopy
hub / github.com/vuejs/core / removeIdentifiers

Function removeIdentifiers

packages/compiler-core/src/transform.ts:280–290  ·  view source on GitHub ↗
(exp)

Source from the content-addressed store, hash-verified

278 }
279 },
280 removeIdentifiers(exp) {
281 if (!__BROWSER__) {
282 if (isString(exp)) {
283 removeId(exp)
284 } else if (exp.identifiers) {
285 exp.identifiers.forEach(removeId)
286 } else if (exp.type === NodeTypes.SIMPLE_EXPRESSION) {
287 removeId(exp.content)
288 }
289 }
290 },
291 hoist(exp) {
292 if (isString(exp)) exp = createSimpleExpression(exp)
293 context.hoists.push(exp)

Callers 2

trackVForSlotScopesFunction · 0.85
processForFunction · 0.85

Calls 3

isStringFunction · 0.90
removeIdFunction · 0.85
forEachMethod · 0.80

Tested by

no test coverage detected