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

Method _GroupByName

tools/gyp/pylib/gyp/xcodeproj_file.py:2793–2803  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

2791 return self
2792
2793 def _GroupByName(self, name):
2794 if "mainGroup" not in self._properties:
2795 self.SetProperty("mainGroup", PBXGroup())
2796
2797 main_group = self._properties["mainGroup"]
2798 group = main_group.GetChildByName(name)
2799 if group is None:
2800 group = PBXGroup({"name": name})
2801 main_group.AppendChild(group)
2802
2803 return group
2804
2805 # SourceGroup and ProductsGroup are created by default in Xcode's own
2806 # templates.

Callers 5

SourceGroupMethod · 0.95
ProductsGroupMethod · 0.95
IntermediatesGroupMethod · 0.95
FrameworksGroupMethod · 0.95
ProjectsGroupMethod · 0.95

Calls 4

PBXGroupClass · 0.85
SetPropertyMethod · 0.80
GetChildByNameMethod · 0.80
AppendChildMethod · 0.45

Tested by

no test coverage detected