From 843bdbb4bd48f024a7d952f7cd00c35a0987e5b4 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 21 Dec 2015 13:01:21 -0800 Subject: [PATCH] Fix the breakpoints in For Of destructuring --- src/services/breakpoints.ts | 111 +++-- ...ructuringForOfArrayBindingPattern.baseline | 360 ++++------------ ...fArrayBindingPatternDefaultValues.baseline | 387 ++++-------------- ...ucturingForOfObjectBindingPattern.baseline | 212 +++------- ...ObjectBindingPatternDefaultValues.baseline | 301 +++----------- 5 files changed, 326 insertions(+), 1045 deletions(-) diff --git a/src/services/breakpoints.ts b/src/services/breakpoints.ts index 5b6647e4338..679988dbcf2 100644 --- a/src/services/breakpoints.ts +++ b/src/services/breakpoints.ts @@ -45,6 +45,10 @@ namespace ts.BreakpointResolver { return createTextSpanFromBounds(start, (endNode || startNode).getEnd()); } + function textSpanEndingAtNextToken(startNode: Node, previousTokenToFindNextEndToken: Node): TextSpan { + return textSpan(startNode, findNextToken(previousTokenToFindNextEndToken, previousTokenToFindNextEndToken.parent)); + } + function spanInNodeIfStartsOnSameLine(node: Node, otherwiseOnNode?: Node): TextSpan { if (node && lineOfPosition === sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile)).line) { return spanInNode(node); @@ -67,29 +71,33 @@ namespace ts.BreakpointResolver { function spanInNode(node: Node): TextSpan { if (node) { if (isExpression(node)) { - if (node.parent.kind === SyntaxKind.DoStatement) { - // Set span as if on while keyword - return spanInPreviousNode(node); - } + switch (node.parent.kind) { + case SyntaxKind.DoStatement: + // Set span as if on while keyword + return spanInPreviousNode(node); - if (node.parent.kind === SyntaxKind.Decorator) { - // Set breakpoint on the decorator emit - return spanInNode(node.parent); - } + case SyntaxKind.Decorator: + // Set breakpoint on the decorator emit + return spanInNode(node.parent); - if (node.parent.kind === SyntaxKind.ForStatement) { - // For now lets set the span on this expression, fix it later - return textSpan(node); - } + case SyntaxKind.ForStatement: + case SyntaxKind.ForOfStatement: + // For now lets set the span on this expression, fix it later + return textSpan(node); - if (node.parent.kind === SyntaxKind.BinaryExpression && (node.parent).operatorToken.kind === SyntaxKind.CommaToken) { - // if this is comma expression, the breakpoint is possible in this expression - return textSpan(node); - } + case SyntaxKind.BinaryExpression: + if ((node.parent).operatorToken.kind === SyntaxKind.CommaToken) { + // if this is comma expression, the breakpoint is possible in this expression + return textSpan(node); + } + break; - if (node.parent.kind === SyntaxKind.ArrowFunction && (node.parent).body === node) { - // If this is body of arrow function, it is allowed to have the breakpoint - return textSpan(node); + case SyntaxKind.ArrowFunction: + if ((node.parent).body === node) { + // If this is body of arrow function, it is allowed to have the breakpoint + return textSpan(node); + } + break; } } @@ -137,7 +145,7 @@ namespace ts.BreakpointResolver { case SyntaxKind.WhileStatement: // Span on while(...) - return textSpan(node, findNextToken((node).expression, node)); + return textSpanEndingAtNextToken(node, (node).expression); case SyntaxKind.DoStatement: // span in statement of the do statement @@ -149,7 +157,7 @@ namespace ts.BreakpointResolver { case SyntaxKind.IfStatement: // set on if(..) span - return textSpan(node, findNextToken((node).expression, node)); + return textSpanEndingAtNextToken(node, (node).expression); case SyntaxKind.LabeledStatement: // span in statement @@ -164,13 +172,16 @@ namespace ts.BreakpointResolver { return spanInForStatement(node); case SyntaxKind.ForInStatement: + // span of for (a in ...) + return textSpanEndingAtNextToken(node, (node).expression); + case SyntaxKind.ForOfStatement: - // span on for (a in ...) - return textSpan(node, findNextToken((node).expression, node)); + // span in initializer + return spanInInitializerOfForLike(node); case SyntaxKind.SwitchStatement: // span on switch(...) - return textSpan(node, findNextToken((node).expression, node)); + return textSpanEndingAtNextToken(node, (node).expression); case SyntaxKind.CaseClause: case SyntaxKind.DefaultClause: @@ -271,6 +282,9 @@ namespace ts.BreakpointResolver { case SyntaxKind.FinallyKeyword: return spanInNextNode(node); + case SyntaxKind.OfKeyword: + return spanInOfKeyword(node); + default: // If this is name of property assignment, set breakpoint in the initializer if (node.parent.kind === SyntaxKind.PropertyAssignment && (node.parent).name === node) { @@ -317,18 +331,20 @@ namespace ts.BreakpointResolver { function spanInVariableDeclaration(variableDeclaration: VariableDeclaration): TextSpan { // If declaration of for in statement, just set the span in parent - if (variableDeclaration.parent.parent.kind === SyntaxKind.ForInStatement || - variableDeclaration.parent.parent.kind === SyntaxKind.ForOfStatement) { + if (variableDeclaration.parent.parent.kind === SyntaxKind.ForInStatement) { return spanInNode(variableDeclaration.parent.parent); } - + // If this is a destructuring pattern set breakpoint in binding pattern if (isBindingPattern(variableDeclaration.name)) { return spanInBindingPattern(variableDeclaration.name); } // Breakpoint is possible in variableDeclaration only if there is initialization - if (variableDeclaration.initializer || (variableDeclaration.flags & NodeFlags.Export)) { + // or its declaration from 'for of' + if (variableDeclaration.initializer || + (variableDeclaration.flags & NodeFlags.Export) || + variableDeclaration.parent.parent.kind === SyntaxKind.ForOfStatement) { return textSpanFromVariableDeclaration(variableDeclaration); } @@ -410,11 +426,11 @@ namespace ts.BreakpointResolver { case SyntaxKind.WhileStatement: case SyntaxKind.IfStatement: case SyntaxKind.ForInStatement: - case SyntaxKind.ForOfStatement: return spanInNodeIfStartsOnSameLine(block.parent, block.statements[0]); // Set span on previous token if it starts on same line otherwise on the first statement of the block case SyntaxKind.ForStatement: + case SyntaxKind.ForOfStatement: return spanInNodeIfStartsOnSameLine(findPrecedingToken(block.pos, sourceFile, block.parent), block.statements[0]); } @@ -422,17 +438,23 @@ namespace ts.BreakpointResolver { return spanInNode(block.statements[0]); } + function spanInInitializerOfForLike(forLikeStaement: ForStatement | ForOfStatement | ForInStatement): TextSpan { + if (forLikeStaement.initializer.kind === SyntaxKind.VariableDeclarationList) { + // declaration list, set breakpoint in first declaration + let variableDeclarationList = forLikeStaement.initializer; + if (variableDeclarationList.declarations.length > 0) { + return spanInNode(variableDeclarationList.declarations[0]); + } + } + else { + // Expression - set breakpoint in it + return spanInNode(forLikeStaement.initializer); + } + } + function spanInForStatement(forStatement: ForStatement): TextSpan { if (forStatement.initializer) { - if (forStatement.initializer.kind === SyntaxKind.VariableDeclarationList) { - let variableDeclarationList = forStatement.initializer; - if (variableDeclarationList.declarations.length > 0) { - return spanInNode(variableDeclarationList.declarations[0]); - } - } - else { - return spanInNode(forStatement.initializer); - } + return spanInInitializerOfForLike(forStatement); } if (forStatement.condition) { @@ -560,6 +582,7 @@ namespace ts.BreakpointResolver { case SyntaxKind.WhileStatement: case SyntaxKind.DoStatement: case SyntaxKind.ForStatement: + case SyntaxKind.ForOfStatement: return spanInPreviousNode(node); // Default to parent node @@ -590,7 +613,17 @@ namespace ts.BreakpointResolver { function spanInWhileKeyword(node: Node): TextSpan { if (node.parent.kind === SyntaxKind.DoStatement) { // Set span on while expression - return textSpan(node, findNextToken((node.parent).expression, node.parent)); + return textSpanEndingAtNextToken(node, (node.parent).expression); + } + + // Default to parent node + return spanInNode(node.parent); + } + + function spanInOfKeyword(node: Node): TextSpan { + if (node.parent.kind === SyntaxKind.ForOfStatement) { + // set using next token + return spanInNextNode(node); } // Default to parent node diff --git a/tests/baselines/reference/bpSpanDestructuringForOfArrayBindingPattern.baseline b/tests/baselines/reference/bpSpanDestructuringForOfArrayBindingPattern.baseline index ea915b80e6a..2d0cbda5d8d 100644 --- a/tests/baselines/reference/bpSpanDestructuringForOfArrayBindingPattern.baseline +++ b/tests/baselines/reference/bpSpanDestructuringForOfArrayBindingPattern.baseline @@ -93,19 +93,14 @@ -------------------------------- 18 >for (let [, nameA] of robots) { - ~~~~~~~~ => Pos: (547 to 554) SpanInfo: {"start":547,"length":29} - >for (let [, nameA] of robots) - >:=> (line 18, col 0) to (line 18, col 29) -18 >for (let [, nameA] of robots) { - - ~~~~~~~~~~ => Pos: (555 to 564) SpanInfo: {"start":559,"length":5} + ~~~~~~~~~~~~~~~~~~ => Pos: (547 to 564) SpanInfo: {"start":559,"length":5} >nameA >:=> (line 18, col 12) to (line 18, col 17) 18 >for (let [, nameA] of robots) { - ~~~~~~~~~~~~~~ => Pos: (565 to 578) SpanInfo: {"start":547,"length":29} - >for (let [, nameA] of robots) - >:=> (line 18, col 0) to (line 18, col 29) + ~~~~~~~~~~~~~~ => Pos: (565 to 578) SpanInfo: {"start":569,"length":6} + >robots + >:=> (line 18, col 22) to (line 18, col 28) -------------------------------- 19 > console.log(nameA); @@ -121,29 +116,14 @@ -------------------------------- 21 >for (let [, nameA] of getRobots()) { - ~~~~~~~~ => Pos: (605 to 612) SpanInfo: {"start":605,"length":34} - >for (let [, nameA] of getRobots()) - >:=> (line 21, col 0) to (line 21, col 34) -21 >for (let [, nameA] of getRobots()) { - - ~~~~~~~~~~ => Pos: (613 to 622) SpanInfo: {"start":617,"length":5} + ~~~~~~~~~~~~~~~~~~ => Pos: (605 to 622) SpanInfo: {"start":617,"length":5} >nameA >:=> (line 21, col 12) to (line 21, col 17) 21 >for (let [, nameA] of getRobots()) { - ~~~ => Pos: (623 to 625) SpanInfo: {"start":605,"length":34} - >for (let [, nameA] of getRobots()) - >:=> (line 21, col 0) to (line 21, col 34) -21 >for (let [, nameA] of getRobots()) { - - ~~~~~~~~~~~~ => Pos: (626 to 637) SpanInfo: {"start":627,"length":11} + ~~~~~~~~~~~~~~~~~~~ => Pos: (623 to 641) SpanInfo: {"start":627,"length":11} >getRobots() >:=> (line 21, col 22) to (line 21, col 33) -21 >for (let [, nameA] of getRobots()) { - - ~~~~ => Pos: (638 to 641) SpanInfo: {"start":605,"length":34} - >for (let [, nameA] of getRobots()) - >:=> (line 21, col 0) to (line 21, col 34) -------------------------------- 22 > console.log(nameA); @@ -159,19 +139,14 @@ -------------------------------- 24 >for (let [, nameA] of [robotA, robotB]) { - ~~~~~~~~ => Pos: (668 to 675) SpanInfo: {"start":668,"length":39} - >for (let [, nameA] of [robotA, robotB]) - >:=> (line 24, col 0) to (line 24, col 39) -24 >for (let [, nameA] of [robotA, robotB]) { - - ~~~~~~~~~~ => Pos: (676 to 685) SpanInfo: {"start":680,"length":5} + ~~~~~~~~~~~~~~~~~~ => Pos: (668 to 685) SpanInfo: {"start":680,"length":5} >nameA >:=> (line 24, col 12) to (line 24, col 17) 24 >for (let [, nameA] of [robotA, robotB]) { - ~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (686 to 709) SpanInfo: {"start":668,"length":39} - >for (let [, nameA] of [robotA, robotB]) - >:=> (line 24, col 0) to (line 24, col 39) + ~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (686 to 709) SpanInfo: {"start":690,"length":16} + >[robotA, robotB] + >:=> (line 24, col 22) to (line 24, col 38) -------------------------------- 25 > console.log(nameA); @@ -187,12 +162,7 @@ -------------------------------- 27 >for (let [, [primarySkillA, secondarySkillA]] of multiRobots) { - ~~~~~~~~ => Pos: (736 to 743) SpanInfo: {"start":736,"length":61} - >for (let [, [primarySkillA, secondarySkillA]] of multiRobots) - >:=> (line 27, col 0) to (line 27, col 61) -27 >for (let [, [primarySkillA, secondarySkillA]] of multiRobots) { - - ~~~ => Pos: (744 to 746) SpanInfo: {"start":748,"length":32} + ~~~~~~~~~~~ => Pos: (736 to 746) SpanInfo: {"start":748,"length":32} >[primarySkillA, secondarySkillA] >:=> (line 27, col 12) to (line 27, col 44) 27 >for (let [, [primarySkillA, secondarySkillA]] of multiRobots) { @@ -212,9 +182,9 @@ >:=> (line 27, col 12) to (line 27, col 44) 27 >for (let [, [primarySkillA, secondarySkillA]] of multiRobots) { - ~~~~~~~~~~~~~~~~~~~=> Pos: (781 to 799) SpanInfo: {"start":736,"length":61} - >for (let [, [primarySkillA, secondarySkillA]] of multiRobots) - >:=> (line 27, col 0) to (line 27, col 61) + ~~~~~~~~~~~~~~~~~~~=> Pos: (781 to 799) SpanInfo: {"start":785,"length":11} + >multiRobots + >:=> (line 27, col 49) to (line 27, col 60) -------------------------------- 28 > console.log(primarySkillA); @@ -230,12 +200,7 @@ -------------------------------- 30 >for (let [, [primarySkillA, secondarySkillA]] of getMultiRobots()) { - ~~~~~~~~ => Pos: (834 to 841) SpanInfo: {"start":834,"length":66} - >for (let [, [primarySkillA, secondarySkillA]] of getMultiRobots()) - >:=> (line 30, col 0) to (line 30, col 66) -30 >for (let [, [primarySkillA, secondarySkillA]] of getMultiRobots()) { - - ~~~ => Pos: (842 to 844) SpanInfo: {"start":846,"length":32} + ~~~~~~~~~~~ => Pos: (834 to 844) SpanInfo: {"start":846,"length":32} >[primarySkillA, secondarySkillA] >:=> (line 30, col 12) to (line 30, col 44) 30 >for (let [, [primarySkillA, secondarySkillA]] of getMultiRobots()) { @@ -255,19 +220,9 @@ >:=> (line 30, col 12) to (line 30, col 44) 30 >for (let [, [primarySkillA, secondarySkillA]] of getMultiRobots()) { - ~~~=> Pos: (879 to 881) SpanInfo: {"start":834,"length":66} - >for (let [, [primarySkillA, secondarySkillA]] of getMultiRobots()) - >:=> (line 30, col 0) to (line 30, col 66) -30 >for (let [, [primarySkillA, secondarySkillA]] of getMultiRobots()) { - - ~~~~~~~~~~~~~~~~~=> Pos: (882 to 898) SpanInfo: {"start":883,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (879 to 902) SpanInfo: {"start":883,"length":16} >getMultiRobots() >:=> (line 30, col 49) to (line 30, col 65) -30 >for (let [, [primarySkillA, secondarySkillA]] of getMultiRobots()) { - - ~~~~=> Pos: (899 to 902) SpanInfo: {"start":834,"length":66} - >for (let [, [primarySkillA, secondarySkillA]] of getMultiRobots()) - >:=> (line 30, col 0) to (line 30, col 66) -------------------------------- 31 > console.log(primarySkillA); @@ -283,12 +238,7 @@ -------------------------------- 33 >for (let [, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) { - ~~~~~~~~ => Pos: (937 to 944) SpanInfo: {"start":937,"length":76} - >for (let [, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) - >:=> (line 33, col 0) to (line 33, col 76) -33 >for (let [, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) { - - ~~~ => Pos: (945 to 947) SpanInfo: {"start":949,"length":32} + ~~~~~~~~~~~ => Pos: (937 to 947) SpanInfo: {"start":949,"length":32} >[primarySkillA, secondarySkillA] >:=> (line 33, col 12) to (line 33, col 44) 33 >for (let [, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) { @@ -308,9 +258,9 @@ >:=> (line 33, col 12) to (line 33, col 44) 33 >for (let [, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (982 to 1015) SpanInfo: {"start":937,"length":76} - >for (let [, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) - >:=> (line 33, col 0) to (line 33, col 76) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (982 to 1015) SpanInfo: {"start":986,"length":26} + >[multiRobotA, multiRobotB] + >:=> (line 33, col 49) to (line 33, col 75) -------------------------------- 34 > console.log(primarySkillA); @@ -326,19 +276,14 @@ -------------------------------- 36 >for (let [numberB] of robots) { - ~~~~~~~~ => Pos: (1050 to 1057) SpanInfo: {"start":1050,"length":29} - >for (let [numberB] of robots) - >:=> (line 36, col 0) to (line 36, col 29) -36 >for (let [numberB] of robots) { - - ~~~~~~~~~~ => Pos: (1058 to 1067) SpanInfo: {"start":1060,"length":7} + ~~~~~~~~~~~~~~~~~~ => Pos: (1050 to 1067) SpanInfo: {"start":1060,"length":7} >numberB >:=> (line 36, col 10) to (line 36, col 17) 36 >for (let [numberB] of robots) { - ~~~~~~~~~~~~~~ => Pos: (1068 to 1081) SpanInfo: {"start":1050,"length":29} - >for (let [numberB] of robots) - >:=> (line 36, col 0) to (line 36, col 29) + ~~~~~~~~~~~~~~ => Pos: (1068 to 1081) SpanInfo: {"start":1072,"length":6} + >robots + >:=> (line 36, col 22) to (line 36, col 28) -------------------------------- 37 > console.log(numberB); @@ -354,29 +299,14 @@ -------------------------------- 39 >for (let [numberB] of getRobots()) { - ~~~~~~~~ => Pos: (1110 to 1117) SpanInfo: {"start":1110,"length":34} - >for (let [numberB] of getRobots()) - >:=> (line 39, col 0) to (line 39, col 34) -39 >for (let [numberB] of getRobots()) { - - ~~~~~~~~~~ => Pos: (1118 to 1127) SpanInfo: {"start":1120,"length":7} + ~~~~~~~~~~~~~~~~~~ => Pos: (1110 to 1127) SpanInfo: {"start":1120,"length":7} >numberB >:=> (line 39, col 10) to (line 39, col 17) 39 >for (let [numberB] of getRobots()) { - ~~~ => Pos: (1128 to 1130) SpanInfo: {"start":1110,"length":34} - >for (let [numberB] of getRobots()) - >:=> (line 39, col 0) to (line 39, col 34) -39 >for (let [numberB] of getRobots()) { - - ~~~~~~~~~~~~ => Pos: (1131 to 1142) SpanInfo: {"start":1132,"length":11} + ~~~~~~~~~~~~~~~~~~~ => Pos: (1128 to 1146) SpanInfo: {"start":1132,"length":11} >getRobots() >:=> (line 39, col 22) to (line 39, col 33) -39 >for (let [numberB] of getRobots()) { - - ~~~~ => Pos: (1143 to 1146) SpanInfo: {"start":1110,"length":34} - >for (let [numberB] of getRobots()) - >:=> (line 39, col 0) to (line 39, col 34) -------------------------------- 40 > console.log(numberB); @@ -392,19 +322,14 @@ -------------------------------- 42 >for (let [numberB] of [robotA, robotB]) { - ~~~~~~~~ => Pos: (1175 to 1182) SpanInfo: {"start":1175,"length":39} - >for (let [numberB] of [robotA, robotB]) - >:=> (line 42, col 0) to (line 42, col 39) -42 >for (let [numberB] of [robotA, robotB]) { - - ~~~~~~~~~~ => Pos: (1183 to 1192) SpanInfo: {"start":1185,"length":7} + ~~~~~~~~~~~~~~~~~~ => Pos: (1175 to 1192) SpanInfo: {"start":1185,"length":7} >numberB >:=> (line 42, col 10) to (line 42, col 17) 42 >for (let [numberB] of [robotA, robotB]) { - ~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1193 to 1216) SpanInfo: {"start":1175,"length":39} - >for (let [numberB] of [robotA, robotB]) - >:=> (line 42, col 0) to (line 42, col 39) + ~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1193 to 1216) SpanInfo: {"start":1197,"length":16} + >[robotA, robotB] + >:=> (line 42, col 22) to (line 42, col 38) -------------------------------- 43 > console.log(numberB); @@ -420,19 +345,14 @@ -------------------------------- 45 >for (let [nameB] of multiRobots) { - ~~~~~~~~ => Pos: (1245 to 1252) SpanInfo: {"start":1245,"length":32} - >for (let [nameB] of multiRobots) - >:=> (line 45, col 0) to (line 45, col 32) -45 >for (let [nameB] of multiRobots) { - - ~~~~~~~~ => Pos: (1253 to 1260) SpanInfo: {"start":1255,"length":5} + ~~~~~~~~~~~~~~~~ => Pos: (1245 to 1260) SpanInfo: {"start":1255,"length":5} >nameB >:=> (line 45, col 10) to (line 45, col 15) 45 >for (let [nameB] of multiRobots) { - ~~~~~~~~~~~~~~~~~~~ => Pos: (1261 to 1279) SpanInfo: {"start":1245,"length":32} - >for (let [nameB] of multiRobots) - >:=> (line 45, col 0) to (line 45, col 32) + ~~~~~~~~~~~~~~~~~~~ => Pos: (1261 to 1279) SpanInfo: {"start":1265,"length":11} + >multiRobots + >:=> (line 45, col 20) to (line 45, col 31) -------------------------------- 46 > console.log(nameB); @@ -448,29 +368,14 @@ -------------------------------- 48 >for (let [nameB] of getMultiRobots()) { - ~~~~~~~~ => Pos: (1306 to 1313) SpanInfo: {"start":1306,"length":37} - >for (let [nameB] of getMultiRobots()) - >:=> (line 48, col 0) to (line 48, col 37) -48 >for (let [nameB] of getMultiRobots()) { - - ~~~~~~~~ => Pos: (1314 to 1321) SpanInfo: {"start":1316,"length":5} + ~~~~~~~~~~~~~~~~ => Pos: (1306 to 1321) SpanInfo: {"start":1316,"length":5} >nameB >:=> (line 48, col 10) to (line 48, col 15) 48 >for (let [nameB] of getMultiRobots()) { - ~~~ => Pos: (1322 to 1324) SpanInfo: {"start":1306,"length":37} - >for (let [nameB] of getMultiRobots()) - >:=> (line 48, col 0) to (line 48, col 37) -48 >for (let [nameB] of getMultiRobots()) { - - ~~~~~~~~~~~~~~~~~ => Pos: (1325 to 1341) SpanInfo: {"start":1326,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1322 to 1345) SpanInfo: {"start":1326,"length":16} >getMultiRobots() >:=> (line 48, col 20) to (line 48, col 36) -48 >for (let [nameB] of getMultiRobots()) { - - ~~~~ => Pos: (1342 to 1345) SpanInfo: {"start":1306,"length":37} - >for (let [nameB] of getMultiRobots()) - >:=> (line 48, col 0) to (line 48, col 37) -------------------------------- 49 > console.log(nameB); @@ -486,19 +391,14 @@ -------------------------------- 51 >for (let [nameB] of [multiRobotA, multiRobotB]) { - ~~~~~~~~ => Pos: (1372 to 1379) SpanInfo: {"start":1372,"length":47} - >for (let [nameB] of [multiRobotA, multiRobotB]) - >:=> (line 51, col 0) to (line 51, col 47) -51 >for (let [nameB] of [multiRobotA, multiRobotB]) { - - ~~~~~~~~ => Pos: (1380 to 1387) SpanInfo: {"start":1382,"length":5} + ~~~~~~~~~~~~~~~~ => Pos: (1372 to 1387) SpanInfo: {"start":1382,"length":5} >nameB >:=> (line 51, col 10) to (line 51, col 15) 51 >for (let [nameB] of [multiRobotA, multiRobotB]) { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1388 to 1421) SpanInfo: {"start":1372,"length":47} - >for (let [nameB] of [multiRobotA, multiRobotB]) - >:=> (line 51, col 0) to (line 51, col 47) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1388 to 1421) SpanInfo: {"start":1392,"length":26} + >[multiRobotA, multiRobotB] + >:=> (line 51, col 20) to (line 51, col 46) -------------------------------- 52 > console.log(nameB); @@ -514,12 +414,7 @@ -------------------------------- 54 >for (let [numberA2, nameA2, skillA2] of robots) { - ~~~~~~~~ => Pos: (1448 to 1455) SpanInfo: {"start":1448,"length":47} - >for (let [numberA2, nameA2, skillA2] of robots) - >:=> (line 54, col 0) to (line 54, col 47) -54 >for (let [numberA2, nameA2, skillA2] of robots) { - - ~~~~~~~~~~~ => Pos: (1456 to 1466) SpanInfo: {"start":1458,"length":8} + ~~~~~~~~~~~~~~~~~~~ => Pos: (1448 to 1466) SpanInfo: {"start":1458,"length":8} >numberA2 >:=> (line 54, col 10) to (line 54, col 18) 54 >for (let [numberA2, nameA2, skillA2] of robots) { @@ -534,9 +429,9 @@ >:=> (line 54, col 28) to (line 54, col 35) 54 >for (let [numberA2, nameA2, skillA2] of robots) { - ~~~~~~~~~~~~~~=> Pos: (1484 to 1497) SpanInfo: {"start":1448,"length":47} - >for (let [numberA2, nameA2, skillA2] of robots) - >:=> (line 54, col 0) to (line 54, col 47) + ~~~~~~~~~~~~~~=> Pos: (1484 to 1497) SpanInfo: {"start":1488,"length":6} + >robots + >:=> (line 54, col 40) to (line 54, col 46) -------------------------------- 55 > console.log(nameA2); @@ -552,12 +447,7 @@ -------------------------------- 57 >for (let [numberA2, nameA2, skillA2] of getRobots()) { - ~~~~~~~~ => Pos: (1525 to 1532) SpanInfo: {"start":1525,"length":52} - >for (let [numberA2, nameA2, skillA2] of getRobots()) - >:=> (line 57, col 0) to (line 57, col 52) -57 >for (let [numberA2, nameA2, skillA2] of getRobots()) { - - ~~~~~~~~~~~ => Pos: (1533 to 1543) SpanInfo: {"start":1535,"length":8} + ~~~~~~~~~~~~~~~~~~~ => Pos: (1525 to 1543) SpanInfo: {"start":1535,"length":8} >numberA2 >:=> (line 57, col 10) to (line 57, col 18) 57 >for (let [numberA2, nameA2, skillA2] of getRobots()) { @@ -572,19 +462,9 @@ >:=> (line 57, col 28) to (line 57, col 35) 57 >for (let [numberA2, nameA2, skillA2] of getRobots()) { - ~~~ => Pos: (1561 to 1563) SpanInfo: {"start":1525,"length":52} - >for (let [numberA2, nameA2, skillA2] of getRobots()) - >:=> (line 57, col 0) to (line 57, col 52) -57 >for (let [numberA2, nameA2, skillA2] of getRobots()) { - - ~~~~~~~~~~~~=> Pos: (1564 to 1575) SpanInfo: {"start":1565,"length":11} + ~~~~~~~~~~~~~~~~~~~=> Pos: (1561 to 1579) SpanInfo: {"start":1565,"length":11} >getRobots() >:=> (line 57, col 40) to (line 57, col 51) -57 >for (let [numberA2, nameA2, skillA2] of getRobots()) { - - ~~~~=> Pos: (1576 to 1579) SpanInfo: {"start":1525,"length":52} - >for (let [numberA2, nameA2, skillA2] of getRobots()) - >:=> (line 57, col 0) to (line 57, col 52) -------------------------------- 58 > console.log(nameA2); @@ -600,12 +480,7 @@ -------------------------------- 60 >for (let [numberA2, nameA2, skillA2] of [robotA, robotB]) { - ~~~~~~~~ => Pos: (1607 to 1614) SpanInfo: {"start":1607,"length":57} - >for (let [numberA2, nameA2, skillA2] of [robotA, robotB]) - >:=> (line 60, col 0) to (line 60, col 57) -60 >for (let [numberA2, nameA2, skillA2] of [robotA, robotB]) { - - ~~~~~~~~~~~ => Pos: (1615 to 1625) SpanInfo: {"start":1617,"length":8} + ~~~~~~~~~~~~~~~~~~~ => Pos: (1607 to 1625) SpanInfo: {"start":1617,"length":8} >numberA2 >:=> (line 60, col 10) to (line 60, col 18) 60 >for (let [numberA2, nameA2, skillA2] of [robotA, robotB]) { @@ -620,9 +495,9 @@ >:=> (line 60, col 28) to (line 60, col 35) 60 >for (let [numberA2, nameA2, skillA2] of [robotA, robotB]) { - ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1643 to 1666) SpanInfo: {"start":1607,"length":57} - >for (let [numberA2, nameA2, skillA2] of [robotA, robotB]) - >:=> (line 60, col 0) to (line 60, col 57) + ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1643 to 1666) SpanInfo: {"start":1647,"length":16} + >[robotA, robotB] + >:=> (line 60, col 40) to (line 60, col 56) -------------------------------- 61 > console.log(nameA2); @@ -638,12 +513,7 @@ -------------------------------- 63 >for (let [nameMA, [primarySkillA, secondarySkillA]] of multiRobots) { - ~~~~~~~~ => Pos: (1694 to 1701) SpanInfo: {"start":1694,"length":67} - >for (let [nameMA, [primarySkillA, secondarySkillA]] of multiRobots) - >:=> (line 63, col 0) to (line 63, col 67) -63 >for (let [nameMA, [primarySkillA, secondarySkillA]] of multiRobots) { - - ~~~~~~~~~ => Pos: (1702 to 1710) SpanInfo: {"start":1704,"length":6} + ~~~~~~~~~~~~~~~~~ => Pos: (1694 to 1710) SpanInfo: {"start":1704,"length":6} >nameMA >:=> (line 63, col 10) to (line 63, col 16) 63 >for (let [nameMA, [primarySkillA, secondarySkillA]] of multiRobots) { @@ -663,9 +533,9 @@ >:=> (line 63, col 18) to (line 63, col 50) 63 >for (let [nameMA, [primarySkillA, secondarySkillA]] of multiRobots) { - ~~~~~~~~~~~~~~~~~~~=> Pos: (1745 to 1763) SpanInfo: {"start":1694,"length":67} - >for (let [nameMA, [primarySkillA, secondarySkillA]] of multiRobots) - >:=> (line 63, col 0) to (line 63, col 67) + ~~~~~~~~~~~~~~~~~~~=> Pos: (1745 to 1763) SpanInfo: {"start":1749,"length":11} + >multiRobots + >:=> (line 63, col 55) to (line 63, col 66) -------------------------------- 64 > console.log(nameMA); @@ -681,12 +551,7 @@ -------------------------------- 66 >for (let [nameMA, [primarySkillA, secondarySkillA]] of getMultiRobots()) { - ~~~~~~~~ => Pos: (1791 to 1798) SpanInfo: {"start":1791,"length":72} - >for (let [nameMA, [primarySkillA, secondarySkillA]] of getMultiRobots()) - >:=> (line 66, col 0) to (line 66, col 72) -66 >for (let [nameMA, [primarySkillA, secondarySkillA]] of getMultiRobots()) { - - ~~~~~~~~~ => Pos: (1799 to 1807) SpanInfo: {"start":1801,"length":6} + ~~~~~~~~~~~~~~~~~ => Pos: (1791 to 1807) SpanInfo: {"start":1801,"length":6} >nameMA >:=> (line 66, col 10) to (line 66, col 16) 66 >for (let [nameMA, [primarySkillA, secondarySkillA]] of getMultiRobots()) { @@ -706,19 +571,9 @@ >:=> (line 66, col 18) to (line 66, col 50) 66 >for (let [nameMA, [primarySkillA, secondarySkillA]] of getMultiRobots()) { - ~~~=> Pos: (1842 to 1844) SpanInfo: {"start":1791,"length":72} - >for (let [nameMA, [primarySkillA, secondarySkillA]] of getMultiRobots()) - >:=> (line 66, col 0) to (line 66, col 72) -66 >for (let [nameMA, [primarySkillA, secondarySkillA]] of getMultiRobots()) { - - ~~~~~~~~~~~~~~~~~=> Pos: (1845 to 1861) SpanInfo: {"start":1846,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1842 to 1865) SpanInfo: {"start":1846,"length":16} >getMultiRobots() >:=> (line 66, col 55) to (line 66, col 71) -66 >for (let [nameMA, [primarySkillA, secondarySkillA]] of getMultiRobots()) { - - ~~~~=> Pos: (1862 to 1865) SpanInfo: {"start":1791,"length":72} - >for (let [nameMA, [primarySkillA, secondarySkillA]] of getMultiRobots()) - >:=> (line 66, col 0) to (line 66, col 72) -------------------------------- 67 > console.log(nameMA); @@ -734,12 +589,7 @@ -------------------------------- 69 >for (let [nameMA, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) { - ~~~~~~~~ => Pos: (1893 to 1900) SpanInfo: {"start":1893,"length":82} - >for (let [nameMA, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) - >:=> (line 69, col 0) to (line 69, col 82) -69 >for (let [nameMA, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) { - - ~~~~~~~~~ => Pos: (1901 to 1909) SpanInfo: {"start":1903,"length":6} + ~~~~~~~~~~~~~~~~~ => Pos: (1893 to 1909) SpanInfo: {"start":1903,"length":6} >nameMA >:=> (line 69, col 10) to (line 69, col 16) 69 >for (let [nameMA, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) { @@ -759,9 +609,9 @@ >:=> (line 69, col 18) to (line 69, col 50) 69 >for (let [nameMA, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1944 to 1977) SpanInfo: {"start":1893,"length":82} - >for (let [nameMA, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) - >:=> (line 69, col 0) to (line 69, col 82) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1944 to 1977) SpanInfo: {"start":1948,"length":26} + >[multiRobotA, multiRobotB] + >:=> (line 69, col 55) to (line 69, col 81) -------------------------------- 70 > console.log(nameMA); @@ -777,12 +627,7 @@ -------------------------------- 72 >for (let [numberA3, ...robotAInfo] of robots) { - ~~~~~~~~ => Pos: (2005 to 2012) SpanInfo: {"start":2005,"length":45} - >for (let [numberA3, ...robotAInfo] of robots) - >:=> (line 72, col 0) to (line 72, col 45) -72 >for (let [numberA3, ...robotAInfo] of robots) { - - ~~~~~~~~~~~ => Pos: (2013 to 2023) SpanInfo: {"start":2015,"length":8} + ~~~~~~~~~~~~~~~~~~~ => Pos: (2005 to 2023) SpanInfo: {"start":2015,"length":8} >numberA3 >:=> (line 72, col 10) to (line 72, col 18) 72 >for (let [numberA3, ...robotAInfo] of robots) { @@ -792,9 +637,9 @@ >:=> (line 72, col 20) to (line 72, col 33) 72 >for (let [numberA3, ...robotAInfo] of robots) { - ~~~~~~~~~~~~~~=> Pos: (2039 to 2052) SpanInfo: {"start":2005,"length":45} - >for (let [numberA3, ...robotAInfo] of robots) - >:=> (line 72, col 0) to (line 72, col 45) + ~~~~~~~~~~~~~~=> Pos: (2039 to 2052) SpanInfo: {"start":2043,"length":6} + >robots + >:=> (line 72, col 38) to (line 72, col 44) -------------------------------- 73 > console.log(numberA3); @@ -810,12 +655,7 @@ -------------------------------- 75 >for (let [numberA3, ...robotAInfo] of getRobots()) { - ~~~~~~~~ => Pos: (2082 to 2089) SpanInfo: {"start":2082,"length":50} - >for (let [numberA3, ...robotAInfo] of getRobots()) - >:=> (line 75, col 0) to (line 75, col 50) -75 >for (let [numberA3, ...robotAInfo] of getRobots()) { - - ~~~~~~~~~~~ => Pos: (2090 to 2100) SpanInfo: {"start":2092,"length":8} + ~~~~~~~~~~~~~~~~~~~ => Pos: (2082 to 2100) SpanInfo: {"start":2092,"length":8} >numberA3 >:=> (line 75, col 10) to (line 75, col 18) 75 >for (let [numberA3, ...robotAInfo] of getRobots()) { @@ -825,19 +665,9 @@ >:=> (line 75, col 20) to (line 75, col 33) 75 >for (let [numberA3, ...robotAInfo] of getRobots()) { - ~~~ => Pos: (2116 to 2118) SpanInfo: {"start":2082,"length":50} - >for (let [numberA3, ...robotAInfo] of getRobots()) - >:=> (line 75, col 0) to (line 75, col 50) -75 >for (let [numberA3, ...robotAInfo] of getRobots()) { - - ~~~~~~~~~~~~=> Pos: (2119 to 2130) SpanInfo: {"start":2120,"length":11} + ~~~~~~~~~~~~~~~~~~~=> Pos: (2116 to 2134) SpanInfo: {"start":2120,"length":11} >getRobots() >:=> (line 75, col 38) to (line 75, col 49) -75 >for (let [numberA3, ...robotAInfo] of getRobots()) { - - ~~~~=> Pos: (2131 to 2134) SpanInfo: {"start":2082,"length":50} - >for (let [numberA3, ...robotAInfo] of getRobots()) - >:=> (line 75, col 0) to (line 75, col 50) -------------------------------- 76 > console.log(numberA3); @@ -853,12 +683,7 @@ -------------------------------- 78 >for (let [numberA3, ...robotAInfo] of [robotA, robotB]) { - ~~~~~~~~ => Pos: (2164 to 2171) SpanInfo: {"start":2164,"length":55} - >for (let [numberA3, ...robotAInfo] of [robotA, robotB]) - >:=> (line 78, col 0) to (line 78, col 55) -78 >for (let [numberA3, ...robotAInfo] of [robotA, robotB]) { - - ~~~~~~~~~~~ => Pos: (2172 to 2182) SpanInfo: {"start":2174,"length":8} + ~~~~~~~~~~~~~~~~~~~ => Pos: (2164 to 2182) SpanInfo: {"start":2174,"length":8} >numberA3 >:=> (line 78, col 10) to (line 78, col 18) 78 >for (let [numberA3, ...robotAInfo] of [robotA, robotB]) { @@ -868,9 +693,9 @@ >:=> (line 78, col 20) to (line 78, col 33) 78 >for (let [numberA3, ...robotAInfo] of [robotA, robotB]) { - ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (2198 to 2221) SpanInfo: {"start":2164,"length":55} - >for (let [numberA3, ...robotAInfo] of [robotA, robotB]) - >:=> (line 78, col 0) to (line 78, col 55) + ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (2198 to 2221) SpanInfo: {"start":2202,"length":16} + >[robotA, robotB] + >:=> (line 78, col 38) to (line 78, col 54) -------------------------------- 79 > console.log(numberA3); @@ -886,19 +711,14 @@ -------------------------------- 81 >for (let [...multiRobotAInfo] of multiRobots) { - ~~~~~~~~ => Pos: (2251 to 2258) SpanInfo: {"start":2251,"length":45} - >for (let [...multiRobotAInfo] of multiRobots) - >:=> (line 81, col 0) to (line 81, col 45) -81 >for (let [...multiRobotAInfo] of multiRobots) { - - ~~~~~~~~~~~~~~~~~~~~~ => Pos: (2259 to 2279) SpanInfo: {"start":2261,"length":18} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (2251 to 2279) SpanInfo: {"start":2261,"length":18} >...multiRobotAInfo >:=> (line 81, col 10) to (line 81, col 28) 81 >for (let [...multiRobotAInfo] of multiRobots) { - ~~~~~~~~~~~~~~~~~~~=> Pos: (2280 to 2298) SpanInfo: {"start":2251,"length":45} - >for (let [...multiRobotAInfo] of multiRobots) - >:=> (line 81, col 0) to (line 81, col 45) + ~~~~~~~~~~~~~~~~~~~=> Pos: (2280 to 2298) SpanInfo: {"start":2284,"length":11} + >multiRobots + >:=> (line 81, col 33) to (line 81, col 44) -------------------------------- 82 > console.log(multiRobotAInfo); @@ -914,29 +734,14 @@ -------------------------------- 84 >for (let [...multiRobotAInfo] of getMultiRobots()) { - ~~~~~~~~ => Pos: (2335 to 2342) SpanInfo: {"start":2335,"length":50} - >for (let [...multiRobotAInfo] of getMultiRobots()) - >:=> (line 84, col 0) to (line 84, col 50) -84 >for (let [...multiRobotAInfo] of getMultiRobots()) { - - ~~~~~~~~~~~~~~~~~~~~~ => Pos: (2343 to 2363) SpanInfo: {"start":2345,"length":18} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (2335 to 2363) SpanInfo: {"start":2345,"length":18} >...multiRobotAInfo >:=> (line 84, col 10) to (line 84, col 28) 84 >for (let [...multiRobotAInfo] of getMultiRobots()) { - ~~~ => Pos: (2364 to 2366) SpanInfo: {"start":2335,"length":50} - >for (let [...multiRobotAInfo] of getMultiRobots()) - >:=> (line 84, col 0) to (line 84, col 50) -84 >for (let [...multiRobotAInfo] of getMultiRobots()) { - - ~~~~~~~~~~~~~~~~~=> Pos: (2367 to 2383) SpanInfo: {"start":2368,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (2364 to 2387) SpanInfo: {"start":2368,"length":16} >getMultiRobots() >:=> (line 84, col 33) to (line 84, col 49) -84 >for (let [...multiRobotAInfo] of getMultiRobots()) { - - ~~~~=> Pos: (2384 to 2387) SpanInfo: {"start":2335,"length":50} - >for (let [...multiRobotAInfo] of getMultiRobots()) - >:=> (line 84, col 0) to (line 84, col 50) -------------------------------- 85 > console.log(multiRobotAInfo); @@ -952,19 +757,14 @@ -------------------------------- 87 >for (let [...multiRobotAInfo] of [multiRobotA, multiRobotB]) { - ~~~~~~~~ => Pos: (2424 to 2431) SpanInfo: {"start":2424,"length":60} - >for (let [...multiRobotAInfo] of [multiRobotA, multiRobotB]) - >:=> (line 87, col 0) to (line 87, col 60) -87 >for (let [...multiRobotAInfo] of [multiRobotA, multiRobotB]) { - - ~~~~~~~~~~~~~~~~~~~~~ => Pos: (2432 to 2452) SpanInfo: {"start":2434,"length":18} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (2424 to 2452) SpanInfo: {"start":2434,"length":18} >...multiRobotAInfo >:=> (line 87, col 10) to (line 87, col 28) 87 >for (let [...multiRobotAInfo] of [multiRobotA, multiRobotB]) { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (2453 to 2486) SpanInfo: {"start":2424,"length":60} - >for (let [...multiRobotAInfo] of [multiRobotA, multiRobotB]) - >:=> (line 87, col 0) to (line 87, col 60) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (2453 to 2486) SpanInfo: {"start":2457,"length":26} + >[multiRobotA, multiRobotB] + >:=> (line 87, col 33) to (line 87, col 59) -------------------------------- 88 > console.log(multiRobotAInfo); diff --git a/tests/baselines/reference/bpSpanDestructuringForOfArrayBindingPatternDefaultValues.baseline b/tests/baselines/reference/bpSpanDestructuringForOfArrayBindingPatternDefaultValues.baseline index a30ea914bf3..5dfc730003f 100644 --- a/tests/baselines/reference/bpSpanDestructuringForOfArrayBindingPatternDefaultValues.baseline +++ b/tests/baselines/reference/bpSpanDestructuringForOfArrayBindingPatternDefaultValues.baseline @@ -93,19 +93,14 @@ -------------------------------- 18 >for (let [, nameA = "noName"] of robots) { - ~~~~~~~~ => Pos: (547 to 554) SpanInfo: {"start":547,"length":40} - >for (let [, nameA = "noName"] of robots) - >:=> (line 18, col 0) to (line 18, col 40) -18 >for (let [, nameA = "noName"] of robots) { - - ~~~~~~~~~~~~~~~~~~~~~ => Pos: (555 to 575) SpanInfo: {"start":559,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (547 to 575) SpanInfo: {"start":559,"length":16} >nameA = "noName" >:=> (line 18, col 12) to (line 18, col 28) 18 >for (let [, nameA = "noName"] of robots) { - ~~~~~~~~~~~~~~ => Pos: (576 to 589) SpanInfo: {"start":547,"length":40} - >for (let [, nameA = "noName"] of robots) - >:=> (line 18, col 0) to (line 18, col 40) + ~~~~~~~~~~~~~~ => Pos: (576 to 589) SpanInfo: {"start":580,"length":6} + >robots + >:=> (line 18, col 33) to (line 18, col 39) -------------------------------- 19 > console.log(nameA); @@ -121,29 +116,14 @@ -------------------------------- 21 >for (let [, nameA = "noName"] of getRobots()) { - ~~~~~~~~ => Pos: (616 to 623) SpanInfo: {"start":616,"length":45} - >for (let [, nameA = "noName"] of getRobots()) - >:=> (line 21, col 0) to (line 21, col 45) -21 >for (let [, nameA = "noName"] of getRobots()) { - - ~~~~~~~~~~~~~~~~~~~~~ => Pos: (624 to 644) SpanInfo: {"start":628,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (616 to 644) SpanInfo: {"start":628,"length":16} >nameA = "noName" >:=> (line 21, col 12) to (line 21, col 28) 21 >for (let [, nameA = "noName"] of getRobots()) { - ~~~ => Pos: (645 to 647) SpanInfo: {"start":616,"length":45} - >for (let [, nameA = "noName"] of getRobots()) - >:=> (line 21, col 0) to (line 21, col 45) -21 >for (let [, nameA = "noName"] of getRobots()) { - - ~~~~~~~~~~~~ => Pos: (648 to 659) SpanInfo: {"start":649,"length":11} + ~~~~~~~~~~~~~~~~~~~=> Pos: (645 to 663) SpanInfo: {"start":649,"length":11} >getRobots() >:=> (line 21, col 33) to (line 21, col 44) -21 >for (let [, nameA = "noName"] of getRobots()) { - - ~~~~=> Pos: (660 to 663) SpanInfo: {"start":616,"length":45} - >for (let [, nameA = "noName"] of getRobots()) - >:=> (line 21, col 0) to (line 21, col 45) -------------------------------- 22 > console.log(nameA); @@ -159,19 +139,14 @@ -------------------------------- 24 >for (let [, nameA = "noName"] of [robotA, robotB]) { - ~~~~~~~~ => Pos: (690 to 697) SpanInfo: {"start":690,"length":50} - >for (let [, nameA = "noName"] of [robotA, robotB]) - >:=> (line 24, col 0) to (line 24, col 50) -24 >for (let [, nameA = "noName"] of [robotA, robotB]) { - - ~~~~~~~~~~~~~~~~~~~~~ => Pos: (698 to 718) SpanInfo: {"start":702,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (690 to 718) SpanInfo: {"start":702,"length":16} >nameA = "noName" >:=> (line 24, col 12) to (line 24, col 28) 24 >for (let [, nameA = "noName"] of [robotA, robotB]) { - ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (719 to 742) SpanInfo: {"start":690,"length":50} - >for (let [, nameA = "noName"] of [robotA, robotB]) - >:=> (line 24, col 0) to (line 24, col 50) + ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (719 to 742) SpanInfo: {"start":723,"length":16} + >[robotA, robotB] + >:=> (line 24, col 33) to (line 24, col 49) -------------------------------- 25 > console.log(nameA); @@ -187,15 +162,7 @@ -------------------------------- 27 >for (let [, [ - ~~~~~~~~ => Pos: (769 to 776) SpanInfo: {"start":769,"length":120} - >for (let [, [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - >] = ["skill1", "skill2"]] of multiRobots) - >:=> (line 27, col 0) to (line 30, col 41) -27 >for (let [, [ - - ~~~ => Pos: (777 to 779) SpanInfo: {"start":781,"length":91} + ~~~~~~~~~~~ => Pos: (769 to 779) SpanInfo: {"start":781,"length":91} >[ > primarySkillA = "primary", > secondarySkillA = "secondary" @@ -234,17 +201,9 @@ >:=> (line 27, col 12) to (line 30, col 24) 30 >] = ["skill1", "skill2"]] of multiRobots) { - ~~~~~~~~~~~~~~~~ => Pos: (873 to 888) SpanInfo: {"start":769,"length":120} - >for (let [, [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - >] = ["skill1", "skill2"]] of multiRobots) - >:=> (line 27, col 0) to (line 30, col 41) -30 >] = ["skill1", "skill2"]] of multiRobots) { - - ~~~ => Pos: (889 to 891) SpanInfo: {"start":896,"length":26} - >console.log(primarySkillA) - >:=> (line 31, col 4) to (line 31, col 30) + ~~~~~~~~~~~~~~~~~~~ => Pos: (873 to 891) SpanInfo: {"start":877,"length":11} + >multiRobots + >:=> (line 30, col 29) to (line 30, col 40) -------------------------------- 31 > console.log(primarySkillA); @@ -260,15 +219,7 @@ -------------------------------- 33 >for (let [, [ - ~~~~~~~~ => Pos: (926 to 933) SpanInfo: {"start":926,"length":125} - >for (let [, [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - >] = ["skill1", "skill2"]] of getMultiRobots()) - >:=> (line 33, col 0) to (line 36, col 46) -33 >for (let [, [ - - ~~~ => Pos: (934 to 936) SpanInfo: {"start":938,"length":91} + ~~~~~~~~~~~ => Pos: (926 to 936) SpanInfo: {"start":938,"length":91} >[ > primarySkillA = "primary", > secondarySkillA = "secondary" @@ -307,30 +258,9 @@ >:=> (line 33, col 12) to (line 36, col 24) 36 >] = ["skill1", "skill2"]] of getMultiRobots()) { - ~~~ => Pos: (1030 to 1032) SpanInfo: {"start":926,"length":125} - >for (let [, [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - >] = ["skill1", "skill2"]] of getMultiRobots()) - >:=> (line 33, col 0) to (line 36, col 46) -36 >] = ["skill1", "skill2"]] of getMultiRobots()) { - - ~~~~~~~~~~~~~~~~~ => Pos: (1033 to 1049) SpanInfo: {"start":1034,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1030 to 1053) SpanInfo: {"start":1034,"length":16} >getMultiRobots() >:=> (line 36, col 29) to (line 36, col 45) -36 >] = ["skill1", "skill2"]] of getMultiRobots()) { - - ~=> Pos: (1050 to 1050) SpanInfo: {"start":926,"length":125} - >for (let [, [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - >] = ["skill1", "skill2"]] of getMultiRobots()) - >:=> (line 33, col 0) to (line 36, col 46) -36 >] = ["skill1", "skill2"]] of getMultiRobots()) { - - ~~~=> Pos: (1051 to 1053) SpanInfo: {"start":1058,"length":26} - >console.log(primarySkillA) - >:=> (line 37, col 4) to (line 37, col 30) -------------------------------- 37 > console.log(primarySkillA); @@ -346,15 +276,7 @@ -------------------------------- 39 >for (let [, [ - ~~~~~~~~ => Pos: (1088 to 1095) SpanInfo: {"start":1088,"length":135} - >for (let [, [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - >] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) - >:=> (line 39, col 0) to (line 42, col 56) -39 >for (let [, [ - - ~~~ => Pos: (1096 to 1098) SpanInfo: {"start":1100,"length":91} + ~~~~~~~~~~~ => Pos: (1088 to 1098) SpanInfo: {"start":1100,"length":91} >[ > primarySkillA = "primary", > secondarySkillA = "secondary" @@ -393,17 +315,9 @@ >:=> (line 39, col 12) to (line 42, col 24) 42 >] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1192 to 1222) SpanInfo: {"start":1088,"length":135} - >for (let [, [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - >] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) - >:=> (line 39, col 0) to (line 42, col 56) -42 >] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) { - - ~~~=> Pos: (1223 to 1225) SpanInfo: {"start":1230,"length":26} - >console.log(primarySkillA) - >:=> (line 43, col 4) to (line 43, col 30) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1192 to 1225) SpanInfo: {"start":1196,"length":26} + >[multiRobotA, multiRobotB] + >:=> (line 42, col 29) to (line 42, col 55) -------------------------------- 43 > console.log(primarySkillA); @@ -419,19 +333,14 @@ -------------------------------- 45 >for (let [numberB = -1] of robots) { - ~~~~~~~~ => Pos: (1260 to 1267) SpanInfo: {"start":1260,"length":34} - >for (let [numberB = -1] of robots) - >:=> (line 45, col 0) to (line 45, col 34) -45 >for (let [numberB = -1] of robots) { - - ~~~~~~~~~~~~~~~ => Pos: (1268 to 1282) SpanInfo: {"start":1270,"length":12} + ~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1260 to 1282) SpanInfo: {"start":1270,"length":12} >numberB = -1 >:=> (line 45, col 10) to (line 45, col 22) 45 >for (let [numberB = -1] of robots) { - ~~~~~~~~~~~~~~ => Pos: (1283 to 1296) SpanInfo: {"start":1260,"length":34} - >for (let [numberB = -1] of robots) - >:=> (line 45, col 0) to (line 45, col 34) + ~~~~~~~~~~~~~~ => Pos: (1283 to 1296) SpanInfo: {"start":1287,"length":6} + >robots + >:=> (line 45, col 27) to (line 45, col 33) -------------------------------- 46 > console.log(numberB); @@ -447,29 +356,14 @@ -------------------------------- 48 >for (let [numberB = -1] of getRobots()) { - ~~~~~~~~ => Pos: (1325 to 1332) SpanInfo: {"start":1325,"length":39} - >for (let [numberB = -1] of getRobots()) - >:=> (line 48, col 0) to (line 48, col 39) -48 >for (let [numberB = -1] of getRobots()) { - - ~~~~~~~~~~~~~~~ => Pos: (1333 to 1347) SpanInfo: {"start":1335,"length":12} + ~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1325 to 1347) SpanInfo: {"start":1335,"length":12} >numberB = -1 >:=> (line 48, col 10) to (line 48, col 22) 48 >for (let [numberB = -1] of getRobots()) { - ~~~ => Pos: (1348 to 1350) SpanInfo: {"start":1325,"length":39} - >for (let [numberB = -1] of getRobots()) - >:=> (line 48, col 0) to (line 48, col 39) -48 >for (let [numberB = -1] of getRobots()) { - - ~~~~~~~~~~~~ => Pos: (1351 to 1362) SpanInfo: {"start":1352,"length":11} + ~~~~~~~~~~~~~~~~~~~ => Pos: (1348 to 1366) SpanInfo: {"start":1352,"length":11} >getRobots() >:=> (line 48, col 27) to (line 48, col 38) -48 >for (let [numberB = -1] of getRobots()) { - - ~~~~ => Pos: (1363 to 1366) SpanInfo: {"start":1325,"length":39} - >for (let [numberB = -1] of getRobots()) - >:=> (line 48, col 0) to (line 48, col 39) -------------------------------- 49 > console.log(numberB); @@ -485,19 +379,14 @@ -------------------------------- 51 >for (let [numberB = -1] of [robotA, robotB]) { - ~~~~~~~~ => Pos: (1395 to 1402) SpanInfo: {"start":1395,"length":44} - >for (let [numberB = -1] of [robotA, robotB]) - >:=> (line 51, col 0) to (line 51, col 44) -51 >for (let [numberB = -1] of [robotA, robotB]) { - - ~~~~~~~~~~~~~~~ => Pos: (1403 to 1417) SpanInfo: {"start":1405,"length":12} + ~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1395 to 1417) SpanInfo: {"start":1405,"length":12} >numberB = -1 >:=> (line 51, col 10) to (line 51, col 22) 51 >for (let [numberB = -1] of [robotA, robotB]) { - ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1418 to 1441) SpanInfo: {"start":1395,"length":44} - >for (let [numberB = -1] of [robotA, robotB]) - >:=> (line 51, col 0) to (line 51, col 44) + ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1418 to 1441) SpanInfo: {"start":1422,"length":16} + >[robotA, robotB] + >:=> (line 51, col 27) to (line 51, col 43) -------------------------------- 52 > console.log(numberB); @@ -513,19 +402,14 @@ -------------------------------- 54 >for (let [nameB = "noName"] of multiRobots) { - ~~~~~~~~ => Pos: (1470 to 1477) SpanInfo: {"start":1470,"length":43} - >for (let [nameB = "noName"] of multiRobots) - >:=> (line 54, col 0) to (line 54, col 43) -54 >for (let [nameB = "noName"] of multiRobots) { - - ~~~~~~~~~~~~~~~~~~~ => Pos: (1478 to 1496) SpanInfo: {"start":1480,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1470 to 1496) SpanInfo: {"start":1480,"length":16} >nameB = "noName" >:=> (line 54, col 10) to (line 54, col 26) 54 >for (let [nameB = "noName"] of multiRobots) { - ~~~~~~~~~~~~~~~~~~~=> Pos: (1497 to 1515) SpanInfo: {"start":1470,"length":43} - >for (let [nameB = "noName"] of multiRobots) - >:=> (line 54, col 0) to (line 54, col 43) + ~~~~~~~~~~~~~~~~~~~=> Pos: (1497 to 1515) SpanInfo: {"start":1501,"length":11} + >multiRobots + >:=> (line 54, col 31) to (line 54, col 42) -------------------------------- 55 > console.log(nameB); @@ -541,29 +425,14 @@ -------------------------------- 57 >for (let [nameB = "noName"] of getMultiRobots()) { - ~~~~~~~~ => Pos: (1542 to 1549) SpanInfo: {"start":1542,"length":48} - >for (let [nameB = "noName"] of getMultiRobots()) - >:=> (line 57, col 0) to (line 57, col 48) -57 >for (let [nameB = "noName"] of getMultiRobots()) { - - ~~~~~~~~~~~~~~~~~~~ => Pos: (1550 to 1568) SpanInfo: {"start":1552,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1542 to 1568) SpanInfo: {"start":1552,"length":16} >nameB = "noName" >:=> (line 57, col 10) to (line 57, col 26) 57 >for (let [nameB = "noName"] of getMultiRobots()) { - ~~~ => Pos: (1569 to 1571) SpanInfo: {"start":1542,"length":48} - >for (let [nameB = "noName"] of getMultiRobots()) - >:=> (line 57, col 0) to (line 57, col 48) -57 >for (let [nameB = "noName"] of getMultiRobots()) { - - ~~~~~~~~~~~~~~~~~=> Pos: (1572 to 1588) SpanInfo: {"start":1573,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1569 to 1592) SpanInfo: {"start":1573,"length":16} >getMultiRobots() >:=> (line 57, col 31) to (line 57, col 47) -57 >for (let [nameB = "noName"] of getMultiRobots()) { - - ~~~~=> Pos: (1589 to 1592) SpanInfo: {"start":1542,"length":48} - >for (let [nameB = "noName"] of getMultiRobots()) - >:=> (line 57, col 0) to (line 57, col 48) -------------------------------- 58 > console.log(nameB); @@ -579,19 +448,14 @@ -------------------------------- 60 >for (let [nameB = "noName"] of [multiRobotA, multiRobotB]) { - ~~~~~~~~ => Pos: (1619 to 1626) SpanInfo: {"start":1619,"length":58} - >for (let [nameB = "noName"] of [multiRobotA, multiRobotB]) - >:=> (line 60, col 0) to (line 60, col 58) -60 >for (let [nameB = "noName"] of [multiRobotA, multiRobotB]) { - - ~~~~~~~~~~~~~~~~~~~ => Pos: (1627 to 1645) SpanInfo: {"start":1629,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1619 to 1645) SpanInfo: {"start":1629,"length":16} >nameB = "noName" >:=> (line 60, col 10) to (line 60, col 26) 60 >for (let [nameB = "noName"] of [multiRobotA, multiRobotB]) { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1646 to 1679) SpanInfo: {"start":1619,"length":58} - >for (let [nameB = "noName"] of [multiRobotA, multiRobotB]) - >:=> (line 60, col 0) to (line 60, col 58) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1646 to 1679) SpanInfo: {"start":1650,"length":26} + >[multiRobotA, multiRobotB] + >:=> (line 60, col 31) to (line 60, col 57) -------------------------------- 61 > console.log(nameB); @@ -607,12 +471,7 @@ -------------------------------- 63 >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of robots) { - ~~~~~~~~ => Pos: (1706 to 1713) SpanInfo: {"start":1706,"length":73} - >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of robots) - >:=> (line 63, col 0) to (line 63, col 73) -63 >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of robots) { - - ~~~~~~~~~~~~~~~~ => Pos: (1714 to 1729) SpanInfo: {"start":1716,"length":13} + ~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1706 to 1729) SpanInfo: {"start":1716,"length":13} >numberA2 = -1 >:=> (line 63, col 10) to (line 63, col 23) 63 >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of robots) { @@ -627,9 +486,9 @@ >:=> (line 63, col 44) to (line 63, col 61) 63 >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of robots) { - ~~~~~~~~~~~~~~=> Pos: (1768 to 1781) SpanInfo: {"start":1706,"length":73} - >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of robots) - >:=> (line 63, col 0) to (line 63, col 73) + ~~~~~~~~~~~~~~=> Pos: (1768 to 1781) SpanInfo: {"start":1772,"length":6} + >robots + >:=> (line 63, col 66) to (line 63, col 72) -------------------------------- 64 > console.log(nameA2); @@ -645,12 +504,7 @@ -------------------------------- 66 >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) { - ~~~~~~~~ => Pos: (1809 to 1816) SpanInfo: {"start":1809,"length":78} - >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) - >:=> (line 66, col 0) to (line 66, col 78) -66 >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) { - - ~~~~~~~~~~~~~~~~ => Pos: (1817 to 1832) SpanInfo: {"start":1819,"length":13} + ~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1809 to 1832) SpanInfo: {"start":1819,"length":13} >numberA2 = -1 >:=> (line 66, col 10) to (line 66, col 23) 66 >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) { @@ -665,19 +519,9 @@ >:=> (line 66, col 44) to (line 66, col 61) 66 >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) { - ~~~=> Pos: (1871 to 1873) SpanInfo: {"start":1809,"length":78} - >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) - >:=> (line 66, col 0) to (line 66, col 78) -66 >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) { - - ~~~~~~~~~~~~=> Pos: (1874 to 1885) SpanInfo: {"start":1875,"length":11} + ~~~~~~~~~~~~~~~~~~~=> Pos: (1871 to 1889) SpanInfo: {"start":1875,"length":11} >getRobots() >:=> (line 66, col 66) to (line 66, col 77) -66 >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) { - - ~~~~=> Pos: (1886 to 1889) SpanInfo: {"start":1809,"length":78} - >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) - >:=> (line 66, col 0) to (line 66, col 78) -------------------------------- 67 > console.log(nameA2); @@ -693,12 +537,7 @@ -------------------------------- 69 >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of [robotA, robotB]) { - ~~~~~~~~ => Pos: (1917 to 1924) SpanInfo: {"start":1917,"length":83} - >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of [robotA, robotB]) - >:=> (line 69, col 0) to (line 69, col 83) -69 >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of [robotA, robotB]) { - - ~~~~~~~~~~~~~~~~ => Pos: (1925 to 1940) SpanInfo: {"start":1927,"length":13} + ~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1917 to 1940) SpanInfo: {"start":1927,"length":13} >numberA2 = -1 >:=> (line 69, col 10) to (line 69, col 23) 69 >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of [robotA, robotB]) { @@ -713,9 +552,9 @@ >:=> (line 69, col 44) to (line 69, col 61) 69 >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of [robotA, robotB]) { - ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1979 to 2002) SpanInfo: {"start":1917,"length":83} - >for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of [robotA, robotB]) - >:=> (line 69, col 0) to (line 69, col 83) + ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1979 to 2002) SpanInfo: {"start":1983,"length":16} + >[robotA, robotB] + >:=> (line 69, col 66) to (line 69, col 82) -------------------------------- 70 > console.log(nameA2); @@ -731,15 +570,7 @@ -------------------------------- 72 >for (let [nameMA = "noName", [ - ~~~~~~~~ => Pos: (2030 to 2037) SpanInfo: {"start":2030,"length":137} - >for (let [nameMA = "noName", [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - >] = ["skill1", "skill2"]] of multiRobots) - >:=> (line 72, col 0) to (line 75, col 41) -72 >for (let [nameMA = "noName", [ - - ~~~~~~~~~~~~~~~~~~~~ => Pos: (2038 to 2057) SpanInfo: {"start":2040,"length":17} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (2030 to 2057) SpanInfo: {"start":2040,"length":17} >nameMA = "noName" >:=> (line 72, col 10) to (line 72, col 27) 72 >for (let [nameMA = "noName", [ @@ -775,17 +606,9 @@ >:=> (line 72, col 29) to (line 75, col 24) 75 >] = ["skill1", "skill2"]] of multiRobots) { - ~~~~~~~~~~~~~~~~ => Pos: (2151 to 2166) SpanInfo: {"start":2030,"length":137} - >for (let [nameMA = "noName", [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - >] = ["skill1", "skill2"]] of multiRobots) - >:=> (line 72, col 0) to (line 75, col 41) -75 >] = ["skill1", "skill2"]] of multiRobots) { - - ~~~ => Pos: (2167 to 2169) SpanInfo: {"start":2174,"length":19} - >console.log(nameMA) - >:=> (line 76, col 4) to (line 76, col 23) + ~~~~~~~~~~~~~~~~~~~ => Pos: (2151 to 2169) SpanInfo: {"start":2155,"length":11} + >multiRobots + >:=> (line 75, col 29) to (line 75, col 40) -------------------------------- 76 > console.log(nameMA); @@ -801,15 +624,7 @@ -------------------------------- 78 >for (let [nameMA = "noName", [ - ~~~~~~~~ => Pos: (2197 to 2204) SpanInfo: {"start":2197,"length":142} - >for (let [nameMA = "noName", [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - >] = ["skill1", "skill2"]] of getMultiRobots()) - >:=> (line 78, col 0) to (line 81, col 46) -78 >for (let [nameMA = "noName", [ - - ~~~~~~~~~~~~~~~~~~~~ => Pos: (2205 to 2224) SpanInfo: {"start":2207,"length":17} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (2197 to 2224) SpanInfo: {"start":2207,"length":17} >nameMA = "noName" >:=> (line 78, col 10) to (line 78, col 27) 78 >for (let [nameMA = "noName", [ @@ -845,30 +660,9 @@ >:=> (line 78, col 29) to (line 81, col 24) 81 >] = ["skill1", "skill2"]] of getMultiRobots()) { - ~~~ => Pos: (2318 to 2320) SpanInfo: {"start":2197,"length":142} - >for (let [nameMA = "noName", [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - >] = ["skill1", "skill2"]] of getMultiRobots()) - >:=> (line 78, col 0) to (line 81, col 46) -81 >] = ["skill1", "skill2"]] of getMultiRobots()) { - - ~~~~~~~~~~~~~~~~~ => Pos: (2321 to 2337) SpanInfo: {"start":2322,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (2318 to 2341) SpanInfo: {"start":2322,"length":16} >getMultiRobots() >:=> (line 81, col 29) to (line 81, col 45) -81 >] = ["skill1", "skill2"]] of getMultiRobots()) { - - ~=> Pos: (2338 to 2338) SpanInfo: {"start":2197,"length":142} - >for (let [nameMA = "noName", [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - >] = ["skill1", "skill2"]] of getMultiRobots()) - >:=> (line 78, col 0) to (line 81, col 46) -81 >] = ["skill1", "skill2"]] of getMultiRobots()) { - - ~~~=> Pos: (2339 to 2341) SpanInfo: {"start":2346,"length":19} - >console.log(nameMA) - >:=> (line 82, col 4) to (line 82, col 23) -------------------------------- 82 > console.log(nameMA); @@ -884,15 +678,7 @@ -------------------------------- 84 >for (let [nameMA = "noName", [ - ~~~~~~~~ => Pos: (2369 to 2376) SpanInfo: {"start":2369,"length":152} - >for (let [nameMA = "noName", [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - >] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) - >:=> (line 84, col 0) to (line 87, col 56) -84 >for (let [nameMA = "noName", [ - - ~~~~~~~~~~~~~~~~~~~~ => Pos: (2377 to 2396) SpanInfo: {"start":2379,"length":17} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (2369 to 2396) SpanInfo: {"start":2379,"length":17} >nameMA = "noName" >:=> (line 84, col 10) to (line 84, col 27) 84 >for (let [nameMA = "noName", [ @@ -928,17 +714,9 @@ >:=> (line 84, col 29) to (line 87, col 24) 87 >] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (2490 to 2520) SpanInfo: {"start":2369,"length":152} - >for (let [nameMA = "noName", [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - >] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) - >:=> (line 84, col 0) to (line 87, col 56) -87 >] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) { - - ~~~=> Pos: (2521 to 2523) SpanInfo: {"start":2528,"length":19} - >console.log(nameMA) - >:=> (line 88, col 4) to (line 88, col 23) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (2490 to 2523) SpanInfo: {"start":2494,"length":26} + >[multiRobotA, multiRobotB] + >:=> (line 87, col 29) to (line 87, col 55) -------------------------------- 88 > console.log(nameMA); @@ -954,12 +732,7 @@ -------------------------------- 90 >for (let [numberA3 = -1, ...robotAInfo] of robots) { - ~~~~~~~~ => Pos: (2551 to 2558) SpanInfo: {"start":2551,"length":50} - >for (let [numberA3 = -1, ...robotAInfo] of robots) - >:=> (line 90, col 0) to (line 90, col 50) -90 >for (let [numberA3 = -1, ...robotAInfo] of robots) { - - ~~~~~~~~~~~~~~~~ => Pos: (2559 to 2574) SpanInfo: {"start":2561,"length":13} + ~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (2551 to 2574) SpanInfo: {"start":2561,"length":13} >numberA3 = -1 >:=> (line 90, col 10) to (line 90, col 23) 90 >for (let [numberA3 = -1, ...robotAInfo] of robots) { @@ -969,9 +742,9 @@ >:=> (line 90, col 25) to (line 90, col 38) 90 >for (let [numberA3 = -1, ...robotAInfo] of robots) { - ~~~~~~~~~~~~~~=> Pos: (2590 to 2603) SpanInfo: {"start":2551,"length":50} - >for (let [numberA3 = -1, ...robotAInfo] of robots) - >:=> (line 90, col 0) to (line 90, col 50) + ~~~~~~~~~~~~~~=> Pos: (2590 to 2603) SpanInfo: {"start":2594,"length":6} + >robots + >:=> (line 90, col 43) to (line 90, col 49) -------------------------------- 91 > console.log(numberA3); @@ -987,12 +760,7 @@ -------------------------------- 93 >for (let [numberA3 = -1, ...robotAInfo] of getRobots()) { - ~~~~~~~~ => Pos: (2633 to 2640) SpanInfo: {"start":2633,"length":55} - >for (let [numberA3 = -1, ...robotAInfo] of getRobots()) - >:=> (line 93, col 0) to (line 93, col 55) -93 >for (let [numberA3 = -1, ...robotAInfo] of getRobots()) { - - ~~~~~~~~~~~~~~~~ => Pos: (2641 to 2656) SpanInfo: {"start":2643,"length":13} + ~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (2633 to 2656) SpanInfo: {"start":2643,"length":13} >numberA3 = -1 >:=> (line 93, col 10) to (line 93, col 23) 93 >for (let [numberA3 = -1, ...robotAInfo] of getRobots()) { @@ -1002,19 +770,9 @@ >:=> (line 93, col 25) to (line 93, col 38) 93 >for (let [numberA3 = -1, ...robotAInfo] of getRobots()) { - ~~~ => Pos: (2672 to 2674) SpanInfo: {"start":2633,"length":55} - >for (let [numberA3 = -1, ...robotAInfo] of getRobots()) - >:=> (line 93, col 0) to (line 93, col 55) -93 >for (let [numberA3 = -1, ...robotAInfo] of getRobots()) { - - ~~~~~~~~~~~~=> Pos: (2675 to 2686) SpanInfo: {"start":2676,"length":11} + ~~~~~~~~~~~~~~~~~~~=> Pos: (2672 to 2690) SpanInfo: {"start":2676,"length":11} >getRobots() >:=> (line 93, col 43) to (line 93, col 54) -93 >for (let [numberA3 = -1, ...robotAInfo] of getRobots()) { - - ~~~~=> Pos: (2687 to 2690) SpanInfo: {"start":2633,"length":55} - >for (let [numberA3 = -1, ...robotAInfo] of getRobots()) - >:=> (line 93, col 0) to (line 93, col 55) -------------------------------- 94 > console.log(numberA3); @@ -1030,12 +788,7 @@ -------------------------------- 96 >for (let [numberA3 = -1, ...robotAInfo] of [robotA, robotB]) { - ~~~~~~~~ => Pos: (2720 to 2727) SpanInfo: {"start":2720,"length":60} - >for (let [numberA3 = -1, ...robotAInfo] of [robotA, robotB]) - >:=> (line 96, col 0) to (line 96, col 60) -96 >for (let [numberA3 = -1, ...robotAInfo] of [robotA, robotB]) { - - ~~~~~~~~~~~~~~~~ => Pos: (2728 to 2743) SpanInfo: {"start":2730,"length":13} + ~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (2720 to 2743) SpanInfo: {"start":2730,"length":13} >numberA3 = -1 >:=> (line 96, col 10) to (line 96, col 23) 96 >for (let [numberA3 = -1, ...robotAInfo] of [robotA, robotB]) { @@ -1045,9 +798,9 @@ >:=> (line 96, col 25) to (line 96, col 38) 96 >for (let [numberA3 = -1, ...robotAInfo] of [robotA, robotB]) { - ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (2759 to 2782) SpanInfo: {"start":2720,"length":60} - >for (let [numberA3 = -1, ...robotAInfo] of [robotA, robotB]) - >:=> (line 96, col 0) to (line 96, col 60) + ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (2759 to 2782) SpanInfo: {"start":2763,"length":16} + >[robotA, robotB] + >:=> (line 96, col 43) to (line 96, col 59) -------------------------------- 97 > console.log(numberA3); diff --git a/tests/baselines/reference/bpSpanDestructuringForOfObjectBindingPattern.baseline b/tests/baselines/reference/bpSpanDestructuringForOfObjectBindingPattern.baseline index 27e089a811d..14e0d2a2d27 100644 --- a/tests/baselines/reference/bpSpanDestructuringForOfObjectBindingPattern.baseline +++ b/tests/baselines/reference/bpSpanDestructuringForOfObjectBindingPattern.baseline @@ -113,19 +113,14 @@ -------------------------------- 24 >for (let {name: nameA } of robots) { - ~~~~~~~~ => Pos: (603 to 610) SpanInfo: {"start":603,"length":34} - >for (let {name: nameA } of robots) - >:=> (line 24, col 0) to (line 24, col 34) -24 >for (let {name: nameA } of robots) { - - ~~~~~~~~~~~~~~~ => Pos: (611 to 625) SpanInfo: {"start":613,"length":11} + ~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (603 to 625) SpanInfo: {"start":613,"length":11} >name: nameA >:=> (line 24, col 10) to (line 24, col 21) 24 >for (let {name: nameA } of robots) { - ~~~~~~~~~~~~~~ => Pos: (626 to 639) SpanInfo: {"start":603,"length":34} - >for (let {name: nameA } of robots) - >:=> (line 24, col 0) to (line 24, col 34) + ~~~~~~~~~~~~~~ => Pos: (626 to 639) SpanInfo: {"start":630,"length":6} + >robots + >:=> (line 24, col 27) to (line 24, col 33) -------------------------------- 25 > console.log(nameA); @@ -141,29 +136,14 @@ -------------------------------- 27 >for (let {name: nameA } of getRobots()) { - ~~~~~~~~ => Pos: (666 to 673) SpanInfo: {"start":666,"length":39} - >for (let {name: nameA } of getRobots()) - >:=> (line 27, col 0) to (line 27, col 39) -27 >for (let {name: nameA } of getRobots()) { - - ~~~~~~~~~~~~~~~ => Pos: (674 to 688) SpanInfo: {"start":676,"length":11} + ~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (666 to 688) SpanInfo: {"start":676,"length":11} >name: nameA >:=> (line 27, col 10) to (line 27, col 21) 27 >for (let {name: nameA } of getRobots()) { - ~~~ => Pos: (689 to 691) SpanInfo: {"start":666,"length":39} - >for (let {name: nameA } of getRobots()) - >:=> (line 27, col 0) to (line 27, col 39) -27 >for (let {name: nameA } of getRobots()) { - - ~~~~~~~~~~~~ => Pos: (692 to 703) SpanInfo: {"start":693,"length":11} + ~~~~~~~~~~~~~~~~~~~ => Pos: (689 to 707) SpanInfo: {"start":693,"length":11} >getRobots() >:=> (line 27, col 27) to (line 27, col 38) -27 >for (let {name: nameA } of getRobots()) { - - ~~~~ => Pos: (704 to 707) SpanInfo: {"start":666,"length":39} - >for (let {name: nameA } of getRobots()) - >:=> (line 27, col 0) to (line 27, col 39) -------------------------------- 28 > console.log(nameA); @@ -179,19 +159,14 @@ -------------------------------- 30 >for (let {name: nameA } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { - ~~~~~~~~ => Pos: (734 to 741) SpanInfo: {"start":734,"length":104} - >for (let {name: nameA } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) - >:=> (line 30, col 0) to (line 30, col 104) -30 >for (let {name: nameA } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { - - ~~~~~~~~~~~~~~~ => Pos: (742 to 756) SpanInfo: {"start":744,"length":11} + ~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (734 to 756) SpanInfo: {"start":744,"length":11} >name: nameA >:=> (line 30, col 10) to (line 30, col 21) 30 >for (let {name: nameA } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (757 to 840) SpanInfo: {"start":734,"length":104} - >for (let {name: nameA } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) - >:=> (line 30, col 0) to (line 30, col 104) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (757 to 840) SpanInfo: {"start":761,"length":76} + >[{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] + >:=> (line 30, col 27) to (line 30, col 103) -------------------------------- 31 > console.log(nameA); @@ -207,12 +182,7 @@ -------------------------------- 33 >for (let { skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { - ~~~~~~~~ => Pos: (867 to 874) SpanInfo: {"start":867,"length":81} - >for (let { skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) - >:=> (line 33, col 0) to (line 33, col 81) -33 >for (let { skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { - - ~~~~~~~~~~ => Pos: (875 to 884) SpanInfo: {"start":878,"length":52} + ~~~~~~~~~~~~~~~~~~ => Pos: (867 to 884) SpanInfo: {"start":878,"length":52} >skills: { primary: primaryA, secondary: secondaryA } >:=> (line 33, col 11) to (line 33, col 63) 33 >for (let { skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { @@ -232,9 +202,9 @@ >:=> (line 33, col 11) to (line 33, col 63) 33 >for (let { skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { - ~~~~~~~~~~~~~~~~~~~=> Pos: (932 to 950) SpanInfo: {"start":867,"length":81} - >for (let { skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) - >:=> (line 33, col 0) to (line 33, col 81) + ~~~~~~~~~~~~~~~~~~~=> Pos: (932 to 950) SpanInfo: {"start":936,"length":11} + >multiRobots + >:=> (line 33, col 69) to (line 33, col 80) -------------------------------- 34 > console.log(primaryA); @@ -250,12 +220,7 @@ -------------------------------- 36 >for (let { skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) { - ~~~~~~~~ => Pos: (980 to 987) SpanInfo: {"start":980,"length":86} - >for (let { skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) - >:=> (line 36, col 0) to (line 36, col 86) -36 >for (let { skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) { - - ~~~~~~~~~~ => Pos: (988 to 997) SpanInfo: {"start":991,"length":52} + ~~~~~~~~~~~~~~~~~~ => Pos: (980 to 997) SpanInfo: {"start":991,"length":52} >skills: { primary: primaryA, secondary: secondaryA } >:=> (line 36, col 11) to (line 36, col 63) 36 >for (let { skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) { @@ -275,19 +240,9 @@ >:=> (line 36, col 11) to (line 36, col 63) 36 >for (let { skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) { - ~~~=> Pos: (1045 to 1047) SpanInfo: {"start":980,"length":86} - >for (let { skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) - >:=> (line 36, col 0) to (line 36, col 86) -36 >for (let { skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) { - - ~~~~~~~~~~~~~~~~~=> Pos: (1048 to 1064) SpanInfo: {"start":1049,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1045 to 1068) SpanInfo: {"start":1049,"length":16} >getMultiRobots() >:=> (line 36, col 69) to (line 36, col 85) -36 >for (let { skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) { - - ~~~~=> Pos: (1065 to 1068) SpanInfo: {"start":980,"length":86} - >for (let { skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) - >:=> (line 36, col 0) to (line 36, col 86) -------------------------------- 37 > console.log(primaryA); @@ -303,13 +258,7 @@ -------------------------------- 39 >for (let { skills: { primary: primaryA, secondary: secondaryA } } of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - ~~~~~~~~ => Pos: (1098 to 1105) SpanInfo: {"start":1098,"length":218} - >for (let { skills: { primary: primaryA, secondary: secondaryA } } of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) - >:=> (line 39, col 0) to (line 40, col 79) -39 >for (let { skills: { primary: primaryA, secondary: secondaryA } } of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - - ~~~~~~~~~~ => Pos: (1106 to 1115) SpanInfo: {"start":1109,"length":52} + ~~~~~~~~~~~~~~~~~~ => Pos: (1098 to 1115) SpanInfo: {"start":1109,"length":52} >skills: { primary: primaryA, secondary: secondaryA } >:=> (line 39, col 11) to (line 39, col 63) 39 >for (let { skills: { primary: primaryA, secondary: secondaryA } } of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, @@ -329,22 +278,17 @@ >:=> (line 39, col 11) to (line 39, col 63) 39 >for (let { skills: { primary: primaryA, secondary: secondaryA } } of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1163 to 1236) SpanInfo: {"start":1098,"length":218} - >for (let { skills: { primary: primaryA, secondary: secondaryA } } of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) - >:=> (line 39, col 0) to (line 40, col 79) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1163 to 1236) SpanInfo: {"start":1167,"length":148} + >[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] + >:=> (line 39, col 69) to (line 40, col 78) -------------------------------- 40 > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1237 to 1315) SpanInfo: {"start":1098,"length":218} - >for (let { skills: { primary: primaryA, secondary: secondaryA } } of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) - >:=> (line 39, col 0) to (line 40, col 79) -40 > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) { - - ~~~=> Pos: (1316 to 1318) SpanInfo: {"start":1323,"length":21} - >console.log(primaryA) - >:=> (line 41, col 4) to (line 41, col 25) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1237 to 1318) SpanInfo: {"start":1167,"length":148} + >[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] + >:=> (line 39, col 69) to (line 40, col 78) -------------------------------- 41 > console.log(primaryA); @@ -360,12 +304,7 @@ -------------------------------- 43 >for (let {name: nameA, skill: skillA } of robots) { - ~~~~~~~~ => Pos: (1348 to 1355) SpanInfo: {"start":1348,"length":49} - >for (let {name: nameA, skill: skillA } of robots) - >:=> (line 43, col 0) to (line 43, col 49) -43 >for (let {name: nameA, skill: skillA } of robots) { - - ~~~~~~~~~~~~~~ => Pos: (1356 to 1369) SpanInfo: {"start":1358,"length":11} + ~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1348 to 1369) SpanInfo: {"start":1358,"length":11} >name: nameA >:=> (line 43, col 10) to (line 43, col 21) 43 >for (let {name: nameA, skill: skillA } of robots) { @@ -375,9 +314,9 @@ >:=> (line 43, col 23) to (line 43, col 36) 43 >for (let {name: nameA, skill: skillA } of robots) { - ~~~~~~~~~~~~~~=> Pos: (1386 to 1399) SpanInfo: {"start":1348,"length":49} - >for (let {name: nameA, skill: skillA } of robots) - >:=> (line 43, col 0) to (line 43, col 49) + ~~~~~~~~~~~~~~=> Pos: (1386 to 1399) SpanInfo: {"start":1390,"length":6} + >robots + >:=> (line 43, col 42) to (line 43, col 48) -------------------------------- 44 > console.log(nameA); @@ -393,12 +332,7 @@ -------------------------------- 46 >for (let {name: nameA, skill: skillA } of getRobots()) { - ~~~~~~~~ => Pos: (1426 to 1433) SpanInfo: {"start":1426,"length":54} - >for (let {name: nameA, skill: skillA } of getRobots()) - >:=> (line 46, col 0) to (line 46, col 54) -46 >for (let {name: nameA, skill: skillA } of getRobots()) { - - ~~~~~~~~~~~~~~ => Pos: (1434 to 1447) SpanInfo: {"start":1436,"length":11} + ~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1426 to 1447) SpanInfo: {"start":1436,"length":11} >name: nameA >:=> (line 46, col 10) to (line 46, col 21) 46 >for (let {name: nameA, skill: skillA } of getRobots()) { @@ -408,19 +342,9 @@ >:=> (line 46, col 23) to (line 46, col 36) 46 >for (let {name: nameA, skill: skillA } of getRobots()) { - ~~~ => Pos: (1464 to 1466) SpanInfo: {"start":1426,"length":54} - >for (let {name: nameA, skill: skillA } of getRobots()) - >:=> (line 46, col 0) to (line 46, col 54) -46 >for (let {name: nameA, skill: skillA } of getRobots()) { - - ~~~~~~~~~~~~=> Pos: (1467 to 1478) SpanInfo: {"start":1468,"length":11} + ~~~~~~~~~~~~~~~~~~~=> Pos: (1464 to 1482) SpanInfo: {"start":1468,"length":11} >getRobots() >:=> (line 46, col 42) to (line 46, col 53) -46 >for (let {name: nameA, skill: skillA } of getRobots()) { - - ~~~~=> Pos: (1479 to 1482) SpanInfo: {"start":1426,"length":54} - >for (let {name: nameA, skill: skillA } of getRobots()) - >:=> (line 46, col 0) to (line 46, col 54) -------------------------------- 47 > console.log(nameA); @@ -436,12 +360,7 @@ -------------------------------- 49 >for (let {name: nameA, skill: skillA } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { - ~~~~~~~~ => Pos: (1509 to 1516) SpanInfo: {"start":1509,"length":119} - >for (let {name: nameA, skill: skillA } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) - >:=> (line 49, col 0) to (line 49, col 119) -49 >for (let {name: nameA, skill: skillA } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { - - ~~~~~~~~~~~~~~ => Pos: (1517 to 1530) SpanInfo: {"start":1519,"length":11} + ~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1509 to 1530) SpanInfo: {"start":1519,"length":11} >name: nameA >:=> (line 49, col 10) to (line 49, col 21) 49 >for (let {name: nameA, skill: skillA } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { @@ -451,9 +370,9 @@ >:=> (line 49, col 23) to (line 49, col 36) 49 >for (let {name: nameA, skill: skillA } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1547 to 1630) SpanInfo: {"start":1509,"length":119} - >for (let {name: nameA, skill: skillA } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) - >:=> (line 49, col 0) to (line 49, col 119) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1547 to 1630) SpanInfo: {"start":1551,"length":76} + >[{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] + >:=> (line 49, col 42) to (line 49, col 118) -------------------------------- 50 > console.log(nameA); @@ -469,12 +388,7 @@ -------------------------------- 52 >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { - ~~~~~~~~ => Pos: (1657 to 1664) SpanInfo: {"start":1657,"length":93} - >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) - >:=> (line 52, col 0) to (line 52, col 93) -52 >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { - - ~~~~~~~~~~~~~~ => Pos: (1665 to 1678) SpanInfo: {"start":1667,"length":11} + ~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1657 to 1678) SpanInfo: {"start":1667,"length":11} >name: nameA >:=> (line 52, col 10) to (line 52, col 21) 52 >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { @@ -499,9 +413,9 @@ >:=> (line 52, col 23) to (line 52, col 75) 52 >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { - ~~~~~~~~~~~~~~~~~~~=> Pos: (1734 to 1752) SpanInfo: {"start":1657,"length":93} - >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) - >:=> (line 52, col 0) to (line 52, col 93) + ~~~~~~~~~~~~~~~~~~~=> Pos: (1734 to 1752) SpanInfo: {"start":1738,"length":11} + >multiRobots + >:=> (line 52, col 81) to (line 52, col 92) -------------------------------- 53 > console.log(nameA); @@ -517,12 +431,7 @@ -------------------------------- 55 >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) { - ~~~~~~~~ => Pos: (1779 to 1786) SpanInfo: {"start":1779,"length":98} - >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) - >:=> (line 55, col 0) to (line 55, col 98) -55 >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) { - - ~~~~~~~~~~~~~~ => Pos: (1787 to 1800) SpanInfo: {"start":1789,"length":11} + ~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1779 to 1800) SpanInfo: {"start":1789,"length":11} >name: nameA >:=> (line 55, col 10) to (line 55, col 21) 55 >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) { @@ -547,19 +456,9 @@ >:=> (line 55, col 23) to (line 55, col 75) 55 >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) { - ~~~=> Pos: (1856 to 1858) SpanInfo: {"start":1779,"length":98} - >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) - >:=> (line 55, col 0) to (line 55, col 98) -55 >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) { - - ~~~~~~~~~~~~~~~~~=> Pos: (1859 to 1875) SpanInfo: {"start":1860,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1856 to 1879) SpanInfo: {"start":1860,"length":16} >getMultiRobots() >:=> (line 55, col 81) to (line 55, col 97) -55 >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) { - - ~~~~=> Pos: (1876 to 1879) SpanInfo: {"start":1779,"length":98} - >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of getMultiRobots()) - >:=> (line 55, col 0) to (line 55, col 98) -------------------------------- 56 > console.log(nameA); @@ -575,13 +474,7 @@ -------------------------------- 58 >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - ~~~~~~~~ => Pos: (1906 to 1913) SpanInfo: {"start":1906,"length":230} - >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) - >:=> (line 58, col 0) to (line 59, col 79) -58 >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - - ~~~~~~~~~~~~~~ => Pos: (1914 to 1927) SpanInfo: {"start":1916,"length":11} + ~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1906 to 1927) SpanInfo: {"start":1916,"length":11} >name: nameA >:=> (line 58, col 10) to (line 58, col 21) 58 >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, @@ -606,22 +499,17 @@ >:=> (line 58, col 23) to (line 58, col 75) 58 >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1983 to 2056) SpanInfo: {"start":1906,"length":230} - >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) - >:=> (line 58, col 0) to (line 59, col 79) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1983 to 2056) SpanInfo: {"start":1987,"length":148} + >[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] + >:=> (line 58, col 81) to (line 59, col 78) -------------------------------- 59 > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (2057 to 2135) SpanInfo: {"start":1906,"length":230} - >for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) - >:=> (line 58, col 0) to (line 59, col 79) -59 > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) { - - ~~~=> Pos: (2136 to 2138) SpanInfo: {"start":2143,"length":18} - >console.log(nameA) - >:=> (line 60, col 4) to (line 60, col 22) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (2057 to 2138) SpanInfo: {"start":1987,"length":148} + >[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] + >:=> (line 58, col 81) to (line 59, col 78) -------------------------------- 60 > console.log(nameA); diff --git a/tests/baselines/reference/bpSpanDestructuringForOfObjectBindingPatternDefaultValues.baseline b/tests/baselines/reference/bpSpanDestructuringForOfObjectBindingPatternDefaultValues.baseline index d5553960334..d2169558daf 100644 --- a/tests/baselines/reference/bpSpanDestructuringForOfObjectBindingPatternDefaultValues.baseline +++ b/tests/baselines/reference/bpSpanDestructuringForOfObjectBindingPatternDefaultValues.baseline @@ -113,19 +113,14 @@ -------------------------------- 24 >for (let {name: nameA = "noName" } of robots) { - ~~~~~~~~ => Pos: (605 to 612) SpanInfo: {"start":605,"length":45} - >for (let {name: nameA = "noName" } of robots) - >:=> (line 24, col 0) to (line 24, col 45) -24 >for (let {name: nameA = "noName" } of robots) { - - ~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (613 to 638) SpanInfo: {"start":615,"length":22} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (605 to 638) SpanInfo: {"start":615,"length":22} >name: nameA = "noName" >:=> (line 24, col 10) to (line 24, col 32) 24 >for (let {name: nameA = "noName" } of robots) { - ~~~~~~~~~~~~~~=> Pos: (639 to 652) SpanInfo: {"start":605,"length":45} - >for (let {name: nameA = "noName" } of robots) - >:=> (line 24, col 0) to (line 24, col 45) + ~~~~~~~~~~~~~~=> Pos: (639 to 652) SpanInfo: {"start":643,"length":6} + >robots + >:=> (line 24, col 38) to (line 24, col 44) -------------------------------- 25 > console.log(nameA); @@ -141,29 +136,14 @@ -------------------------------- 27 >for (let {name: nameA = "noName" } of getRobots()) { - ~~~~~~~~ => Pos: (679 to 686) SpanInfo: {"start":679,"length":50} - >for (let {name: nameA = "noName" } of getRobots()) - >:=> (line 27, col 0) to (line 27, col 50) -27 >for (let {name: nameA = "noName" } of getRobots()) { - - ~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (687 to 712) SpanInfo: {"start":689,"length":22} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (679 to 712) SpanInfo: {"start":689,"length":22} >name: nameA = "noName" >:=> (line 27, col 10) to (line 27, col 32) 27 >for (let {name: nameA = "noName" } of getRobots()) { - ~~~ => Pos: (713 to 715) SpanInfo: {"start":679,"length":50} - >for (let {name: nameA = "noName" } of getRobots()) - >:=> (line 27, col 0) to (line 27, col 50) -27 >for (let {name: nameA = "noName" } of getRobots()) { - - ~~~~~~~~~~~~=> Pos: (716 to 727) SpanInfo: {"start":717,"length":11} + ~~~~~~~~~~~~~~~~~~~=> Pos: (713 to 731) SpanInfo: {"start":717,"length":11} >getRobots() >:=> (line 27, col 38) to (line 27, col 49) -27 >for (let {name: nameA = "noName" } of getRobots()) { - - ~~~~=> Pos: (728 to 731) SpanInfo: {"start":679,"length":50} - >for (let {name: nameA = "noName" } of getRobots()) - >:=> (line 27, col 0) to (line 27, col 50) -------------------------------- 28 > console.log(nameA); @@ -179,19 +159,14 @@ -------------------------------- 30 >for (let {name: nameA = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { - ~~~~~~~~ => Pos: (758 to 765) SpanInfo: {"start":758,"length":115} - >for (let {name: nameA = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) - >:=> (line 30, col 0) to (line 30, col 115) -30 >for (let {name: nameA = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { - - ~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (766 to 791) SpanInfo: {"start":768,"length":22} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (758 to 791) SpanInfo: {"start":768,"length":22} >name: nameA = "noName" >:=> (line 30, col 10) to (line 30, col 32) 30 >for (let {name: nameA = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (792 to 875) SpanInfo: {"start":758,"length":115} - >for (let {name: nameA = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) - >:=> (line 30, col 0) to (line 30, col 115) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (792 to 875) SpanInfo: {"start":796,"length":76} + >[{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] + >:=> (line 30, col 38) to (line 30, col 114) -------------------------------- 31 > console.log(nameA); @@ -207,13 +182,7 @@ -------------------------------- 33 >for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - ~~~~~~~~ => Pos: (902 to 909) SpanInfo: {"start":902,"length":158} - >for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } } of multiRobots) - >:=> (line 33, col 0) to (line 34, col 66) -33 >for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - - ~~~~~~~~~~ => Pos: (910 to 919) SpanInfo: {"start":913,"length":129} + ~~~~~~~~~~~~~~~~~~ => Pos: (902 to 919) SpanInfo: {"start":913,"length":129} >skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = > { primary: "nosKill", secondary: "noSkill" } >:=> (line 33, col 11) to (line 34, col 48) @@ -242,15 +211,9 @@ >:=> (line 33, col 11) to (line 34, col 48) 34 > { primary: "nosKill", secondary: "noSkill" } } of multiRobots) { - ~~~~~~~~~~~~~~~~=> Pos: (1044 to 1059) SpanInfo: {"start":902,"length":158} - >for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } } of multiRobots) - >:=> (line 33, col 0) to (line 34, col 66) -34 > { primary: "nosKill", secondary: "noSkill" } } of multiRobots) { - - ~~~=> Pos: (1060 to 1062) SpanInfo: {"start":1067,"length":21} - >console.log(primaryA) - >:=> (line 35, col 4) to (line 35, col 25) + ~~~~~~~~~~~~~~~~~~~=> Pos: (1044 to 1062) SpanInfo: {"start":1048,"length":11} + >multiRobots + >:=> (line 34, col 54) to (line 34, col 65) -------------------------------- 35 > console.log(primaryA); @@ -266,13 +229,7 @@ -------------------------------- 37 >for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - ~~~~~~~~ => Pos: (1092 to 1099) SpanInfo: {"start":1092,"length":163} - >for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) - >:=> (line 37, col 0) to (line 38, col 71) -37 >for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - - ~~~~~~~~~~ => Pos: (1100 to 1109) SpanInfo: {"start":1103,"length":129} + ~~~~~~~~~~~~~~~~~~ => Pos: (1092 to 1109) SpanInfo: {"start":1103,"length":129} >skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = > { primary: "nosKill", secondary: "noSkill" } >:=> (line 37, col 11) to (line 38, col 48) @@ -301,26 +258,9 @@ >:=> (line 37, col 11) to (line 38, col 48) 38 > { primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) { - ~~~=> Pos: (1234 to 1236) SpanInfo: {"start":1092,"length":163} - >for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) - >:=> (line 37, col 0) to (line 38, col 71) -38 > { primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) { - - ~~~~~~~~~~~~~~~~~=> Pos: (1237 to 1253) SpanInfo: {"start":1238,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1234 to 1257) SpanInfo: {"start":1238,"length":16} >getMultiRobots() >:=> (line 38, col 54) to (line 38, col 70) -38 > { primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) { - - ~=> Pos: (1254 to 1254) SpanInfo: {"start":1092,"length":163} - >for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) - >:=> (line 37, col 0) to (line 38, col 71) -38 > { primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) { - - ~~~=> Pos: (1255 to 1257) SpanInfo: {"start":1262,"length":21} - >console.log(primaryA) - >:=> (line 39, col 4) to (line 39, col 25) -------------------------------- 39 > console.log(primaryA); @@ -336,15 +276,7 @@ -------------------------------- 41 >for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - ~~~~~~~~ => Pos: (1287 to 1294) SpanInfo: {"start":1287,"length":313} - >for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } } of - > [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) - >:=> (line 41, col 0) to (line 44, col 79) -41 >for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - - ~~~~~~~~~~ => Pos: (1295 to 1304) SpanInfo: {"start":1298,"length":129} + ~~~~~~~~~~~~~~~~~~ => Pos: (1287 to 1304) SpanInfo: {"start":1298,"length":129} >skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = > { primary: "nosKill", secondary: "noSkill" } >:=> (line 41, col 11) to (line 42, col 48) @@ -373,35 +305,24 @@ >:=> (line 41, col 11) to (line 42, col 48) 42 > { primary: "nosKill", secondary: "noSkill" } } of - ~~~~=> Pos: (1429 to 1432) SpanInfo: {"start":1287,"length":313} - >for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } } of - > [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) - >:=> (line 41, col 0) to (line 44, col 79) + ~~~~=> Pos: (1429 to 1432) SpanInfo: {"start":1437,"length":162} + >[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] + >:=> (line 43, col 4) to (line 44, col 78) -------------------------------- 43 > [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1433 to 1520) SpanInfo: {"start":1287,"length":313} - >for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } } of - > [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) - >:=> (line 41, col 0) to (line 44, col 79) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1433 to 1520) SpanInfo: {"start":1437,"length":162} + >[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] + >:=> (line 43, col 4) to (line 44, col 78) -------------------------------- 44 > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1521 to 1599) SpanInfo: {"start":1287,"length":313} - >for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } } of - > [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) - >:=> (line 41, col 0) to (line 44, col 79) -44 > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) { - - ~~~=> Pos: (1600 to 1602) SpanInfo: {"start":1607,"length":21} - >console.log(primaryA) - >:=> (line 45, col 4) to (line 45, col 25) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1521 to 1602) SpanInfo: {"start":1437,"length":162} + >[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] + >:=> (line 43, col 4) to (line 44, col 78) -------------------------------- 45 > console.log(primaryA); @@ -417,12 +338,7 @@ -------------------------------- 47 >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of robots) { - ~~~~~~~~ => Pos: (1632 to 1639) SpanInfo: {"start":1632,"length":72} - >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of robots) - >:=> (line 47, col 0) to (line 47, col 72) -47 >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of robots) { - - ~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1640 to 1664) SpanInfo: {"start":1642,"length":22} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1632 to 1664) SpanInfo: {"start":1642,"length":22} >name: nameA = "noName" >:=> (line 47, col 10) to (line 47, col 32) 47 >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of robots) { @@ -432,9 +348,9 @@ >:=> (line 47, col 34) to (line 47, col 59) 47 >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of robots) { - ~~~~~~~~~~~~~~=> Pos: (1693 to 1706) SpanInfo: {"start":1632,"length":72} - >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of robots) - >:=> (line 47, col 0) to (line 47, col 72) + ~~~~~~~~~~~~~~=> Pos: (1693 to 1706) SpanInfo: {"start":1697,"length":6} + >robots + >:=> (line 47, col 65) to (line 47, col 71) -------------------------------- 48 > console.log(nameA); @@ -450,12 +366,7 @@ -------------------------------- 50 >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) { - ~~~~~~~~ => Pos: (1733 to 1740) SpanInfo: {"start":1733,"length":78} - >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) - >:=> (line 50, col 0) to (line 50, col 78) -50 >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) { - - ~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1741 to 1765) SpanInfo: {"start":1743,"length":22} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1733 to 1765) SpanInfo: {"start":1743,"length":22} >name: nameA = "noName" >:=> (line 50, col 10) to (line 50, col 32) 50 >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) { @@ -465,19 +376,9 @@ >:=> (line 50, col 34) to (line 50, col 59) 50 >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) { - ~~~=> Pos: (1795 to 1797) SpanInfo: {"start":1733,"length":78} - >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) - >:=> (line 50, col 0) to (line 50, col 78) -50 >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) { - - ~~~~~~~~~~~~=> Pos: (1798 to 1809) SpanInfo: {"start":1799,"length":11} + ~~~~~~~~~~~~~~~~~~~=> Pos: (1795 to 1813) SpanInfo: {"start":1799,"length":11} >getRobots() >:=> (line 50, col 66) to (line 50, col 77) -50 >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) { - - ~~~~=> Pos: (1810 to 1813) SpanInfo: {"start":1733,"length":78} - >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) - >:=> (line 50, col 0) to (line 50, col 78) -------------------------------- 51 > console.log(nameA); @@ -493,12 +394,7 @@ -------------------------------- 53 >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { - ~~~~~~~~ => Pos: (1840 to 1847) SpanInfo: {"start":1840,"length":143} - >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) - >:=> (line 53, col 0) to (line 53, col 143) -53 >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { - - ~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1848 to 1872) SpanInfo: {"start":1850,"length":22} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1840 to 1872) SpanInfo: {"start":1850,"length":22} >name: nameA = "noName" >:=> (line 53, col 10) to (line 53, col 32) 53 >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { @@ -508,9 +404,9 @@ >:=> (line 53, col 34) to (line 53, col 59) 53 >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1902 to 1985) SpanInfo: {"start":1840,"length":143} - >for (let {name: nameA = "noName", skill: skillA = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) - >:=> (line 53, col 0) to (line 53, col 143) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1902 to 1985) SpanInfo: {"start":1906,"length":76} + >[{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] + >:=> (line 53, col 66) to (line 53, col 142) -------------------------------- 54 > console.log(nameA); @@ -526,18 +422,7 @@ -------------------------------- 56 >for (let { - ~~~~~~~~ => Pos: (2012 to 2019) SpanInfo: {"start":2012,"length":206} - >for (let { - > name: nameA = "noName", - > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - >} of multiRobots) - >:=> (line 56, col 0) to (line 62, col 17) -56 >for (let { - - ~~~ => Pos: (2020 to 2022) SpanInfo: {"start":2027,"length":22} + ~~~~~~~~~~~ => Pos: (2012 to 2022) SpanInfo: {"start":2027,"length":22} >name: nameA = "noName" >:=> (line 57, col 4) to (line 57, col 26) -------------------------------- @@ -597,20 +482,9 @@ >:=> (line 58, col 4) to (line 61, col 52) 62 >} of multiRobots) { - ~~~~~~~~~~~~~~~~ => Pos: (2202 to 2217) SpanInfo: {"start":2012,"length":206} - >for (let { - > name: nameA = "noName", - > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - >} of multiRobots) - >:=> (line 56, col 0) to (line 62, col 17) -62 >} of multiRobots) { - - ~~~ => Pos: (2218 to 2220) SpanInfo: {"start":2225,"length":18} - >console.log(nameA) - >:=> (line 63, col 4) to (line 63, col 22) + ~~~~~~~~~~~~~~~~~~~ => Pos: (2202 to 2220) SpanInfo: {"start":2206,"length":11} + >multiRobots + >:=> (line 62, col 5) to (line 62, col 16) -------------------------------- 63 > console.log(nameA); @@ -626,18 +500,7 @@ -------------------------------- 65 >for (let { - ~~~~~~~~ => Pos: (2247 to 2254) SpanInfo: {"start":2247,"length":211} - >for (let { - > name: nameA = "noName", - > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - >} of getMultiRobots()) - >:=> (line 65, col 0) to (line 71, col 22) -65 >for (let { - - ~~~ => Pos: (2255 to 2257) SpanInfo: {"start":2262,"length":22} + ~~~~~~~~~~~ => Pos: (2247 to 2257) SpanInfo: {"start":2262,"length":22} >name: nameA = "noName" >:=> (line 66, col 4) to (line 66, col 26) -------------------------------- @@ -697,36 +560,9 @@ >:=> (line 67, col 4) to (line 70, col 52) 71 >} of getMultiRobots()) { - ~~~ => Pos: (2437 to 2439) SpanInfo: {"start":2247,"length":211} - >for (let { - > name: nameA = "noName", - > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - >} of getMultiRobots()) - >:=> (line 65, col 0) to (line 71, col 22) -71 >} of getMultiRobots()) { - - ~~~~~~~~~~~~~~~~~ => Pos: (2440 to 2456) SpanInfo: {"start":2441,"length":16} + ~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (2437 to 2460) SpanInfo: {"start":2441,"length":16} >getMultiRobots() >:=> (line 71, col 5) to (line 71, col 21) -71 >} of getMultiRobots()) { - - ~ => Pos: (2457 to 2457) SpanInfo: {"start":2247,"length":211} - >for (let { - > name: nameA = "noName", - > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - >} of getMultiRobots()) - >:=> (line 65, col 0) to (line 71, col 22) -71 >} of getMultiRobots()) { - - ~~~ => Pos: (2458 to 2460) SpanInfo: {"start":2465,"length":18} - >console.log(nameA) - >:=> (line 72, col 4) to (line 72, col 22) -------------------------------- 72 > console.log(nameA); @@ -742,19 +578,7 @@ -------------------------------- 74 >for (let { - ~~~~~~~~ => Pos: (2487 to 2494) SpanInfo: {"start":2487,"length":357} - >for (let { - > name: nameA = "noName", - > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - >} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) - >:=> (line 74, col 0) to (line 81, col 79) -74 >for (let { - - ~~~ => Pos: (2495 to 2497) SpanInfo: {"start":2502,"length":22} + ~~~~~~~~~~~ => Pos: (2487 to 2497) SpanInfo: {"start":2502,"length":22} >name: nameA = "noName" >:=> (line 75, col 4) to (line 75, col 26) -------------------------------- @@ -814,34 +638,17 @@ >:=> (line 76, col 4) to (line 79, col 52) 80 >} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (2677 to 2764) SpanInfo: {"start":2487,"length":357} - >for (let { - > name: nameA = "noName", - > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - >} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) - >:=> (line 74, col 0) to (line 81, col 79) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (2677 to 2764) SpanInfo: {"start":2681,"length":162} + >[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] + >:=> (line 80, col 5) to (line 81, col 78) -------------------------------- 81 > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (2765 to 2843) SpanInfo: {"start":2487,"length":357} - >for (let { - > name: nameA = "noName", - > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - >} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) - >:=> (line 74, col 0) to (line 81, col 79) -81 > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) { - - ~~~=> Pos: (2844 to 2846) SpanInfo: {"start":2851,"length":18} - >console.log(nameA) - >:=> (line 82, col 4) to (line 82, col 22) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (2765 to 2846) SpanInfo: {"start":2681,"length":162} + >[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] + >:=> (line 80, col 5) to (line 81, col 78) -------------------------------- 82 > console.log(nameA);