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

Method iter_extensions

tools/inspector_protocol/jinja2/environment.py:403–406  ·  view source on GitHub ↗

Iterates over the extensions by priority.

(self)

Source from the content-addressed store, hash-verified

401 lexer = property(get_lexer, doc="The lexer for this environment.")
402
403 def iter_extensions(self):
404 """Iterates over the extensions by priority."""
405 return iter(sorted(self.extensions.values(),
406 key=lambda x: x.priority))
407
408 def getitem(self, obj, argument):
409 """Get an item or attribute of an object but prefer the item."""

Callers 3

preprocessMethod · 0.95
_tokenizeMethod · 0.95
__init__Method · 0.45

Calls 2

sortedFunction · 0.85
valuesMethod · 0.45

Tested by

no test coverage detected