MCPcopy Index your code
hub / github.com/nodejs/node / enter_frame

Method enter_frame

tools/inspector_protocol/jinja2/compiler.py:475–490  ·  view source on GitHub ↗
(self, frame)

Source from the content-addressed store, hash-verified

473 (mapping[name], dependency, name))
474
475 def enter_frame(self, frame):
476 undefs = []
477 for target, (action, param) in iteritems(frame.symbols.loads):
478 if action == VAR_LOAD_PARAMETER:
479 pass
480 elif action == VAR_LOAD_RESOLVE:
481 self.writeline('%s = %s(%r)' %
482 (target, self.get_resolve_func(), param))
483 elif action == VAR_LOAD_ALIAS:
484 self.writeline('%s = %s' % (target, param))
485 elif action == VAR_LOAD_UNDEFINED:
486 undefs.append(target)
487 else:
488 raise NotImplementedError('unknown load instruction')
489 if undefs:
490 self.writeline('%s = missing' % ' = '.join(undefs))
491
492 def leave_frame(self, frame, with_python_scope=False):
493 if not with_python_scope:

Callers 8

macro_bodyMethod · 0.95
visit_TemplateMethod · 0.95
visit_ForMethod · 0.95
visit_FilterBlockMethod · 0.95
visit_WithMethod · 0.95
visit_AssignBlockMethod · 0.95
visit_ScopeMethod · 0.95
visit_OverlayScopeMethod · 0.95

Calls 4

writelineMethod · 0.95
get_resolve_funcMethod · 0.95
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected