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

Method _define_ref

deps/v8/third_party/jinja2/idtracking.py:50–57  ·  view source on GitHub ↗
(
        self, name: str, load: t.Optional[t.Tuple[str, t.Optional[str]]] = None
    )

Source from the content-addressed store, hash-verified

48 visitor.visit(node, **kwargs)
49
50 def _define_ref(
51 self, name: str, load: t.Optional[t.Tuple[str, t.Optional[str]]] = None
52 ) -> str:
53 ident = f"l_{self.level}_{name}"
54 self.refs[name] = ident
55 if load is not None:
56 self.loads[ident] = load
57 return ident
58
59 def find_load(self, target: str) -> t.Optional[t.Any]:
60 if target in self.loads:

Callers 3

storeMethod · 0.95
declare_parameterMethod · 0.95
loadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected