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

Method _AddChildToDicts

tools/gyp/pylib/gyp/xcodeproj_file.py:1203–1222  ·  view source on GitHub ↗
(self, child)

Source from the content-addressed store, hash-verified

1201 return XCHierarchicalElement.Hashables(self)
1202
1203 def _AddChildToDicts(self, child):
1204 # Sets up this PBXGroup object's dicts to reference the child properly.
1205 child_path = child.PathFromSourceTreeAndPath()
1206 if child_path:
1207 if child_path in self._children_by_path:
1208 raise ValueError("Found multiple children with path " + child_path)
1209 self._children_by_path[child_path] = child
1210
1211 if isinstance(child, PBXVariantGroup):
1212 child_name = child._properties.get("name", None)
1213 key = (child_name, child_path)
1214 if key in self._variant_children_by_name_and_path:
1215 raise ValueError(
1216 "Found multiple PBXVariantGroup children with "
1217 + "name "
1218 + str(child_name)
1219 + " and path "
1220 + str(child_path)
1221 )
1222 self._variant_children_by_name_and_path[key] = child
1223
1224 def AppendChild(self, child):
1225 # Callers should use this instead of calling

Callers 2

__init__Method · 0.95
AppendChildMethod · 0.95

Calls 3

strFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected