| 90023 | toString: function () { return JSON.stringify(toJSON()); } |
| 90024 | }; |
| 90025 | function addSource(fileName) { |
| 90026 | enter(); |
| 90027 | var source = ts.getRelativePathToDirectoryOrUrl(sourcesDirectoryPath, fileName, host.getCurrentDirectory(), host.getCanonicalFileName, |
| 90028 | /*isAbsolutePathAnUrl*/ true); |
| 90029 | var sourceIndex = sourceToSourceIndexMap.get(source); |
| 90030 | if (sourceIndex === undefined) { |
| 90031 | sourceIndex = sources.length; |
| 90032 | sources.push(source); |
| 90033 | rawSources.push(fileName); |
| 90034 | sourceToSourceIndexMap.set(source, sourceIndex); |
| 90035 | } |
| 90036 | exit(); |
| 90037 | return sourceIndex; |
| 90038 | } |
| 90039 | /* eslint-disable boolean-trivia, no-null/no-null */ |
| 90040 | function setSourceContent(sourceIndex, content) { |
| 90041 | enter(); |