Home
last modified time | relevance | path

Searched refs:messageText (Results 1 – 25 of 67) sorted by relevance

123

/third_party/typescript/src/testRunner/unittests/config/
DcommandLineParsing.ts18 …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);
54messageText: "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.",
119messageText: "Argument for '--jsx' option must be: 'preserve', 'react-native', 'react', 'react-jsx…
137 messageText: "Compiler option 'module' expects an argument.",
[all …]
DconfigurationExtension.ts198 …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; }[]) {
281messageText: `Circularity detected while resolving configuration: ${[combinePaths(basePath, "circu…
287 messageText: `File './missing2' not found.`
292 messageText: `Unknown option 'excludes'. Did you mean 'exclude'?`
[all …]
DconvertCompilerOptionsFromJson.ts159messageText: "Argument for '--jsx' option must be: 'preserve', 'react-native', 'react'.",
187messageText: "Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', …
215 messageText: "Argument for '--newLine' option must be: 'crlf', 'lf'.",
241messageText: "Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es…
267messageText: "Argument for '--moduleResolution' option must be: 'node', 'classic'.",
298messageText: "Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es201…
329messageText: "Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es201…
360messageText: "Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es201…
391messageText: "Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es201…
436 messageText: "Unknown compiler option 'modu'.",
[all …]
DprojectReferences.ts16 …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"));
DconvertTypeAcquisitionFromJson.ts119 messageText: undefined!, // TODO: GH#18217
214 messageText: undefined!, // TODO: GH#18217
DtsconfigParsingWatchOptions.ts186messageText: `File specification cannot contain a parent directory ('..') that appears after a rec…
202messageText: `File specification cannot contain a parent directory ('..') that appears after a rec…
DtsconfigParsing.ts147 assert.equal(error.messageText, expected.messageText);
/third_party/typescript/src/linter/
DLibraryTypeCallDiagnosticChecker.ts60 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) {
DLinterRunner.ts18 …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/
DcachingFileSystemInformation.ts185 … 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), []);
DjsDocTagCheck.ts91 …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…
DconditionCheck.ts90 …assert.deepEqual(response[0].messageText, "The statement must be written use the function 'canIUse…
/third_party/typescript/src/testRunner/unittests/tscWatch/
Dhelpers.ts97 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/
DfakesHosts.ts470 …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);
DharnessUtils.ts146messageText: 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/
DAPISample_parseConfig.js25 console.log(`${error.file && error.file.fileName}: ${error.messageText}`);
59 console.log((error.file && error.file.fileName) + ": " + error.messageText);
DAPISample_compile.js28 var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n');
63 var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n');
DAPISample_Watch.js70 ts.flattenDiagnosticMessageText(diagnostic.messageText, formatHost.getNewLine())
131 …ror", diagnostic.code, ":", ts.flattenDiagnosticMessageText(diagnostic.messageText, formatHost.get…
DAPISample_watcher.js99 let message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
184 var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
/third_party/node/deps/npm/lib/utils/
Derror-handler.js212 summary: messageText(msg.summary),
213 detail: messageText(msg.detail)
222 function messageText (msg) { function
/third_party/typescript/src/compiler/
Dwatch.ts74 …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/
DAPISample_parseConfig.ts29 console.log(`${error.file && error.file.fileName}: ${error.messageText}`);
DAPISample_compile.ts32 var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n');
DAPISample_Watch.ts74 ts.flattenDiagnosticMessageText(diagnostic.messageText, formatHost.getNewLine())
/third_party/typescript/src/testRunner/unittests/services/extract/
Dhelpers.ts109 …rrors, undefined, rangeToExtract.errors && "Range error: " + rangeToExtract.errors[0].messageText);
172 …ToExtract.errors, rangeToExtract.errors && "Range error: " + rangeToExtract.errors[0].messageText);

123