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

Method _extract

deps/v8/third_party/jinja2/ext.py:343–352  ·  view source on GitHub ↗
(
        self,
        source: t.Union[str, nodes.Template],
        gettext_functions: t.Sequence[str] = GETTEXT_FUNCTIONS,
    )

Source from the content-addressed store, hash-verified

341 self.environment.globals.pop(key, None)
342
343 def _extract(
344 self,
345 source: t.Union[str, nodes.Template],
346 gettext_functions: t.Sequence[str] = GETTEXT_FUNCTIONS,
347 ) -> t.Iterator[
348 t.Tuple[int, str, t.Union[t.Optional[str], t.Tuple[t.Optional[str], ...]]]
349 ]:
350 if isinstance(source, str):
351 source = self.environment.parse(source)
352 return extract_from_ast(source, gettext_functions)
353
354 def parse(self, parser: "Parser") -> t.Union[nodes.Node, t.List[nodes.Node]]:
355 """Parse a translatable tag."""

Callers

nothing calls this directly

Calls 2

extract_from_astFunction · 0.70
parseMethod · 0.65

Tested by

no test coverage detected