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

Method soft

tools/inspector_protocol/jinja2/compiler.py:178–187  ·  view source on GitHub ↗

Return a soft frame. A soft frame may not be modified as standalone thing as it shares the resources with the frame it was created of, but it's not a rootlevel frame any longer. This is only used to implement if-statements.

(self)

Source from the content-addressed store, hash-verified

176 return Frame(self.eval_ctx, self)
177
178 def soft(self):
179 """Return a soft frame. A soft frame may not be modified as
180 standalone thing as it shares the resources with the frame it
181 was created of, but it's not a rootlevel frame any longer.
182
183 This is only used to implement if-statements.
184 """
185 rv = self.copy()
186 rv.rootlevel = False
187 return rv
188
189 __copy__ = copy
190

Callers 1

visit_IfMethod · 0.45

Calls 1

copyMethod · 0.95

Tested by

no test coverage detected