Commit graph

984 commits

Author SHA1 Message Date
Ron Buckton
64b6c9f52e Fix emit for ES6 export default class with static initializers. Fixes #5136. 2015-10-06 12:02:55 -07:00
Wesley Wigham
28475c345d Change prologue emit location to inside module IIFEs 2015-10-05 11:22:16 -07:00
Ron Buckton
be6e43e108 Merge branch 'master' into es3Decorators 2015-10-01 16:56:25 -07:00
Wesley Wigham
3fe379ce52 lint harness, disablow control flow analysis because buggy 2015-09-30 15:45:23 -07:00
Ryan Cavanaugh
b2797bbaab Correctly emit 'as' operator left operand as expression
Fixes #4832
2015-09-28 17:24:59 -07:00
Vladimir Matveev
b046c3a570 Merge pull request #4980 from csnover/fix-4952
Put AMD dependency list inline with define call in UMD modules
2015-09-28 10:41:23 -07:00
MartyIX
08a494ecbf Update emitter.ts
Proposed fix for #4908

Can anybody confirm if I'm on a right track?
2015-09-28 07:53:15 +02:00
Colin Snover
f3969048c5 Put AMD dependency list inline with define call in UMD modules
Fixes #4952.
2015-09-25 23:57:47 +00:00
Wesley Wigham
8ff551ce08 merge with master 2015-09-21 17:38:56 -07:00
Wesley Wigham
04b0aa269f s/var/let 2015-09-18 10:29:54 -07:00
Wesley Wigham
8d6cb5fbb5 Feedback from PR 2015-09-17 13:26:04 -07:00
Wesley Wigham
f3062c59fd style nits 2015-09-17 13:03:47 -07:00
Wesley Wigham
5dfca610f9 When targeting ES3 emit default alias as indexer 2015-09-16 17:33:49 -07:00
Wesley Wigham
48ba708e5e Add es6 module kind, stop using script version to infer it 2015-09-15 15:36:37 -07:00
Daniel Rosenwasser
38b605ea7d Merge branch 'release-1.6'
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/program.ts
	tests/baselines/reference/emptyObjectBindingPatternParameter04.symbols
	tests/baselines/reference/emptyObjectBindingPatternParameter04.types
	tests/baselines/reference/nodeResolution5.errors.txt
	tests/baselines/reference/nodeResolution7.errors.txt
2015-09-15 13:36:08 -07:00
Vladimir Matveev
90273f995d Merge pull request #4749 from Microsoft/systemExportOnlyValues
Emit export specifiers in system modules only if export has a value side
2015-09-11 10:21:11 -07:00
Vladimir Matveev
0e5196180e emit export specifiers in system modules only if export has a value side 2015-09-11 09:38:51 -07:00
Vladimir Matveev
c72469a66f emit export specifiers in system modules only if export has a value side 2015-09-11 09:36:17 -07:00
Ron Buckton
7610048997 Allow decorators in ES3 2015-09-10 16:27:35 -07:00
Yui
047b6ace6a Merge pull request #3883 from Microsoft/omitComments
Do not emit /// comments when remove comments is specified
2015-09-10 14:34:53 -07:00
Yui T
40f05b7f7d Address CR 2015-09-10 13:05:51 -07:00
Daniel Rosenwasser
bed25ddf18 Merge pull request #4641 from vilic/cast-expression-parentheses-with-numeric-literal
Do not omit parentheses for numeric literal with ".property" if it can not be followed by dot operator directly.
2015-09-10 12:14:49 -07:00
vilicvane
c3323c9a69 Keep parentheses for all numeric literals with property access expression 2015-09-11 03:06:13 +08:00
Vladimir Matveev
ee56e60ca0 do not emit '=' in jsx attribute if initializer is missing 2015-09-10 11:39:06 -07:00
Daniel Rosenwasser
96a815878c Merge pull request #4657 from Microsoft/emptyVariableDeclarationBindingPattern
Fix emitted code for variable statement with no bound variables
2015-09-09 16:47:45 -07:00
Vladimir Matveev
83214150f8 do not emit '=' in jsx attribute if initializer is missing 2015-09-08 18:40:30 -07:00
Daniel Rosenwasser
5297a7f319 Ensure that zero-element binding patterns don't try to reuse assigned identifiers. 2015-09-04 17:53:56 -07:00
vilicvane
8d45711395 Else on the next line 2015-09-05 06:43:37 +08:00
vilicvane
856f2d895c Fix issue #4603 2015-09-04 21:47:28 +08:00
Sheetal Nandi
5f78d39662 If Type annotation is missing, emit design:Type as Object
Fixes #4549
2015-09-01 13:46:44 -07:00
Yui T
1854adb56b address PR 2015-08-31 20:33:02 -07:00
Ryan Cavanaugh
90aff0c654 Use synthetic identifier during emit instead 2015-08-28 14:00:36 -07:00
Ryan Cavanaugh
0e4fdf8373 Use synthetic identifier during emit instead 2015-08-26 16:12:50 -07:00
Ryan Cavanaugh
c68fc53e37 Correctly emit imported 'React' references in JSX.
Fixes bug #4422
2015-08-26 13:26:51 -07:00
Mohamed Hegazy
f3d36616b7 Merge branch 'init' of https://github.com/tinganho/TypeScript into tinganho-init
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/types.ts
2015-08-25 14:23:41 -07:00
Yui T
cb8ad4f134 Merge branch 'master' into omitComments
Conflicts:
	src/compiler/emitter.ts
2015-08-25 14:03:21 -07:00
Yui T
e36285c82c Optimize removing comment when removeComment flag is true 2015-08-25 13:47:02 -07:00
Sheetal Nandi
979e2bf7c4 Write synthesized node's text property instead of getting text from source file
This fixes issue of not being able to emit qualified expression correctly
2015-08-24 12:06:21 -07:00
Sheetal Nandi
1ca28b739e Merge pull request #4402 from Microsoft/metadataTypeName
Instead of writing text from source file use text property to write t…
2015-08-24 10:59:05 -07:00
Ryan Cavanaugh
27dabe49e0 Merge remote-tracking branch 'upstream/master' into fix4376_2
# Conflicts:
#	src/compiler/emitter.ts
2015-08-21 14:49:48 -07:00
Ryan Cavanaugh
65f4ac6d6f Merge pull request #4381 from RyanCavanaugh/fix4125
Convert HTML entities to strings (#4125)
2015-08-21 13:30:09 -07:00
Sheetal Nandi
060dbd24f4 Instead of writing text from source file use text property to write text of synthesized node
Fixes #4364
2015-08-21 13:10:30 -07:00
Mohamed Hegazy
b395fb9f45 Merge branch 'master' into outFile
Conflicts:
	src/harness/fourslash.ts
2015-08-20 17:46:38 -07:00
Mohamed Hegazy
00cd8ad745 Add --outFile and revert change make --out relative in tsconfig.json 2015-08-20 17:37:56 -07:00
Yui T
c88908e300 Add comments 2015-08-20 16:29:55 -07:00
Yui T
eda9aead11 Add comments 2015-08-20 16:21:58 -07:00
Mohamed Hegazy
2a751abe4e Merge pull request #4371 from Microsoft/emitOutputForTsx
Emit tsx files correctly in getEmitOutput calls
2015-08-20 15:12:22 -07:00
Yui T
3f66968776 Only preseve pinned comment at the top of file 2015-08-20 15:01:59 -07:00
Ryan Cavanaugh
6eca09b062 Handle non-entities as well 2015-08-20 12:30:12 -07:00
Ryan Cavanaugh
16e72971d9 Add comments 2015-08-20 12:23:27 -07:00