| 103 | } |
| 104 | |
| 105 | std::string_view FileSystem::toPath(PathId id) { |
| 106 | static constexpr std::string_view kEmpty; |
| 107 | if (!id) return kEmpty; |
| 108 | |
| 109 | const std::string_view symbol = id.getSymbolTable()->getSymbol((SymbolId)id); |
| 110 | return (symbol == SymbolTable::getBadSymbol()) ? kEmpty : symbol; |
| 111 | } |
| 112 | |
| 113 | PathId FileSystem::getWorkingDir(SymbolTable *symbolTable) { |
| 114 | return toPathId(getWorkingDir(), symbolTable); |