Commit graph

1343 commits

Author SHA1 Message Date
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
Vladimir Matveev a2c655d683 handle block scoped binding in nested blocks 2016-01-20 15:23:46 -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
Sheetal Nandi 8af2160922 Make nested object literal destructuring pattern better 2015-12-09 12:38:26 -08:00
Sheetal Nandi 4ebf5695a7 Better sourcemaps for destructuring 2015-12-09 12:38:17 -08:00
Daniel Rosenwasser 99ea3ca9b5 Moved a paren. 2015-12-08 17:49:11 -08:00
Vladimir Matveev 268e7c0d09 Merge remote-tracking branch 'origin/master' into elideExportStarForNonValues 2015-12-08 13:15:56 -08:00
Ryan Cavanaugh 05c17032a9 Actually include the fix.... 2015-12-07 11:57:54 -08:00
Wesley Wigham 9b441d8343 Merge pull request #5148 from weswigham/duplicate-export-behavior
Make export var or export *'s with duplicate identifiers an error
2015-12-04 14:18:58 -08:00
Wesley Wigham bc73f31acc Fix #5928 - Write line after shebang 2015-12-04 13:38:24 -08:00
Wesley Wigham 83e61cfa68 fix esmodule big, unify export emit between es6/pre-es6 2015-12-02 20:50:24 -08:00
Mohamed Hegazy 19d7e629da Merge pull request #5852 from holtwick/feature/await_for_es5
Enable await in ES5 and ES2015 script mode
2015-12-01 17:08:09 -08:00
Ron Buckton 7d920c2aad Merge pull request #5841 from Microsoft/fixAsyncReferencedImport
Fixes #5789.
2015-12-01 15:04:10 -08:00
Wesley Wigham 02d96f67bb trio of missed style nits 2015-12-01 14:57:59 -08:00
Wesley Wigham 0464138c84 Merge pull request #5866 from weswigham/unnamed-default-exports
Fix #5844 - add many new tests covering named/anonymous default exports
2015-12-01 14:36:02 -08:00
Sheetal Nandi 0c8aa41b26 Merge pull request #5835 from Microsoft/noEmit
Do not emit files if noEmit is specified
2015-12-01 14:34:28 -08:00
Ron Buckton 67a4fe5d67 Support for assignment/destructuring using super in an async method 2015-12-01 14:29:37 -08:00
Wesley Wigham cff83c5081 Fix #5844 - add many new tests covering named/anonymous default exports 2015-12-01 14:05:46 -08:00
Ron Buckton 88a43ccb4a Fix emit for type as expression 2015-12-01 12:12:31 -08:00
Dirk Holtwick acd1760c8c Fix whitespace issues 2015-12-01 20:32:53 +01:00
Dirk Holtwick c12d29bda5 Simplifying the pre ES6 async/await change 2015-12-01 20:26:20 +01:00
Ron Buckton 2745895064 Alternate approach to fix super calls in async methods. 2015-12-01 11:13:54 -08:00
Dirk Holtwick 1fb8a249df Enable await in ES6 and ES2015 script mode
Even though strictly generators are an ES6 feature the real world support
is large enough to use the feature in well known environments like
node.js or Electron app. Since the previous output was not working at
all anyway it feels like a good compromise to at least emit working code
while still having the warning in place. The user would also need to add
"use strict" on top of her .ts file to make it work with node.js.
2015-12-01 10:26:14 +01:00
Sheetal Nandi f315fc1c9e Merge branch 'master' into noSourcemapNames 2015-11-30 16:33:18 -08:00
Sheetal Nandi 322f084370 Merge branch 'master' into noSourcemapNames 2015-11-30 16:27:11 -08:00
Sheetal Nandi a87169829c Merge branch 'master' into sourceMapAndBreakpointDecorators 2015-11-30 14:14:06 -08:00
Sheetal Nandi ccfa625b32 var rename as per PR feedback 2015-11-30 14:03:28 -08:00
Ron Buckton 266600da08 Merge pull request #5780 from Microsoft/extractSourceMaps
Extract source map generation logic out of the emitter.
2015-11-30 12:51:36 -08:00
Sheetal Nandi acedf3c247 Do not emit files if noEmit is specified
Handles #5799
2015-11-30 12:46:53 -08:00
Wesley Wigham 8c40dc8fae Merge branch 'master' into duplicate-export-behavior 2015-11-25 17:54:08 -08:00
Wesley Wigham c9b3b7e42e Merge pull request #5661 from weswigham/use-common-directory-for-out
Use common source directory for calculating concatenated module paths
2015-11-25 17:18:48 -08:00
Wesley Wigham ec775ba4aa Merge pull request #5648 from weswigham/default-commonjs-es6
Handle default class exports when targeting es6 with non-es6 module kinds
2015-11-25 17:15:06 -08:00
Wesley Wigham d1c467ff4d Merge branch 'master' into use-common-directory-for-out 2015-11-25 16:41:58 -08:00
Ron Buckton b33eff1143 PR feedback 2015-11-25 12:47:32 -08:00
Ron Buckton 8909c3a2dd Merge pull request #5725 from Microsoft/stringTypesCleanup
Disambiguate string literal types from other string literals.
2015-11-24 15:23:25 -08:00
Sheetal Nandi a7cc86380d Merge branch 'master' into sourceMapAndBreakpointDecorators 2015-11-24 14:53:18 -08:00
Wesley Wigham 27149f3c88 only emit use strict if a use strict prologue isnt found 2015-11-24 13:31:30 -08:00
Ron Buckton 5c23a5f11e Extract source map generation logic out of the emitter. 2015-11-23 22:38:05 -08:00
Wesley Wigham a03f06f766 add strict mdoe directive to all nones6 module emits 2015-11-23 14:39:41 -08:00
Wesley Wigham 3b6fa314da new tests 2015-11-23 13:12:34 -08:00
Wesley Wigham a9be53093c change enum emit 2015-11-23 12:55:29 -08:00
Wesley Wigham 6a8e78cdc0 fix ES6 emit for namespaces to only emit one export binding 2015-11-23 12:43:28 -08:00
Vladimir Matveev 988a51237b address PR feedback - fixed typo in comment 2015-11-22 21:28:07 -08:00
Vladimir Matveev 181c943feb correctly capture 'this' when converting loops into functions 2015-11-21 20:11:39 -08:00
Wesley Wigham b11786866b Merge branch 'master' into use-common-directory-for-out 2015-11-20 13:32:12 -08:00
Ron Buckton 68c292c445 Adds a generic algorithm to create a shallow, memberwise clone of a node. 2015-11-19 17:42:12 -08:00
Ron Buckton f5b8619199 Adds StringLiteralType to SyntaxKind to disambiguate string literals in a type position. 2015-11-19 17:08:51 -08:00
Sheetal Nandi e23b0c65ea Fix the source map emit for decorators
Handled #5584
2015-11-19 16:48:29 -08:00
Sheetal Nandi a3bec922fb When the node contains decorators the actual start of the node is after skipping trivia from decorators end 2015-11-19 16:48:25 -08:00
Sheetal Nandi 883b8d9347 Merge pull request #5471 from Microsoft/jsFileCompilation
Compilation of Js Files
2015-11-19 16:30:40 -08:00
Ron Buckton 7d6100bbe8 Merge pull request #5719 from Microsoft/typesCleanup2
Additional Types cleanup.
2015-11-19 15:32:28 -08:00
Ron Buckton 93af2b2beb Comment cleanup. 2015-11-19 15:31:56 -08:00
Ron Buckton 5915fbd292 Adds minimal support for 'this' types in decorator metadata, emitting 'Object' for now. 2015-11-19 09:53:32 -08:00
Sheetal Nandi b73ce26937 Dont emit names index mapping into the sourcemap
Since sourcemap spec is not very clear about symbol translation and
use of nameIndex of the mapping, dont emit it
2015-11-18 15:29:51 -08:00
Wesley Wigham c7a3bee916 Merge branch 'master' into use-common-directory-for-out 2015-11-18 13:10:23 -08:00
Sheetal Nandi a19307d533 Merge branch 'master' into jsFileCompilation 2015-11-18 11:26:58 -08:00
Wesley Wigham e41f1ae04d only check against default flag 2015-11-17 13:03:15 -08:00
Wesley Wigham 21250edb0c Merge branch 'master' into default-commonjs-es6 2015-11-17 12:55:13 -08:00
Ron Buckton 443abe6dea Adds ThisType to SyntaxKind, to distinguish between a 'this' expression and a 'this' type. Needed for transforms 2015-11-17 10:53:29 -08:00
Vladimir Matveev 33fc598a8a clean residual state in binder and emitter, clean test data in version cache test 2015-11-16 23:24:25 -08:00
Sheetal Nandi 073b69aaf5 Merge branch 'master' into jsFileCompilation 2015-11-16 12:04:42 -08:00
Wesley Wigham e41bfd1ccc fix many lints 2015-11-13 17:43:53 -08:00
Wesley Wigham cb1724bd44 in declaration emit, handle = require (again) 2015-11-13 15:26:38 -08:00
Sheetal Nandi fc07763499 Merge branch 'master' into jsFileCompilation 2015-11-13 13:44:57 -08:00
Wesley Wigham 521a0a160c Fix class exports with varrying module emits while targeting es6 2015-11-12 19:03:52 -08:00
Wesley Wigham e79253a07c fix handling of decorated default exports on es6 with nones6 modules 2015-11-12 18:27:47 -08:00
Sheetal Nandi 3d6312a1da Merge pull request #5643 from Microsoft/lambdaSourceMap
Fix sourcemap emit for the labda expression that is on another line
2015-11-12 16:09:45 -08:00
Sheetal Nandi 127a30e151 Fix the sourcemap emit of lambda expression without return on another line
Handles #5122
2015-11-12 14:15:33 -08:00
Ryan Cavanaugh f90ef92e7c Simplify regex a bit 2015-11-12 13:37:03 -08:00
Ryan Cavanaugh ea29793acd Quote only names that need to be quoted, not the reverse 2015-11-12 11:02:19 -08:00
Vladimir Matveev 072e93898d Merge pull request #5535 from Microsoft/computedPropertiesInDestructuringPR
allow computed properties in destructuring, treat computed properties…
2015-11-10 13:11:05 -08:00
Vladimir Matveev 9da2d3ee3f merge with master 2015-11-10 12:22:48 -08:00
Vladimir Matveev 5d9e7e10c0 Merge pull request #5576 from Microsoft/importsInShorthandProps
use modulekind to check if initializer for shorthand property assignm…
2015-11-09 14:57:47 -08:00
Vladimir Matveev 6f08e89455 use modulekind to check if initializer for shorthand property assignment should be emitted 2015-11-09 13:34:30 -08:00
Wesley Wigham 977c3eec22 fix lints 2015-11-09 12:50:38 -08:00
Wesley Wigham cadf54334b Merge branch 'master' into out-module-concat 2015-11-09 12:38:23 -08:00
Vladimir Matveev a531610eb9 fix merge issue 2015-11-09 10:46:50 -08:00
Vladimir Matveev 810c45b5fb Merge branch 'master' into elideExportStarForNonValues 2015-11-09 10:38:38 -08:00
Vladimir Matveev 45746d11a6 make emitter singleton, replace reading file properties with local access, use one constructor function for all nodes 2015-11-06 16:21:43 -08:00
Sheetal Nandi 4c842591f7 Merge branch 'master' into jsFileCompilation 2015-11-06 12:39:42 -08:00
Vladimir Matveev 572db9c403 merge with master 2015-11-05 14:46:27 -08:00
Vladimir Matveev 2de55febb1 merge with master 2015-11-04 21:49:44 -08:00
Vladimir Matveev db2b23da00 allow computed properties in destructuring, treat computed properties with literal expressions similar to literal named properties 2015-11-04 15:35:21 -08:00
Wesley Wigham 8a93b48945 fix lint: prefer const 2015-11-04 14:51:36 -08:00
Wesley Wigham 6f9702112f Merge branch 'master' into out-module-concat 2015-11-02 16:57:07 -08:00
Wesley Wigham 265fb518a8 feedback from CR 2015-11-02 16:54:12 -08:00
Vladimir Matveev fb15e9c7c0 Merge pull request #4788 from Microsoft/reachabilityChecks
initial revision of reachability checks
2015-11-02 14:55:19 -08:00
Wesley Wigham 6de5221dcd dont mutate 2015-11-02 12:53:27 -08:00
Yui f503169f8c Merge pull request #5472 from MartyIX/issue-5183
Fix copyright comments are not preserved when generating d.ts files
2015-11-02 11:21:47 -08:00
Nathan Shively-Sanders cc64210519 Merge pull request #5474 from Microsoft/forbid-this-as-constructor-parameter-type
Forbid this as constructor parameter type
2015-11-02 11:04:36 -08:00
Martin Vseticka 1703972dd2 Preserve copyright comments when generating d.ts files 2015-11-02 17:07:16 +01:00
Nathan Shively-Sanders 201266b97f Switch to isNodeDescendantOf 2015-10-31 12:42:04 -07:00
Daniel Rosenwasser 90bac23be4 Always generate an identifier in a for-of loop. 2015-10-30 15:59:16 -07:00
Sheetal Nandi 2b582a0b71 Simplifty declaration emitter logic by using forEachExpectedEmitFile 2015-10-30 15:04:46 -07:00
Wesley Wigham 95a3fc7143 feedback form pr, new baselines 2015-10-30 14:52:45 -07:00
Sheetal Nandi 06bf08c17f Simplify logic to get declaration diagnostis 2015-10-30 13:43:52 -07:00
Sheetal Nandi a0318c7b63 Create a utility to iterate over each emitFileName and use it in emitter
TODO: declaration emitter to use this utility
TODO: emit file name compiler option verification to use this utility
2015-10-30 12:54:30 -07:00
Sheetal Nandi 94a647b72b Do not emit declarations for javascript files 2015-10-30 11:36:39 -07:00
Wesley Wigham 6c812420ec Merge branch 'master' into out-module-concat 2015-10-30 11:27:34 -07:00
Sheetal Nandi b217b8b620 Merge branch 'master' into jsFileCompilation 2015-10-30 09:34:32 -07:00
Sheetal Nandi ff933be5ff Populate if emit was skipped correctly as part of emit result 2015-10-28 13:07:50 -07:00
Sheetal Nandi 93cc1e530b Check source map files are being overwritten 2015-10-28 13:07:35 -07:00
Sheetal Nandi 3215438ddf Dont emit declaration file if there are errors in the source file 2015-10-28 13:06:52 -07:00
Vladimir Matveev dafcf26a06 merge with master 2015-10-27 10:50:18 -07:00
Vladimir Matveev d2a11b55dc merge with master 2015-10-27 10:41:21 -07:00
Vladimir Matveev 4dbd04cdeb Merge pull request #5208 from Microsoft/capturedBlockScopedVars
support block scoped vars captured in closures inside loops
2015-10-26 16:58:15 -07:00
Wesley Wigham 8e492a496f Merge pull request #5370 from weswigham/system-export-var
Fix system export var when targeting ES6
2015-10-23 11:20:22 -07:00
Ryan Cavanaugh bede6edc51 Merge pull request #5366 from RyanCavanaugh/typeOperatorSpacingRule
Type operator spacing rule
2015-10-22 16:33:21 -07:00
Wesley Wigham dfada8ec84 remove es6 check form system module 2015-10-22 14:24:04 -07:00
Ryan Cavanaugh 69236c9be8 Add rule to check spaces around intersection/union type operators 2015-10-22 11:35:48 -07:00
Wesley Wigham d18facbdc1 fix lint 2015-10-21 15:54:35 -07:00
Wesley Wigham 2fcdb0f700 bit more cleanup 2015-10-21 15:53:59 -07:00
Wesley Wigham 3f52686974 cleanup a bit, think toward the future 2015-10-21 15:37:58 -07:00
Wesley Wigham 37bc2773a3 feedback form pr 2015-10-21 15:27:33 -07:00
Wesley Wigham 7a4e995f01 feedback form pr 2015-10-20 15:14:18 -07:00
Ron Buckton 85e587e1d3 Fixes issue in emitExpressionIdentifier when combining --target ES6 with --module.
Fixes #5315.
2015-10-20 10:59:23 -07:00
Wesley Wigham a83b85870c Merge branch 'master' into out-module-concat 2015-10-19 17:17:08 -07:00
Vladimir Matveev d2045a8784 fix typo 2015-10-19 15:51:20 -07:00
Vladimir Matveev 96a4b237ac Merge branch 'master' into capturedBlockScopedVars 2015-10-19 14:22:25 -07:00
Vladimir Matveev f279c82409 fix linter issues 2015-10-19 14:21:53 -07:00
Vladimir Matveev c13c8bf316 addressed PR feedback 2015-10-19 14:10:27 -07:00
Vladimir Matveev b632b5fdcf merge with master/address PR feedback 2015-10-16 11:21:32 -07:00
Sheetal Nandi acf7de7d34 Merge branch 'master' into tscJsFiles 2015-10-15 12:30:55 -07:00
Yui 77eaf04386 Merge pull request #4914 from Microsoft/exponentiation
[ES7] Exponentiation
2015-10-12 16:37:45 -07:00
Yui T 90258794a6 Address PR feedback 2015-10-12 14:32:48 -07:00
Sheetal Nandi b38a81bc73 Emit enabled for JS files 2015-10-12 14:31:44 -07:00
Sheetal Nandi f28fbfd7c5 Merge branch 'master' into tscJsFiles 2015-10-12 12:51:24 -07:00
Sheetal Nandi 5e14edb4b7 Verify the emit file name is unique and doesnt overwrite input file
Fixes #4424
2015-10-12 12:25:13 -07:00
Ryan Cavanaugh c05297cfea Merge pull request #5178 from RyanCavanaugh/fix5132
Escape quotes when emitting React
2015-10-12 11:56:46 -07:00
Yui T e405ccebec fix linter failure 2015-10-12 11:48:38 -07:00
Wesley Wigham 1ae7b7c254 Merge branch 'master' into out-module-concat 2015-10-12 10:21:01 -07:00
Vladimir Matveev f0ba3f471a support block scoped vars captured in closures inside loops 2015-10-11 01:12:26 -07:00
Vladimir Matveev 1b5dc0d7d1 Merge pull request #5121 from Microsoft/shorthandPropsInDestructuring
parse/check/emit shorthand property assignment in destructuring
2015-10-10 22:39:05 -07:00
Yui T d57ee1db79 Merge branch 'master' into errorsuperbeforethis
Conflicts:
	src/compiler/checker.ts
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/types.ts
2015-10-08 23:57:26 -07:00
Yui T 1fc11aa18f Address PR feedback, add comment 2015-10-08 23:25:05 -07:00
Yui T 5e921c1d8d Address PR feedback, remove scriptTarget ES7 2015-10-08 17:12:22 -07:00
Yui T af5dc3e3b3 Address PR feedback. Always emit parentheses around emit capturing 2015-10-08 16:59:49 -07:00
Sheetal Nandi 2c3c321593 Merge branch 'master' into tscJsFiles 2015-10-08 14:40:40 -07:00
Yui T cd3f711a76 Address PR feedback 2015-10-08 14:38:58 -07:00
Ryan Cavanaugh d229ae4be5 Escape quotes when emitting React 2015-10-08 11:28:18 -07:00
Anders Hejlsberg 533c4eb0c2 Emit export assignments when target is ES6 and module kind is not ES6 2015-10-08 10:18:14 -07:00
Yui T 3b8cdb684b Address comment to increment emitCount in separate line 2015-10-07 15:26:09 -07:00
Ron Buckton f52b7cc2c5 Removed unnecessary check 2015-10-06 15:41:47 -07:00
Yui T bfaa51b4e9 Add comment and address PR on comment 2015-10-06 14:09:47 -07:00
Ron Buckton ab73b4f103 Fix linter warnings. 2015-10-06 12:37:10 -07:00
Ron Buckton 64b6c9f52e Fix emit for ES6 export default class with static initializers. Fixes #5136. 2015-10-06 12:02:55 -07:00
Yui T 80cdfd4187 Fix emitting parenthesis when downlevel 2015-10-05 18:57:11 -07:00
Sheetal Nandi b580c5588e Merge branch 'master' into tscJsFiles 2015-10-05 16:42:37 -07:00
Vladimir Matveev a975895e4d parse/check/emit shorthand property assignment in destructuring 2015-10-05 14:39:57 -07:00
Wesley Wigham d8ec703370 merge with master 2015-10-05 13:25:40 -07:00
Wesley Wigham 05dc9daf7d concatenated type emit 2015-10-05 13:22:42 -07:00
Wesley Wigham 28475c345d Change prologue emit location to inside module IIFEs 2015-10-05 11:22:16 -07:00
Vladimir Matveev 32b1ad36ec do not emit exportsStar function if module does not expose any values 2015-10-04 22:00:57 -07:00
Yui T 5f7914ca62 Downlevel emit 2015-10-02 18:50:45 -07:00
Wesley Wigham 03256e7c86 cusotm tests, forbid umd 2015-10-02 17:43:58 -07:00
Wesley Wigham 4c4087c656 Add compiler error for incompatible module formats 2015-10-02 17:03:29 -07:00