From 9a99293373a53b59daad04bc34efc62b1731f223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Sun, 15 Sep 2024 23:41:55 +0200 Subject: [PATCH] give inputs separate variables --- .../reference/emptyArrayBindingPattern01.js | 35 +++++--- .../emptyArrayBindingPattern01.symbols | 43 ++++++---- .../emptyArrayBindingPattern01.types | 82 ++++++++++++++----- .../emptyArrayBindingPattern01.ts | 20 +++-- 4 files changed, 124 insertions(+), 56 deletions(-) diff --git a/tests/baselines/reference/emptyArrayBindingPattern01.js b/tests/baselines/reference/emptyArrayBindingPattern01.js index c8eea9bcbca..247059f89f0 100644 --- a/tests/baselines/reference/emptyArrayBindingPattern01.js +++ b/tests/baselines/reference/emptyArrayBindingPattern01.js @@ -1,26 +1,35 @@ //// [tests/cases/conformance/es6/destructuring/emptyArrayBindingPattern01.ts] //// //// [emptyArrayBindingPattern01.ts] -export const cilBlurLinear: string[][] = [[]]; +export const cilBlurLinear1: string[][] = [[]]; +const [,] = cilBlurLinear1; -const [,] = cilBlurLinear; +export const cilBlurLinear2: string[][] = [[]]; +let [,] = cilBlurLinear2; -let [,] = cilBlurLinear; +export const cilBlurLinear3: string[][] = [[]]; +var [,] = cilBlurLinear3; -var [,] = cilBlurLinear; +export const cilBlurLinear4: string[][] = [[]]; +const [[]] = cilBlurLinear4; -const [[]] = cilBlurLinear; +export const cilBlurLinear5: string[][] = [[]]; +let [[]] = cilBlurLinear5; -let [[]] = cilBlurLinear; - -var [[]] = cilBlurLinear; +export const cilBlurLinear6: string[][] = [[]]; +var [[]] = cilBlurLinear6; //// [emptyArrayBindingPattern01.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.cilBlurLinear = void 0; -exports.cilBlurLinear = [[]]; -var _a = exports.cilBlurLinear[0]; -var _b = exports.cilBlurLinear[0]; -var _c = exports.cilBlurLinear[0]; +exports.cilBlurLinear6 = exports.cilBlurLinear5 = exports.cilBlurLinear4 = exports.cilBlurLinear3 = exports.cilBlurLinear2 = exports.cilBlurLinear1 = void 0; +exports.cilBlurLinear1 = [[]]; +exports.cilBlurLinear2 = [[]]; +exports.cilBlurLinear3 = [[]]; +exports.cilBlurLinear4 = [[]]; +var _a = exports.cilBlurLinear4[0]; +exports.cilBlurLinear5 = [[]]; +var _b = exports.cilBlurLinear5[0]; +exports.cilBlurLinear6 = [[]]; +var _c = exports.cilBlurLinear6[0]; diff --git a/tests/baselines/reference/emptyArrayBindingPattern01.symbols b/tests/baselines/reference/emptyArrayBindingPattern01.symbols index 670d0987d79..d6a32b78b75 100644 --- a/tests/baselines/reference/emptyArrayBindingPattern01.symbols +++ b/tests/baselines/reference/emptyArrayBindingPattern01.symbols @@ -1,24 +1,39 @@ //// [tests/cases/conformance/es6/destructuring/emptyArrayBindingPattern01.ts] //// === emptyArrayBindingPattern01.ts === -export const cilBlurLinear: string[][] = [[]]; ->cilBlurLinear : Symbol(cilBlurLinear, Decl(emptyArrayBindingPattern01.ts, 0, 12)) +export const cilBlurLinear1: string[][] = [[]]; +>cilBlurLinear1 : Symbol(cilBlurLinear1, Decl(emptyArrayBindingPattern01.ts, 0, 12)) -const [,] = cilBlurLinear; ->cilBlurLinear : Symbol(cilBlurLinear, Decl(emptyArrayBindingPattern01.ts, 0, 12)) +const [,] = cilBlurLinear1; +>cilBlurLinear1 : Symbol(cilBlurLinear1, Decl(emptyArrayBindingPattern01.ts, 0, 12)) -let [,] = cilBlurLinear; ->cilBlurLinear : Symbol(cilBlurLinear, Decl(emptyArrayBindingPattern01.ts, 0, 12)) +export const cilBlurLinear2: string[][] = [[]]; +>cilBlurLinear2 : Symbol(cilBlurLinear2, Decl(emptyArrayBindingPattern01.ts, 3, 12)) -var [,] = cilBlurLinear; ->cilBlurLinear : Symbol(cilBlurLinear, Decl(emptyArrayBindingPattern01.ts, 0, 12)) +let [,] = cilBlurLinear2; +>cilBlurLinear2 : Symbol(cilBlurLinear2, Decl(emptyArrayBindingPattern01.ts, 3, 12)) -const [[]] = cilBlurLinear; ->cilBlurLinear : Symbol(cilBlurLinear, Decl(emptyArrayBindingPattern01.ts, 0, 12)) +export const cilBlurLinear3: string[][] = [[]]; +>cilBlurLinear3 : Symbol(cilBlurLinear3, Decl(emptyArrayBindingPattern01.ts, 6, 12)) -let [[]] = cilBlurLinear; ->cilBlurLinear : Symbol(cilBlurLinear, Decl(emptyArrayBindingPattern01.ts, 0, 12)) +var [,] = cilBlurLinear3; +>cilBlurLinear3 : Symbol(cilBlurLinear3, Decl(emptyArrayBindingPattern01.ts, 6, 12)) -var [[]] = cilBlurLinear; ->cilBlurLinear : Symbol(cilBlurLinear, Decl(emptyArrayBindingPattern01.ts, 0, 12)) +export const cilBlurLinear4: string[][] = [[]]; +>cilBlurLinear4 : Symbol(cilBlurLinear4, Decl(emptyArrayBindingPattern01.ts, 9, 12)) + +const [[]] = cilBlurLinear4; +>cilBlurLinear4 : Symbol(cilBlurLinear4, Decl(emptyArrayBindingPattern01.ts, 9, 12)) + +export const cilBlurLinear5: string[][] = [[]]; +>cilBlurLinear5 : Symbol(cilBlurLinear5, Decl(emptyArrayBindingPattern01.ts, 12, 12)) + +let [[]] = cilBlurLinear5; +>cilBlurLinear5 : Symbol(cilBlurLinear5, Decl(emptyArrayBindingPattern01.ts, 12, 12)) + +export const cilBlurLinear6: string[][] = [[]]; +>cilBlurLinear6 : Symbol(cilBlurLinear6, Decl(emptyArrayBindingPattern01.ts, 15, 12)) + +var [[]] = cilBlurLinear6; +>cilBlurLinear6 : Symbol(cilBlurLinear6, Decl(emptyArrayBindingPattern01.ts, 15, 12)) diff --git a/tests/baselines/reference/emptyArrayBindingPattern01.types b/tests/baselines/reference/emptyArrayBindingPattern01.types index 8b308ac323f..23ba88275fe 100644 --- a/tests/baselines/reference/emptyArrayBindingPattern01.types +++ b/tests/baselines/reference/emptyArrayBindingPattern01.types @@ -1,41 +1,81 @@ //// [tests/cases/conformance/es6/destructuring/emptyArrayBindingPattern01.ts] //// === emptyArrayBindingPattern01.ts === -export const cilBlurLinear: string[][] = [[]]; ->cilBlurLinear : string[][] -> : ^^^^^^^^^^ +export const cilBlurLinear1: string[][] = [[]]; +>cilBlurLinear1 : string[][] +> : ^^^^^^^^^^ >[[]] : undefined[][] > : ^^^^^^^^^^^^^ >[] : undefined[] > : ^^^^^^^^^^^ -const [,] = cilBlurLinear; +const [,] = cilBlurLinear1; > : undefined > : ^^^^^^^^^ ->cilBlurLinear : string[][] -> : ^^^^^^^^^^ +>cilBlurLinear1 : string[][] +> : ^^^^^^^^^^ -let [,] = cilBlurLinear; +export const cilBlurLinear2: string[][] = [[]]; +>cilBlurLinear2 : string[][] +> : ^^^^^^^^^^ +>[[]] : undefined[][] +> : ^^^^^^^^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + +let [,] = cilBlurLinear2; > : undefined > : ^^^^^^^^^ ->cilBlurLinear : string[][] -> : ^^^^^^^^^^ +>cilBlurLinear2 : string[][] +> : ^^^^^^^^^^ -var [,] = cilBlurLinear; +export const cilBlurLinear3: string[][] = [[]]; +>cilBlurLinear3 : string[][] +> : ^^^^^^^^^^ +>[[]] : undefined[][] +> : ^^^^^^^^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + +var [,] = cilBlurLinear3; > : undefined > : ^^^^^^^^^ ->cilBlurLinear : string[][] -> : ^^^^^^^^^^ +>cilBlurLinear3 : string[][] +> : ^^^^^^^^^^ -const [[]] = cilBlurLinear; ->cilBlurLinear : string[][] -> : ^^^^^^^^^^ +export const cilBlurLinear4: string[][] = [[]]; +>cilBlurLinear4 : string[][] +> : ^^^^^^^^^^ +>[[]] : undefined[][] +> : ^^^^^^^^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ -let [[]] = cilBlurLinear; ->cilBlurLinear : string[][] -> : ^^^^^^^^^^ +const [[]] = cilBlurLinear4; +>cilBlurLinear4 : string[][] +> : ^^^^^^^^^^ -var [[]] = cilBlurLinear; ->cilBlurLinear : string[][] -> : ^^^^^^^^^^ +export const cilBlurLinear5: string[][] = [[]]; +>cilBlurLinear5 : string[][] +> : ^^^^^^^^^^ +>[[]] : undefined[][] +> : ^^^^^^^^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + +let [[]] = cilBlurLinear5; +>cilBlurLinear5 : string[][] +> : ^^^^^^^^^^ + +export const cilBlurLinear6: string[][] = [[]]; +>cilBlurLinear6 : string[][] +> : ^^^^^^^^^^ +>[[]] : undefined[][] +> : ^^^^^^^^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + +var [[]] = cilBlurLinear6; +>cilBlurLinear6 : string[][] +> : ^^^^^^^^^^ diff --git a/tests/cases/conformance/es6/destructuring/emptyArrayBindingPattern01.ts b/tests/cases/conformance/es6/destructuring/emptyArrayBindingPattern01.ts index 73a6d1d5472..9359e89c267 100644 --- a/tests/cases/conformance/es6/destructuring/emptyArrayBindingPattern01.ts +++ b/tests/cases/conformance/es6/destructuring/emptyArrayBindingPattern01.ts @@ -1,16 +1,20 @@ // @module: commonjs // @target: es5 -export const cilBlurLinear: string[][] = [[]]; +export const cilBlurLinear1: string[][] = [[]]; +const [,] = cilBlurLinear1; -const [,] = cilBlurLinear; +export const cilBlurLinear2: string[][] = [[]]; +let [,] = cilBlurLinear2; -let [,] = cilBlurLinear; +export const cilBlurLinear3: string[][] = [[]]; +var [,] = cilBlurLinear3; -var [,] = cilBlurLinear; +export const cilBlurLinear4: string[][] = [[]]; +const [[]] = cilBlurLinear4; -const [[]] = cilBlurLinear; +export const cilBlurLinear5: string[][] = [[]]; +let [[]] = cilBlurLinear5; -let [[]] = cilBlurLinear; - -var [[]] = cilBlurLinear; +export const cilBlurLinear6: string[][] = [[]]; +var [[]] = cilBlurLinear6;