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

Function addId

packages/compiler-core/src/transform.ts:319–325  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

317 }
318
319 function addId(id: string) {
320 const { identifiers } = context
321 if (identifiers[id] === undefined) {
322 identifiers[id] = 0
323 }
324 identifiers[id]!++
325 }
326
327 function removeId(id: string) {
328 context.identifiers[id]!--

Callers 1

addIdentifiersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected