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

Function SaveContents

deps/v8/tools/cppgc/gen_cmake.py:476–480  ·  view source on GitHub ↗
(contents, outfile)

Source from the content-addressed store, hash-verified

474
475
476def SaveContents(contents, outfile):
477 if outfile == '-':
478 return print(contents)
479 with open(outfile, 'w+') as ofile:
480 ofile.write(contents)
481
482
483def ParseGN(contents):

Callers 1

GenCMakeFunction · 0.85

Calls 3

printFunction · 0.50
openFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected