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

Method read

source/python.js:1648–1655  ·  view source on GitHub ↗
(required)

Source from the content-addressed store, hash-verified

1646 let is_vararg = false; // '*'
1647 let is_kwarg = false; // '**'
1648 const read = (required) => {
1649 const name = this._parseName(required);
1650 if (name) {
1651 const annotation = terminal !== ':' && this._tokenizer.accept(':') ? this._parseType() : null;
1652 return new ast.arg(name.id, annotation, null);
1653 }
1654 return null;
1655 };
1656 while (!this._tokenizer.accept(terminal)) {
1657 this._tokenizer.accept('\n');
1658 if (this._tokenizer.accept('/')) {

Callers

nothing calls this directly

Calls 9

_parseNameMethod · 0.80
acceptMethod · 0.45
_parseTypeMethod · 0.45
_tokenizeMethod · 0.45
_isNewlineMethod · 0.45
_getMethod · 0.45
_newLineMethod · 0.45
streamMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected