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

Function addIdentifiers

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

Source from the content-addressed store, hash-verified

266 },
267 onNodeRemoved: NOOP,
268 addIdentifiers(exp) {
269 // identifier tracking only happens in non-browser builds.
270 if (!__BROWSER__) {
271 if (isString(exp)) {
272 addId(exp)
273 } else if (exp.identifiers) {
274 exp.identifiers.forEach(addId)
275 } else if (exp.type === NodeTypes.SIMPLE_EXPRESSION) {
276 addId(exp.content)
277 }
278 }
279 },
280 removeIdentifiers(exp) {
281 if (!__BROWSER__) {
282 if (isString(exp)) {

Callers 2

trackVForSlotScopesFunction · 0.85
processForFunction · 0.85

Calls 3

isStringFunction · 0.90
addIdFunction · 0.85
forEachMethod · 0.80

Tested by

no test coverage detected