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

Method exec

source/python.js:21784–21791  ·  view source on GitHub ↗
(code , context)

Source from the content-addressed store, hash-verified

21782 }
21783
21784 exec(code , context) {
21785 const ast = this.ast;
21786 const program = ast.parse(code, '', null, null);
21787 if (!program) {
21788 throw new python.Error("Module '?' parse error.");
21789 }
21790 this.block(program.body, context);
21791 }
21792
21793 debug(/* file */) {
21794 }

Callers 15

_readStringMethod · 0.80
basenameMethod · 0.80
_tokenizeMethod · 0.80
_tokenizeInlineMethod · 0.80
acceptMethod · 0.80
openMethod · 0.80
constructorMethod · 0.80
_validateNamespaceMethod · 0.80
_systemLiteralMethod · 0.80
parseExponentMantissaMethod · 0.80
readAttributeMethod · 0.80

Calls 2

parseMethod · 0.45
blockMethod · 0.45

Tested by

no test coverage detected