MCPcopy
hub / github.com/lutzroeder/netron / toInt

Method toInt

source/python.js:13353–13360  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13351 return this.tag === 'Int';
13352 }
13353 toInt() {
13354 if (this.isInt()) {
13355 return this.value;
13356 } else if (this.isSymInt()) {
13357 return this.toSymInt().guard_int(/* __FILE__, __LINE__ */);
13358 }
13359 throw new python.Error('Expected int.');
13360 }
13361 isString() {
13362 return this.tag === 'String';
13363 }

Callers 6

equalsMethod · 0.80
constructorMethod · 0.80
emitTupleIndexMethod · 0.80
getSliceIndMethod · 0.80
emitTupleSliceMethod · 0.80
unpackMethod · 0.80

Calls 1

isIntMethod · 0.80

Tested by

no test coverage detected