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

Method extend

tools/inspector_protocol/jinja2/environment.py:347–354  ·  view source on GitHub ↗

Add the items to the instance of the environment if they do not exist yet. This is used by :ref:`extensions ` to register callbacks and configuration values without breaking inheritance.

(self, **attributes)

Source from the content-addressed store, hash-verified

345 self.extensions.update(load_extensions(self, [extension]))
346
347 def extend(self, **attributes):
348 """Add the items to the instance of the environment if they do not exist
349 yet. This is used by :ref:`extensions <writing-extensions>` to register
350 callbacks and configuration values without breaking inheritance.
351 """
352 for key, value in iteritems(attributes):
353 if not hasattr(self, key):
354 setattr(self, key, value)
355
356 def overlay(self, block_start_string=missing, block_end_string=missing,
357 variable_start_string=missing, variable_end_string=missing,

Callers 15

run_gypFunction · 0.45
AddFiltersMethod · 0.45
CheckEmptyBlockBodyFunction · 0.45
cpplint.pyFile · 0.45
__init__Method · 0.45
_fail_ut_eofMethod · 0.45
subparseMethod · 0.45
generic_visitMethod · 0.45
__new__Method · 0.45
set_ctxMethod · 0.45
set_linenoMethod · 0.45

Calls

no outgoing calls

Tested by 2

find_all_gyptest_filesFunction · 0.36
mainFunction · 0.36