MCPcopy Index your code
hub / github.com/lutzroeder/netron / record_function

Method record_function

source/python.js:18035–18039  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

18033 const functions = [];
18034 const function_table = new Map();
18035 const record_function = (fn) => {
18036 function_table.set(fn.name(), fn);
18037 functions.push(fn);
18038 this.register_function(fn);
18039 };
18040 for (let i = 0; i < properties.length; i++) {
18041 const property_fns = this.define_property(prefix, properties[i], propResolvers[i], self, function_table, shouldMangle);
18042 const getter_fn = property_fns.getGetter();

Callers

nothing calls this directly

Calls 4

register_functionMethod · 0.80
setMethod · 0.45
nameMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected