Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
476
def
SaveContents(contents, outfile):
477
if
outfile ==
'-'
:
478
return
print(contents)
479
with
open(outfile,
'w+'
)
as
ofile:
480
ofile.write(contents)
481
482
483
def
ParseGN(contents):
Callers
1
GenCMake
Function · 0.85
Calls
3
print
Function · 0.50
open
Function · 0.50
write
Method · 0.45
Tested by
no test coverage detected