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

Method choose_async

deps/v8/third_party/jinja2/compiler.py:605–606  ·  view source on GitHub ↗
(self, async_value: str = "async ", sync_value: str = "")

Source from the content-addressed store, hash-verified

603 self.writeline(f"{' = '.join(undefs)} = missing")
604
605 def choose_async(self, async_value: str = "async ", sync_value: str = "") -> str:
606 return async_value if self.environment.is_async else sync_value
607
608 def func(self, name: str) -> str:
609 return f"{self.choose_async()}def {name}"

Callers 5

funcMethod · 0.95
visit_BlockMethod · 0.95
visit_IncludeMethod · 0.95
_import_commonMethod · 0.95
visit_ForMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected