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

Method AddOrGetFileInRootGroup

tools/gyp/pylib/gyp/xcodeproj_file.py:2864–2873  ·  view source on GitHub ↗

Returns a PBXFileReference corresponding to path in the correct group according to RootGroupForPath's heuristics. If an existing PBXFileReference for path exists, it will be returned. Otherwise, one will be created and returned.

(self, path)

Source from the content-addressed store, hash-verified

2862 return (self.SourceGroup(), True)
2863
2864 def AddOrGetFileInRootGroup(self, path):
2865 """Returns a PBXFileReference corresponding to path in the correct group
2866 according to RootGroupForPath's heuristics.
2867
2868 If an existing PBXFileReference for path exists, it will be returned.
2869 Otherwise, one will be created and returned.
2870 """
2871
2872 (group, hierarchical) = self.RootGroupForPath(path)
2873 return group.AddOrGetFileByPath(path, hierarchical)
2874
2875 def RootGroupsTakeOverOnlyChildren(self, recurse=False):
2876 """Calls TakeOverOnlyChild for all groups in the main group."""

Callers 3

Finalize1Method · 0.80
AddSourceToTargetFunction · 0.80
GenerateOutputFunction · 0.80

Calls 2

RootGroupForPathMethod · 0.95
AddOrGetFileByPathMethod · 0.80

Tested by

no test coverage detected