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

Method BuildConditionWithElseCond

deps/v8/tools/cppgc/gen_cmake.py:358–363  ·  view source on GitHub ↗
(self, cond, then_stmts, else_cond)

Source from the content-addressed store, hash-verified

356 """.strip()
357
358 def BuildConditionWithElseCond(self, cond, then_stmts, else_cond):
359 return f"""
360if({cond})
361 {' '.join(then_stmts)}
362else{else_cond}
363 """.strip()
364
365 def BuildParenthesizedOperation(self, operation):
366 return ''.join(['(', operation, ')'])

Callers 1

_ConditionMethod · 0.80

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected