Commit Graph

1145 Commits

Author SHA1 Message Date
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
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
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
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