| 206 | } |
| 207 | |
| 208 | FileSearchPath getSourceSearchPath(ConstDocumentPtr doc) |
| 209 | { |
| 210 | StringSet pathSet; |
| 211 | for (ConstElementPtr elem : doc->traverseTree()) |
| 212 | { |
| 213 | if (elem->hasSourceUri()) |
| 214 | { |
| 215 | FilePath sourceFilename = FilePath(elem->getSourceUri()); |
| 216 | pathSet.insert(sourceFilename.getParentPath()); |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | FileSearchPath searchPath; |
| 221 | for (FilePath path : pathSet) |
| 222 | { |
| 223 | searchPath.append(path); |
| 224 | } |
| 225 | |
| 226 | return searchPath; |
| 227 | } |
| 228 | |
| 229 | FileSearchPath getDefaultDataSearchPath() |
| 230 | { |
no test coverage detected