mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
No longer specially recognize underscore and update baselines
This commit is contained in:
parent
ad43020c8b
commit
830b387765
@ -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 };
|
||||
}
|
||||
|
||||
|
||||
@ -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");
|
||||
}
|
||||
@ -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");
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user