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

Method visit_Name

tools/inspector_protocol/jinja2/idtracking.py:209–216  ·  view source on GitHub ↗

All assignments to names go through this function.

(self, node, store_as_param=False, **kwargs)

Source from the content-addressed store, hash-verified

207 self.symbols = symbols
208
209 def visit_Name(self, node, store_as_param=False, **kwargs):
210 """All assignments to names go through this function."""
211 if store_as_param or node.ctx == 'param':
212 self.symbols.declare_parameter(node.name)
213 elif node.ctx == 'store':
214 self.symbols.store(node.name)
215 elif node.ctx == 'load':
216 self.symbols.load(node.name)
217
218 def visit_NSRef(self, node, **kwargs):
219 self.symbols.load(node.name)

Callers

nothing calls this directly

Calls 3

declare_parameterMethod · 0.45
storeMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected