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

Method _eat

source/python.js:1711–1718  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

1709 return new ast.arguments(posonlyargs, args, vararg, kwonlyargs, kw_defaults, kwarg, defaults);
1710 }
1711 _eat(type, value) {
1712 if (this._tokenizer.match(type, value)) {
1713 const position = this._position();
1714 this._tokenizer.expect(type, value);
1715 return position;
1716 }
1717 return null;
1718 }
1719 _mark(node, position) {
1720 node.filename = position.filename;
1721 node.lineno = position.lineno;

Callers 3

_parseStatementMethod · 0.45
_parseExpressionMethod · 0.45
_parseGeneratorsMethod · 0.45

Calls 3

_positionMethod · 0.80
matchMethod · 0.45
expectMethod · 0.45

Tested by

no test coverage detected