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

Method findAttributeSlot

source/python.js:10564–10571  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

10562 return slot_idx;
10563 }
10564 findAttributeSlot(name) {
10565 for (let pos = 0; pos < this._attributes.length; pos++) {
10566 if (name === this._attributes[pos].name) {
10567 return pos;
10568 }
10569 }
10570 return null;
10571 }
10572 findAttribute(name) {
10573 const slot = this.findAttributeSlot(name);
10574 if (slot !== null) {

Callers 3

addOrCheckAttributeMethod · 0.80
findAttributeMethod · 0.80
getAttributeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected