MCPcopy
hub / github.com/vuejs/devtools-v6 / add

Method add

packages/app-frontend/src/util/queue.ts:6–21  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

4 private lastItem: QueueItem<T> | null = null
5
6 add(value: T) {
7 if (!this.existsMap.has(value)) {
8 this.existsMap.set(value, true)
9 const item = {
10 current: value,
11 next: null,
12 }
13 if (!this.firstItem) {
14 this.firstItem = item
15 }
16 if (this.lastItem) {
17 this.lastItem.next = item
18 }
19 this.lastItem = item
20 }
21 }
22
23 shift(): T | null {
24 if (this.firstItem) {

Callers 14

devtools.jsFile · 0.80
connectFunction · 0.80
handleCopyFunction · 0.80
getComponentInstanceFunction · 0.80
showElementFunction · 0.80
getAppRecordIdFunction · 0.80
requestComponentTreeFunction · 0.80
getGroupsAroundPositionFunction · 0.80
updateScrollFunction · 0.80
reviveSetFunction · 0.80
initEnvFunction · 0.80

Calls 2

setMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected