Commit graph

1196 commits

Author SHA1 Message Date
Kanchalai Tanglertsampan
bc2599083c Merge branch 'master' into fix4867_transpiling 2016-01-26 15:37:49 -08:00
Ron Buckton
da6aadbea8 Merge branch 'master' into alternateFixSuperInAsyncMethod 2016-01-26 11:49:30 -08:00
Ron Buckton
b00cae87b3 Moved isSuperPropertyOrElementAccess to utilities 2016-01-26 11:36:20 -08:00
york yao
d06d66cf5d use a local string rather than a function 2016-01-25 13:35:12 +08:00
york yao
72c3bb6930 extract a helper method 2016-01-25 10:48:23 +08:00
york yao
88676d680f a better way since languageVersion is a number 2016-01-25 07:50:22 +08:00
york yao
ac196eb2aa use const rather than var when emitting external import declaration and the target is es6 2016-01-24 17:10:44 +08:00
Ron Buckton
6084dec8b9 Merge branch 'master' into alternateFixSuperInAsyncMethod 2016-01-21 16:52:45 -08:00
Yui T
a1acf8f0f3 Merge branch 'master' into fix4867_transpiling 2016-01-21 16:19:25 -08:00
Yui T
125d1f448a Address PR 2016-01-21 16:16:52 -08:00
Ron Buckton
2374f1f9a5 Merge branch 'master' into moveEmitFlagsToBinder 2016-01-20 17:53:47 -08:00
Ron Buckton
56141c2f84 Merge pull request #6506 from Microsoft/awaiterUpdate
Updated version of __awaiter.
2016-01-19 16:37:10 -08:00
Ron Buckton
6e5948f622 Merge branch 'master' into moveEmitFlagsToBinder 2016-01-19 16:13:38 -08:00
Daniel Rosenwasser
26fdf891e9 Fix lint errors. 2016-01-16 14:05:46 -08:00
Ron Buckton
5943f043ea Merge branch 'master' into alternateFixSuperInAsyncMethod 2016-01-15 12:51:30 -08:00
Ron Buckton
7079de8b93 Updated version of __awaiter.
Fixes #5941.
2016-01-15 12:40:34 -08:00
Vladimir Matveev
0a0c3e0cbd do not crash if initializer in For-statement is missing 2016-01-14 23:20:21 -08:00
Ron Buckton
fb1ad3231c Move emit helper flags to binder. Fixes #6113 2016-01-14 17:51:34 -08:00
Mohamed Hegazy
869b81162f Merge pull request #6019 from Microsoft/sourceMapDestructuring
Fixes for source map of destructuring downlevel syntax
2016-01-11 14:36:28 -08:00
Kanchalai Tanglertsampan
62256bd3c6 Merge branch 'master' into fix4867_transpiling 2016-01-10 18:04:15 -08:00
Mohamed Hegazy
cc1947b94f Rename jsxNamespace to reactNamespace 2016-01-07 13:59:25 -08:00
Mohamed Hegazy
c0b28a3a40 Merge branch 'react-factory-option' of https://github.com/rwyborn/TypeScript into rwyborn-react-factory-option
Conflicts:
	src/compiler/checker.ts
2016-01-07 13:50:03 -08:00
Vladimir Matveev
dbe8489087 Revert "Merge pull request #6098 from guybedford/master"
This reverts commit 996f16940e, reversing
changes made to 51fd41b0c7.
2016-01-05 10:40:24 -08:00
Mohamed Hegazy
996f16940e Merge pull request #6098 from guybedford/master
Naive implementation for #6097
2016-01-04 09:38:27 -08:00
Nathan Shively-Sanders
ec4c6fea2d Merge branch 'master' into lint-nested-++ 2016-01-04 08:56:05 -08:00
Ryan Cavanaugh
3288f5bb6d Make linter happy 2015-12-29 13:16:00 -08:00
Ryan Cavanaugh
e12855bca0 Escape quotes when they appear as HTML entities in JSX text
Fixes #6241
2015-12-29 12:39:27 -08:00
Sheetal Nandi
acf54bb416 Merge branch 'master' into sourceMapDestructuring 2015-12-22 16:21:38 -08:00
Nathan Shively-Sanders
abf9961528 Merge branch 'master' into lint-nested-++ 2015-12-22 16:12:07 -08:00
Nathan Shively-Sanders
401a393519 Fix ++/-- lint 2015-12-22 15:45:00 -08:00
Yui T
2fc906ef33 Address PR 2015-12-21 17:07:18 -08:00
Yui T
677e080dad Add tests 2015-12-21 16:23:51 -08:00
Daniel Rosenwasser
3969b89b23 Fixups for #6163. 2015-12-21 13:40:59 -08:00
Dan Corder
aba197cd4b Fix issue #5810 doubled comment on functions in array literals 2015-12-18 22:35:08 +00:00
Vladimir Matveev
a8f87bb2ca only '++' and '--' unary operators can change exports 2015-12-18 11:21:31 -08:00
Rowan Wyborn
9d11f2b3ce Merge branch 'master' into react-factory-option 2015-12-18 21:57:38 +11:00
Rowan Wyborn
b7f60704bb Initial check in - Support other JSX factories Issue #3788
- added jsxNamespace compile option
- when jsx mode is "react", jsxNamespace optionally specifies the emit namespace for React calls, eg "--jsxNamespace MyDOMLib" will emit calls as MyDOMLib.createElement (instead of React.createElement)
- symbol specified by jsxNamespace must be present, else compile error is generated (same handling as is done for React symbol when no jsxNamespace is specified)
2015-12-18 21:56:08 +11:00
Daniel Rosenwasser
66cf6be6d8 Removed unused declarations in 'emitter.ts'. 2015-12-17 14:55:08 -08:00
Sheetal Nandi
8f98e3f160 Merge branch 'master' into sourceMapDestructuring 2015-12-17 13:29:45 -08:00
Guy Bedford
f0a8bf566c add __moduleName to System.register 2015-12-14 18:01:55 +02:00
Sheetal Nandi
df3a74b6ca Removed some unnecessary changes and added comments 2015-12-10 15:35:47 -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
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
35ec9caf65 Make sourcemap of "For" that initializes vars using object literal binding pattern better 2015-12-09 12:39:48 -08:00
Sheetal Nandi
b1d395c4cf Make the destructuring array literal assignment better with sourcemap 2015-12-09 12:39:31 -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
de7626356c Better the destructuring of nested array binding pattern 2015-12-09 12:38:52 -08:00
Sheetal Nandi
7c618a494d Better the sourcemap for array binding pattern 2015-12-09 12:38:43 -08:00