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

Method match

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

Source from the content-addressed store, hash-verified

1781 return this._token;
1782 }
1783 match(type, value) {
1784 const token = this.peek();
1785 if (token.type === type && (!value || token.value === value)) {
1786 return true;
1787 }
1788 return false;
1789 }
1790 accept(type, value) {
1791 const token = this.peek();
1792 if (token.type === type && (!value || token.value === value)) {

Callers 11

parseMethod · 0.45
_parseSuiteMethod · 0.45
_parseStatementMethod · 0.45
_parseExpressionMethod · 0.45
_parseGeneratorsMethod · 0.45
_parseListMethod · 0.45
_parseSliceMethod · 0.45
_eatMethod · 0.45
constructorMethod · 0.45
create_nameMethod · 0.45
deserialize_nodeMethod · 0.45

Calls 1

peekMethod · 0.45

Tested by

no test coverage detected