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

Method WriteIfChanged

tools/gyp/pylib/gyp/MSVSUserFile.py:139–152  ·  view source on GitHub ↗

Writes the user file.

(self)

Source from the content-addressed store, hash-verified

137 self.configurations[config_name].append(n_cmd)
138
139 def WriteIfChanged(self):
140 """Writes the user file."""
141 configs = ["Configurations"]
142 for config, spec in sorted(self.configurations.items()):
143 configs.append(spec)
144
145 content = [
146 "VisualStudioUserFile",
147 {"Version": self.version.ProjectVersion(), "Name": self.name},
148 configs,
149 ]
150 easy_xml.WriteXmlIfChanged(
151 content, self.user_file_path, encoding="Windows-1252"
152 )

Callers

nothing calls this directly

Calls 4

sortedFunction · 0.85
ProjectVersionMethod · 0.80
itemsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected