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

Method bind

deps/v8/third_party/jinja2/ext.py:91–96  ·  view source on GitHub ↗

Create a copy of this extension bound to another environment.

(self, environment: Environment)

Source from the content-addressed store, hash-verified

89 self.environment = environment
90
91 def bind(self, environment: Environment) -> "Extension":
92 """Create a copy of this extension bound to another environment."""
93 rv = object.__new__(self.__class__)
94 rv.__dict__.update(self.__dict__)
95 rv.environment = environment
96 return rv
97
98 def preprocess(
99 self, source: str, name: t.Optional[str], filename: t.Optional[str] = None

Callers 15

sourcemap.mjsFile · 0.45
setDispatchTableMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
V8CustomElementClass · 0.45
constructorMethod · 0.45
readFileMethod · 0.45
constructorMethod · 0.45
_addEventListenersMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45

Calls 2

updateMethod · 0.65
__new__Method · 0.45

Tested by 2

testFunction · 0.36
testFunction · 0.36