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

Method parse

source/python.js:21812–21820  ·  view source on GitHub ↗
(filename, buffer, debug)

Source from the content-addressed store, hash-verified

21810 }
21811
21812 parse(filename, buffer, debug) {
21813 const ast = this.ast;
21814 const source = this._utf8Decoder.decode(buffer);
21815 const program = ast.parse(source, filename, null, debug);
21816 if (!program) {
21817 throw new python.Error(`Module '${filename}' parse error.`);
21818 }
21819 return program;
21820 }
21821
21822 import(name, current, level) {
21823 if (level) {

Callers 11

constructorMethod · 0.45
constructorMethod · 0.45
parseTypeMethod · 0.45
parseMethod · 0.45
parseExpMethod · 0.45
parseSourceIfNeededMethod · 0.45
LEGACY_import_methodsMethod · 0.45
LEGACY_deserializeMethod · 0.45
deserialize_metadataMethod · 0.45
execMethod · 0.45
readMethod · 0.45

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected