MCPcopy Create free account
hub / github.com/nodejs/node / visit_Name

Method visit_Name

deps/v8/third_party/jinja2/idtracking.py:238–247  ·  view source on GitHub ↗

All assignments to names go through this function.

(
        self, node: nodes.Name, store_as_param: bool = False, **kwargs: t.Any
    )

Source from the content-addressed store, hash-verified

236 self.symbols = symbols
237
238 def visit_Name(
239 self, node: nodes.Name, store_as_param: bool = False, **kwargs: t.Any
240 ) -> None:
241 """All assignments to names go through this function."""
242 if store_as_param or node.ctx == "param":
243 self.symbols.declare_parameter(node.name)
244 elif node.ctx == "store":
245 self.symbols.store(node.name)
246 elif node.ctx == "load":
247 self.symbols.load(node.name)
248
249 def visit_NSRef(self, node: nodes.NSRef, **kwargs: t.Any) -> None:
250 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