(self)
| 1134 | return None |
| 1135 | |
| 1136 | def FullPath(self): |
| 1137 | # Returns a full path to self relative to the project file, or relative |
| 1138 | # to some other source tree. Start with self, and walk up the chain of |
| 1139 | # parents prepending their paths, if any, until no more parents are |
| 1140 | # available (project-relative path) or until a path relative to some |
| 1141 | # source tree is found. |
| 1142 | xche = self |
| 1143 | path = None |
| 1144 | while isinstance(xche, XCHierarchicalElement) and ( |
| 1145 | path is None or (not path.startswith("/") and not path.startswith("$")) |
| 1146 | ): |
| 1147 | this_path = xche.PathFromSourceTreeAndPath() |
| 1148 | if this_path is not None and path is not None: |
| 1149 | path = posixpath.join(this_path, path) |
| 1150 | elif this_path is not None: |
| 1151 | path = this_path |
| 1152 | xche = xche.parent |
| 1153 | |
| 1154 | return path |
| 1155 | |
| 1156 | |
| 1157 | class PBXGroup(XCHierarchicalElement): |
no test coverage detected