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

Function load_extensions

tools/inspector_protocol/jinja2/environment.py:78–87  ·  view source on GitHub ↗

Load the extensions from the list and bind it to the environment. Returns a dict of instantiated environments.

(environment, extensions)

Source from the content-addressed store, hash-verified

76
77
78def load_extensions(environment, extensions):
79 """Load the extensions from the list and bind it to the environment.
80 Returns a dict of instantiated environments.
81 """
82 result = {}
83 for extension in extensions:
84 if isinstance(extension, string_types):
85 extension = import_string(extension)
86 result[extension.identifier] = extension(environment)
87 return result
88
89
90def fail_for_missing_callable(string, name):

Callers 3

__init__Method · 0.70
add_extensionMethod · 0.70
overlayMethod · 0.70

Calls 1

import_stringFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…