MCPcopy Index your code
hub / github.com/nodejs/node / addFunktion

Method addFunktion

deps/v8/tools/parse-processor.mjs:212–220  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

210 }
211
212 addFunktion(fn) {
213 if (this.finalized) throw 'script is finalized!';
214 if (fn.start === undefined) throw "Funktion has no start position";
215 if (this.funktions[fn.start] !== undefined) {
216 fn.print();
217 throw "adding same function twice to script";
218 }
219 this.funktions[fn.start] = fn;
220 }
221
222 finalize() {
223 this.finalized = true;

Callers 2

addMissingFunktionsMethod · 0.95
constructorMethod · 0.80

Calls 1

printMethod · 0.45

Tested by

no test coverage detected