/third_party/typescript/src/testRunner/unittests/config/ |
D | commandLineParsing.ts | 18 …if (typeof expectedError.messageText === "string" && expectedError.messageText.includes("[...]")) { 19 const prefix = expectedError.messageText.split("[...]")[0]; 20 assert(expectedError.messageText.startsWith(prefix)); 23 assert.equal(parsedError.messageText, expectedError.messageText); 54 … messageText: "Unknown compiler option '--declarations'. Did you mean 'declaration'?", 62 messageText: "Unknown compiler option '--allowTS'. Did you mean 'allowJs'?", 93 messageText: "Argument for '--lib' option must be: 'es5', 'es6' [...]", 111 messageText: "Compiler option 'jsx' expects an argument.", 119 …messageText: "Argument for '--jsx' option must be: 'preserve', 'react-native', 'react', 'react-jsx… 137 messageText: "Compiler option 'module' expects an argument.", [all …]
|
D | configurationExtension.ts | 198 …function verifyDiagnostics(actual: Diagnostic[], expected: { code: number; messageText: string; }[… 205 …assert.equal(flattenDiagnosticMessageText(actualError.messageText, "\n"), expectedError.messageTex… 216 … assert(config && !error, flattenDiagnosticMessageText(error && error.messageText, "\n")); 222 …eText(jsonSourceFile.parseDiagnostics[0] && jsonSourceFile.parseDiagnostics[0].messageText, "\n")); 233 …rors.length, flattenDiagnosticMessageText(parsed.errors[0] && parsed.errors[0].messageText, "\n")); 240 …rors.length, flattenDiagnosticMessageText(parsed.errors[0] && parsed.errors[0].messageText, "\n")); 247 …ilure(name: string, entry: string, expectedDiagnostics: { code: number; messageText: string; }[]) { 281 …messageText: `Circularity detected while resolving configuration: ${[combinePaths(basePath, "circu… 287 messageText: `File './missing2' not found.` 292 messageText: `Unknown option 'excludes'. Did you mean 'exclude'?` [all …]
|
D | convertCompilerOptionsFromJson.ts | 159 … messageText: "Argument for '--jsx' option must be: 'preserve', 'react-native', 'react'.", 187 …messageText: "Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', … 215 messageText: "Argument for '--newLine' option must be: 'crlf', 'lf'.", 241 …messageText: "Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es… 267 … messageText: "Argument for '--moduleResolution' option must be: 'node', 'classic'.", 298 …messageText: "Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es201… 329 …messageText: "Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es201… 360 …messageText: "Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es201… 391 …messageText: "Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es201… 436 messageText: "Unknown compiler option 'modu'.", [all …]
|
D | projectReferences.ts | 16 …g = errors.map(e => ` ${e.file ? e.file.fileName : "[global]"}: ${e.messageText}`).join("\r\n"); 23 …message}: Expected no errors, but found:\r\n${errors.map(e => ` ${e.messageText}`).join("\r\n")… 87 assert(config && !error, flattenDiagnosticMessageText(error && error.messageText, "\n"));
|
D | convertTypeAcquisitionFromJson.ts | 119 messageText: undefined!, // TODO: GH#18217 214 messageText: undefined!, // TODO: GH#18217
|
D | tsconfigParsingWatchOptions.ts | 186 …messageText: `File specification cannot contain a parent directory ('..') that appears after a rec… 202 …messageText: `File specification cannot contain a parent directory ('..') that appears after a rec…
|
D | tsconfigParsing.ts | 147 assert.equal(error.messageText, expected.messageText);
|
/third_party/typescript/src/linter/ |
D | LibraryTypeCallDiagnosticChecker.ts | 60 if (chain.messageText.match(TYPE_UNKNOWN_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE)) { 63 … if (this.inLibCall && chain.messageText.match(TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE)) { 66 if (this.inLibCall && chain.messageText.match(TYPE_NULL_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE)) { 71 …if (this.inLibCall && chain.messageText.match(ARGUMENT_OF_TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_PARA… 74 …if (this.inLibCall && chain.messageText.match(ARGUMENT_OF_TYPE_NULL_IS_NOT_ASSIGNABLE_TO_PARAMETER… 92 if (msgText == msgChain.messageText) { 109 if (curMsg.messageText != curFilteredMsg.messageText) {
|
D | LinterRunner.ts | 18 …tegory, code: number, file: SourceFile, start: number, length: number, messageText: string): Diagn… 19 return { category, code, file, start, length, messageText };
|
/third_party/typescript/src/testRunner/unittests/tsserver/ |
D | cachingFileSystemInformation.ts | 185 … assert.equal(flattenDiagnosticMessageText(diag.messageText, "\n"), "Cannot find name 'foo'."); 245 …assert.equal(flattenDiagnosticMessageText(diag.messageText, "\n"), "Cannot find module 'bar'. Did … 478 …tLanguageService().getSemanticDiagnostics(file1.path).map(diag => diag.messageText), ["Cannot find… 479 …tLanguageService().getSemanticDiagnostics(file2.path).map(diag => diag.messageText), ["Cannot find… 490 …project.getLanguageService().getSemanticDiagnostics(file1.path).map(diag => diag.messageText), []); 491 …project.getLanguageService().getSemanticDiagnostics(file2.path).map(diag => diag.messageText), []); 698 …getLanguageService().getSemanticDiagnostics(app.path).map(diag => diag.messageText), ["Cannot find… 715 …l(project.getLanguageService().getSemanticDiagnostics(app.path).map(diag => diag.messageText), []);
|
D | jsDocTagCheck.ts | 91 …assert.deepEqual(response[0].messageText, "This API has been ignored. exercise caution when using … 92 …assert.deepEqual(response[1].messageText, "This API is used to develop system apps. exercise cauti…
|
D | conditionCheck.ts | 90 …assert.deepEqual(response[0].messageText, "The statement must be written use the function 'canIUse…
|
/third_party/typescript/src/testRunner/unittests/tscWatch/ |
D | helpers.ts | 97 return !!(diagnostic as Diagnostic).messageText; 139 … return ` - ${flattenDiagnosticMessageText(diagnostic.messageText, host.newLine)}${newLines}`; 225 messageText: text, 233 return !!(message as DiagnosticMessageChain).messageText; 242 messageText: isDiagnosticMessageChain(message) ? 244 getDiagnosticMessageChain(message, args).messageText,
|
/third_party/typescript/src/harness/ |
D | fakesHosts.ts | 470 …function diagnosticMessageChainToText({ messageText, next}: ts.DiagnosticMessageChain, indent = 0)… 471 let text = indentedText(indent, messageText); 479 …function diagnosticRelatedInformationToText({ file, start, length, messageText }: ts.DiagnosticRel… 480 const text = typeof messageText === "string" ? 481 messageText : 482 diagnosticMessageChainToText(messageText);
|
D | harnessUtils.ts | 146 … messageText: ts.flattenDiagnosticMessageText(diagnostic.messageText, Harness.IO.newLine()), 281 ts.flattenDiagnosticMessageText(d1.messageText, Harness.IO.newLine()), 282 …ts.flattenDiagnosticMessageText(d2.messageText, Harness.IO.newLine()), "d1.messageText !== d2.mess…
|
/third_party/typescript/tests/baselines/reference/ |
D | APISample_parseConfig.js | 25 console.log(`${error.file && error.file.fileName}: ${error.messageText}`); 59 console.log((error.file && error.file.fileName) + ": " + error.messageText);
|
D | APISample_compile.js | 28 var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'); 63 var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n');
|
D | APISample_Watch.js | 70 ts.flattenDiagnosticMessageText(diagnostic.messageText, formatHost.getNewLine()) 131 …ror", diagnostic.code, ":", ts.flattenDiagnosticMessageText(diagnostic.messageText, formatHost.get…
|
D | APISample_watcher.js | 99 let message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n"); 184 var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
|
/third_party/node/deps/npm/lib/utils/ |
D | error-handler.js | 212 summary: messageText(msg.summary), 213 detail: messageText(msg.detail) 222 function messageText (msg) { function
|
/third_party/typescript/src/compiler/ |
D | watch.ts | 74 …output += `${flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)}${newLine + newL… 85 …output += `${flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)}${getPlainDiagno… 113 … return `${newLine}${flattenDiagnosticMessageText(d.messageText, newLine)}${newLine}${newLine}`; 138 …on => write(` ${fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText}`)); 139 … explainIfFileIsRedirect(file, relativeFileName)?.forEach(d => write(` ${d.messageText}`));
|
/third_party/typescript/tests/cases/compiler/ |
D | APISample_parseConfig.ts | 29 console.log(`${error.file && error.file.fileName}: ${error.messageText}`);
|
D | APISample_compile.ts | 32 var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n');
|
D | APISample_Watch.ts | 74 ts.flattenDiagnosticMessageText(diagnostic.messageText, formatHost.getNewLine())
|
/third_party/typescript/src/testRunner/unittests/services/extract/ |
D | helpers.ts | 109 …rrors, undefined, rangeToExtract.errors && "Range error: " + rangeToExtract.errors[0].messageText); 172 …ToExtract.errors, rangeToExtract.errors && "Range error: " + rangeToExtract.errors[0].messageText);
|