(args)
| 40546 | errors: errors |
| 40547 | }; |
| 40548 | function parseStrings(args) { |
| 40549 | var i = 0; |
| 40550 | while (i < args.length) { |
| 40551 | var s = args[i]; |
| 40552 | i++; |
| 40553 | if (s.charCodeAt(0) === 64 /* CharacterCodes.at */) { |
| 40554 | parseResponseFile(s.slice(1)); |
| 40555 | } |
| 40556 | else if (s.charCodeAt(0) === 45 /* CharacterCodes.minus */) { |
| 40557 | var inputOptionName = s.slice(s.charCodeAt(1) === 45 /* CharacterCodes.minus */ ? 2 : 1); |
| 40558 | var opt = getOptionDeclarationFromName(diagnostics.getOptionsNameMap, inputOptionName, /*allowShort*/ true); |
| 40559 | if (opt) { |
| 40560 | i = parseOptionValue(args, i, diagnostics, opt, options, errors); |
| 40561 | } |
| 40562 | else { |
| 40563 | var watchOpt = getOptionDeclarationFromName(watchOptionsDidYouMeanDiagnostics.getOptionsNameMap, inputOptionName, /*allowShort*/ true); |
| 40564 | if (watchOpt) { |
| 40565 | i = parseOptionValue(args, i, watchOptionsDidYouMeanDiagnostics, watchOpt, watchOptions || (watchOptions = {}), errors); |
| 40566 | } |
| 40567 | else { |
| 40568 | errors.push(createUnknownOptionError(inputOptionName, diagnostics, ts.createCompilerDiagnostic, s)); |
| 40569 | } |
| 40570 | } |
| 40571 | } |
| 40572 | else { |
| 40573 | fileNames.push(s); |
| 40574 | } |
| 40575 | } |
| 40576 | } |
| 40577 | function parseResponseFile(fileName) { |
| 40578 | var text = tryReadFile(fileName, readFile || (function (fileName) { return ts.sys.readFile(fileName); })); |
| 40579 | if (!ts.isString(text)) { |
no test coverage detected