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

Method bind

tools/inspector_protocol/jinja2/ext.py:75–80  ·  view source on GitHub ↗

Create a copy of this extension bound to another environment.

(self, environment)

Source from the content-addressed store, hash-verified

73 self.environment = environment
74
75 def bind(self, environment):
76 """Create a copy of this extension bound to another environment."""
77 rv = object.__new__(self.__class__)
78 rv.__dict__.update(self.__dict__)
79 rv.environment = environment
80 return rv
81
82 def preprocess(self, source, name, filename=None):
83 """This method is called before the actual lexing and can be used to

Callers 15

overlayMethod · 0.45
constructorMethod · 0.45
hasMultiLocalhostFunction · 0.45
hijackstdio.jsFile · 0.45
checkSupportReusePortFunction · 0.45
spawnChildProcessFunction · 0.45
test-tcp-wrap.jsFile · 0.45

Calls 2

updateMethod · 0.65
__new__Method · 0.45

Tested by 1

testFunction · 0.36