MCPcopy
hub / github.com/witheve/Eve / dec

Method dec

src/runtime/changes.ts:93–111  ·  view source on GitHub ↗
(scope,e,a,v,node,key?)

Source from the content-addressed store, hash-verified

91 return key;
92 }
93 dec(scope,e,a,v,node,key?) {
94 key = key || `${scope}|${e}|${a}|${v}|${node}`;
95 let keyPos = this.positions[key];
96 let info = this.info;
97 if(keyPos === undefined) {
98 let pos = this.pos;
99 this.positions[key] = pos;
100 info[pos] = -1;
101 info[pos + 1] = e;
102 info[pos + 2] = a;
103 info[pos + 3] = v;
104 info[pos + 4] = node;
105 info[pos + 5] = scope;
106 this.pos += 6;
107 } else {
108 info[keyPos] -= 1;
109 }
110 return key;
111 }
112}
113
114//---------------------------------------------------------------------

Callers 1

commitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected