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

Method _parseLiteral

source/python.js:1601–1608  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1599 return list.join('.');
1600 }
1601 _parseLiteral() {
1602 const token = this._tokenizer.peek();
1603 if (token.type === 'str' || token.type === 'bool' || token.type === 'int' || token.type === 'float' || token.type === 'complex') {
1604 this._tokenizer.read();
1605 return token;
1606 }
1607 return null;
1608 }
1609 _parseTypeArguments() {
1610 const list = [];
1611 this._tokenizer.expect('[');

Callers 1

_parseExpressionMethod · 0.45

Calls 2

peekMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected