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

Method Print

tools/gyp/pylib/gyp/xcodeproj_file.py:3135–3153  ·  view source on GitHub ↗
(self, file=sys.stdout)

Source from the content-addressed store, hash-verified

3133 self._properties["rootObject"].ComputeIDs(recursive, overwrite, hash)
3134
3135 def Print(self, file=sys.stdout):
3136 self.VerifyHasRequiredProperties()
3137
3138 # Add the special "objects" property, which will be caught and handled
3139 # separately during printing. This structure allows a fairly standard
3140 # loop do the normal printing.
3141 self._properties["objects"] = {}
3142 self._XCPrint(file, 0, "// !$*UTF8*$!\n")
3143 if self._should_print_single_line:
3144 self._XCPrint(file, 0, "{ ")
3145 else:
3146 self._XCPrint(file, 0, "{\n")
3147 for property, value in sorted(self._properties.items()):
3148 if property == "objects":
3149 self._PrintObjects(file)
3150 else:
3151 self._XCKVPrint(file, 1, property, value)
3152 self._XCPrint(file, 0, "}\n")
3153 del self._properties["objects"]
3154
3155 def _PrintObjects(self, file):
3156 if self._should_print_single_line:

Callers

nothing calls this directly

Calls 6

_PrintObjectsMethod · 0.95
sortedFunction · 0.85
_XCPrintMethod · 0.80
_XCKVPrintMethod · 0.80
itemsMethod · 0.45

Tested by

no test coverage detected