MCPcopy Create free account
hub / github.com/antlr/antlr4 / updateHashCode

Method updateHashCode

runtime/JavaScript/src/antlr4/atn/ATNConfigSet.js:183–192  ·  view source on GitHub ↗
(hash)

Source from the content-addressed store, hash-verified

181 }
182
183 updateHashCode(hash) {
184 if (this.readOnly) {
185 if (this.cachedHashCode === -1) {
186 this.cachedHashCode = this.hashCode();
187 }
188 hash.update(this.cachedHashCode);
189 } else {
190 hash.update(this.hashCode());
191 }
192 }
193
194 isEmpty() {
195 return this.configs.length === 0;

Callers

nothing calls this directly

Calls 2

hashCodeMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected