Sheetal Nandi
cee3388a29
Test cases for destructuring with default values in "for"
2015-12-11 14:42:25 -08:00
Sheetal Nandi
41ce29a033
Test cases for destructuring with default values in "for of"
2015-12-11 14:18:31 -08:00
Sheetal Nandi
25c6b16894
Test cases for destructuring with default values in parameter position
2015-12-11 13:54:49 -08:00
Sheetal Nandi
e362cb2c72
Test case for array binding pattern destructuring assignment with default values
2015-12-11 11:00:55 -08:00
Sheetal Nandi
321062a4d4
Test case for variable destructuring statement with array binding pattern and with default values
2015-12-11 10:59:46 -08:00
Sheetal Nandi
c7258db2b3
Test case for variable destructuring statement with object binding pattern and with default values
2015-12-11 10:44:16 -08:00
Sheetal Nandi
9c413f7d55
Accepting existing test cases baseline after verification
2015-12-10 15:20:32 -08:00
Sheetal Nandi
513e1f5fce
If the destructuring assignment is synthetic use the left side as source map
...
This helps in scenarios like below where the assignment is created synthetically
for ({a} of {a: string}) {
}
2015-12-10 15:03:10 -08:00
Sheetal Nandi
631e62d7ba
Tests for source map of variable declarations with binding pattern in differnt order in the declaration list
2015-12-10 14:44:46 -08:00
Sheetal Nandi
7d60c5e630
Fix the temporary assignment source maps in a better way
...
This doesnt create synthetic nodes with source map node on them
And makes us determine what to put source map on for temporary assignments
2015-12-10 14:10:34 -08:00
Sheetal Nandi
8948f9be50
Add support for modifying last encoded source map's source location
...
With this, we can just highlight the bindingElement when the temp variable
for it is assigned.
Note there are few scenarios like below which would still highlight let part
but thats because of how default value source mapping is currently which is next
in pipeline to support binding element with default values
for (let {name: nameA, skill: skillA } of robots) {
console.log(nameA);
}
or
for (let [numberA2, nameA2, skillA2] of robots) {
console.log(nameA2);
}
2015-12-10 12:29:14 -08:00
Sheetal Nandi
9fd525bc7c
Simplify the array binding pattern element to determine what to highlight
2015-12-09 13:02:09 -08:00
Sheetal Nandi
250ddca65b
Update existing baselines
2015-12-09 12:39:57 -08:00
Sheetal Nandi
bbfe6b5e94
Test case for sourcemap of "For of" that initializes vars using object literal binding pattern
2015-12-09 12:39:53 -08:00
Sheetal Nandi
35ec9caf65
Make sourcemap of "For" that initializes vars using object literal binding pattern better
2015-12-09 12:39:48 -08:00
Sheetal Nandi
67d2877718
Test case for "For" that initializes vars using object literal binding pattern
2015-12-09 12:39:44 -08:00
Sheetal Nandi
ac4b2bd795
Test case for "For" that initializes vars using array binding pattern
2015-12-09 12:39:40 -08:00
Sheetal Nandi
a99c9a00dc
Test case for "For of" that initializes vars using array binding pattern
2015-12-09 12:39:35 -08:00
Sheetal Nandi
b1d395c4cf
Make the destructuring array literal assignment better with sourcemap
2015-12-09 12:39:31 -08:00
Sheetal Nandi
6baa36b546
Test case for assignment expression with Array destructuring pattern
2015-12-09 12:39:27 -08:00
Sheetal Nandi
1da5b15c1a
Test case for "For" statement with array binding pattern
2015-12-09 12:39:23 -08:00
Sheetal Nandi
24d0c98b51
Test case for "For" statement with object binding pattern
2015-12-09 12:39:18 -08:00
Sheetal Nandi
d8701c437c
Test case for For Of statement with array binding pattern
2015-12-09 12:39:14 -08:00
Sheetal Nandi
edd55ddf51
Make the source map of "for of" destructuring - object binding pattern better
2015-12-09 12:39:09 -08:00
Sheetal Nandi
c0f9de6d2c
Test case for ForOf statement with object binding pattern
2015-12-09 12:39:05 -08:00
Sheetal Nandi
6f896836b8
Test cases for nested array binding pattern destructuring in parameters
2015-12-09 12:39:01 -08:00
Sheetal Nandi
bdcdd67fb2
Test case for parameter array binding pattern
2015-12-09 12:38:56 -08:00
Sheetal Nandi
de7626356c
Better the destructuring of nested array binding pattern
2015-12-09 12:38:52 -08:00
Sheetal Nandi
7945de4cd3
Test case for nested array binding pattern
2015-12-09 12:38:48 -08:00
Sheetal Nandi
7c618a494d
Better the sourcemap for array binding pattern
2015-12-09 12:38:43 -08:00
Sheetal Nandi
0532e8cb11
Test cases for variable statement with array binding pattern
2015-12-09 12:38:39 -08:00
Sheetal Nandi
ad73ab2c16
Test cases for nested object binding pattern in parameter declaration
2015-12-09 12:38:35 -08:00
Sheetal Nandi
7acc51c7a7
Tests for parameter object binding pattern
2015-12-09 12:38:31 -08:00
Sheetal Nandi
8af2160922
Make nested object literal destructuring pattern better
2015-12-09 12:38:26 -08:00
Sheetal Nandi
b497cbc635
Test case for nested object binding pattern in variable statement
2015-12-09 12:38:22 -08:00
Sheetal Nandi
4ebf5695a7
Better sourcemaps for destructuring
2015-12-09 12:38:17 -08:00
Sheetal Nandi
e28272235c
Test case for destructuring of variable statement
2015-12-09 12:38:13 -08:00
Ryan Cavanaugh
383cbf06c4
Merge pull request #5996 from RyanCavanaugh/fix5994
...
Disallow modifiers in object literal property assignment
2015-12-08 17:40:50 -08:00
Ryan Cavanaugh
992bd7a2e4
Merge pull request #5993 from RyanCavanaugh/fix5991
...
Parse JSX attributes as AssignmentExpressions
2015-12-08 14:40:55 -08:00
Vladimir Matveev
f3e4befc3e
merge with master
2015-12-08 13:28:55 -08:00
Vladimir Matveev
268e7c0d09
Merge remote-tracking branch 'origin/master' into elideExportStarForNonValues
2015-12-08 13:15:56 -08:00
Ryan Cavanaugh
964fbea9c1
Fix up for 'async'
2015-12-08 10:57:33 -08:00
Ryan Cavanaugh
92d7d1c953
Disallow modifiers in object literal property assignment
...
Fixes bug #5994
2015-12-08 10:11:29 -08:00
Ryan Cavanaugh
51c547428b
Parse JSX attributes as AssignmentExpressions
...
We should issue an error when parsing `<div x={1, 2} />` as the comma operator is not a legal production in a JSX Expression
Fixes (mitigates?) bug #5991
2015-12-08 09:53:47 -08:00
SaschaNaz
595f134e8b
space around arrow
2015-12-09 00:02:10 +09:00
yaoyao
e95ae4f100
Improve 'Cannot compile modules unless the '--module' flag is provided.' message
2015-12-08 08:56:41 +08:00
Daniel Rosenwasser
b4f4dadeb6
Merge pull request #5979 from DanCorder/5058
...
Fix for #5058 - Exclude implemented interface functions from autocompletion suggestions.
2015-12-07 15:06:53 -08:00
Dan Corder
c6feaa016a
Remove unnecessary I2 from test case
2015-12-07 22:43:44 +00:00
Dan Corder
ff4147af01
Fix for #5058 - Exclude implemented interface functions from autocompletion suggestions.
2015-12-07 19:47:56 +00:00
Ryan Cavanaugh
04f8c32d32
Identify JSX closing tags as identifiers so they emit correctly
...
Fixes bug #5955
2015-12-07 11:07:37 -08:00