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

Method BuildConditionWithElseStmts

deps/v8/tools/cppgc/gen_cmake.py:350–356  ·  view source on GitHub ↗
(self, cond, then_stmts, else_stmts)

Source from the content-addressed store, hash-verified

348 """.strip()
349
350 def BuildConditionWithElseStmts(self, cond, then_stmts, else_stmts):
351 return f"""
352if({cond})
353 {' '.join(then_stmts)}
354{'else() ' + ' '.join(else_stmts)}
355endif()
356 """.strip()
357
358 def BuildConditionWithElseCond(self, cond, then_stmts, else_cond):
359 return f"""

Callers 1

_ConditionMethod · 0.80

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected