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

Method nextIf

source/python.js:11489–11495  ·  view source on GitHub ↗
(kind)

Source from the content-addressed store, hash-verified

11487 return cur;
11488 }
11489 nextIf(kind) {
11490 if (this.cur().kind !== kind) {
11491 return false;
11492 }
11493 this.next();
11494 return true;
11495 }
11496 expect(kind) {
11497 if (this.cur().kind !== kind) {
11498 throw new python.Error(`Unexpected '${this.cur().kind}' instead of '${kind}'.`);

Callers 7

parseNameMethod · 0.80
parseArgumentMethod · 0.80
parseSingleConstantMethod · 0.80
parseConstantListMethod · 0.80
_parseMethod · 0.80
parseFakeAndRealTypeMethod · 0.80
parseAliasAnnotationMethod · 0.80

Calls 2

curMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected