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

Method block

source/python.js:22050–22060  ·  view source on GitHub ↗
(statements, context)

Source from the content-addressed store, hash-verified

22048 }
22049
22050 block(statements, context) {
22051 statements = Array.prototype.slice.call(statements);
22052 while (statements.length > 0) {
22053 const stmt = statements.shift();
22054 const value = this.statement(stmt, context);
22055 if (value !== undefined) {
22056 return value;
22057 }
22058 }
22059 return undefined;
22060 }
22061
22062 statement(stmt, context) {
22063 const ast = this.ast;

Callers 14

constructorMethod · 0.45
runMethod · 0.45
constructorMethod · 0.45
cloneFromMethod · 0.45
setSugaredVarMethod · 0.45
setAttrMethod · 0.45
emitStatementsMethod · 0.45
emitReturnMethod · 0.45
transformReturnStmtsMethod · 0.45
execMethod · 0.45
importMethod · 0.45

Calls 2

statementMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected