(basePath)
| 41558 | return fileNames; |
| 41559 | } |
| 41560 | function getProjectReferences(basePath) { |
| 41561 | var projectReferences; |
| 41562 | var referencesOfRaw = getPropFromRaw("references", function (element) { return typeof element === "object"; }, "object"); |
| 41563 | if (ts.isArray(referencesOfRaw)) { |
| 41564 | for (var _i = 0, referencesOfRaw_1 = referencesOfRaw; _i < referencesOfRaw_1.length; _i++) { |
| 41565 | var ref = referencesOfRaw_1[_i]; |
| 41566 | if (typeof ref.path !== "string") { |
| 41567 | createCompilerDiagnosticOnlyIfJson(ts.Diagnostics.Compiler_option_0_requires_a_value_of_type_1, "reference.path", "string"); |
| 41568 | } |
| 41569 | else { |
| 41570 | (projectReferences || (projectReferences = [])).push({ |
| 41571 | path: ts.getNormalizedAbsolutePath(ref.path, basePath), |
| 41572 | originalPath: ref.path, |
| 41573 | prepend: ref.prepend, |
| 41574 | circular: ref.circular |
| 41575 | }); |
| 41576 | } |
| 41577 | } |
| 41578 | } |
| 41579 | return projectReferences; |
| 41580 | } |
| 41581 | function toPropValue(specResult) { |
| 41582 | return ts.isArray(specResult) ? specResult : undefined; |
| 41583 | } |
no test coverage detected