MCPcopy Create free account
hub / github.com/dethcrypto/dethcode / Limit

Class Limit

packages/ethereum-viewer/src/fs/textSearchProvider.ts:133–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133class Limit {
134 private _current: number;
135 constructor(public readonly max: number) {
136 this._current = 0;
137 }
138
139 isHit() {
140 return this._current >= this.max;
141 }
142
143 increase(value: number) {
144 this._current += value;
145 }
146
147 public current() {
148 return this._current;
149 }
150}
151
152function hasIndex(
153 hit: RegExpMatchArray

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected