No longer specially recognize underscore and update baselines

This commit is contained in:
Benjamin Lichtman 2018-09-17 14:34:31 -07:00
parent ad43020c8b
commit 830b387765
5 changed files with 5 additions and 5 deletions

View File

@ -558,7 +558,7 @@ namespace ts.codefix {
name = getMapEntryIfExists(funcNode);
}
if (!name || name.identifier === undefined || name.identifier.text === "_" || name.identifier.text === "undefined") {
if (!name || name.identifier === undefined || name.identifier.text === "undefined") {
return { identifier: createIdentifier(""), types, numberOfAssignmentsOriginal };
}

View File

@ -6,6 +6,6 @@ function /*[#|*/f/*|]*/(): Promise<void> {
// ==ASYNC FUNCTION::Convert to async function==
async function f(): Promise<void> {
await fetch('https://typescriptlang.org');
const _ = await fetch('https://typescriptlang.org');
console.log("done");
}

View File

@ -19,7 +19,7 @@ function /*[#|*/f/*|]*/() {
async function f() {
var var1: Response, var2;
await fetch('https://typescriptlang.org');
const _ = await fetch('https://typescriptlang.org');
const res = await Promise.resolve();
var2 = "test";
const res_1 = await fetch("https://microsoft.com");

View File

@ -11,7 +11,7 @@ function res(result) {
async function f() {
const result = await fetch('https://typescriptlang.org');
await res(result);
const _ = await res(result);
return console.log("done");
}
function res(result) {

View File

@ -11,7 +11,7 @@ function res(result) {
async function f() {
const result = await fetch('https://typescriptlang.org');
await res(result);
const _ = await res(result);
return console.log("done");
}
function res(result) {