Commit graph

213 commits

Author SHA1 Message Date
Daniel Rosenwasser f51a42c6de Fixed issue where template expression in call expressions would emit with unnecessary parentheses.
Fixes #1205.
2014-11-19 17:04:34 -08:00
Yui T df54db758a Merge branch 'master' into usingShorthand
Conflicts:
	bin/tsc.js
	bin/typescriptServices.js
	src/compiler/parser.ts
2014-11-18 18:25:51 -08:00
Yui T 970aac6458 Address code review 2014-11-18 16:32:18 -08:00
Mohamed Hegazy 22e2bde7e9 Merge pull request #1158 from gisenberg/master
Adding support for named AMD modules.
2014-11-18 12:18:48 -08:00
Yui T 26a5e4333e Refactoring emitter using short-hand 2014-11-18 12:04:18 -08:00
Yui T 1b66ee6f3a Merge branch 'master' into shorthandProperty
Conflicts:
	src/compiler/checker.ts
2014-11-17 11:35:02 -08:00
Dick van den Brink e7bb2e0ba7 Merge branch 'master' into warnaserror
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/types.ts
	src/harness/harness.ts
2014-11-16 22:02:00 +01:00
Yui T 880e958d11 Fix comment 2014-11-14 16:30:03 -08:00
Yui T a8ebdf0cbd Address code review 2014-11-13 12:02:13 -08:00
Yui T 1888f736e1 Fix emit for shotr-hand assignment for module 2014-11-13 11:33:31 -08:00
Gabriel Isenberg 843d3ec7ca Added a compiler test for named AMD modules. 2014-11-13 11:00:06 -08:00
Gabriel Isenberg 2302bd23ab Initial support for named AMD modules. 2014-11-12 11:45:43 -08:00
Vladimir Matveev 89dee07bf2 merge with master 2014-11-09 23:23:49 -08:00
Yui T 8a779e1e85 Basic typechecking and emitting for short hand property assignment
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/emitter.ts
2014-11-06 15:01:39 -08:00
Jason Freeman 279166be50 Address feedback 2014-11-06 11:51:49 -08:00
Jason Freeman 6c85dbe140 Refactor Declaration.name into Identifier | ComputedPropertyName 2014-11-05 17:47:30 -08:00
Vladimir Matveev edbb99d959 merge with master 2014-11-05 17:34:42 -08:00
vladima 9295a0e357 update LKG, always emit value as initializer for const enums when 'preserveConstEnums' is specified 2014-11-04 11:26:01 -08:00
Vladimir Matveev a8e5aad6e8 use const enums in compiler 2014-11-03 23:31:38 -08:00
Cyrus Najmabadi ecd31b6f6f Emit case clause statements on the same line if that's how they were written in source. 2014-11-03 18:36:01 -08:00
Vladimir Matveev 2d94030f58 inline enum constant values for indexed access when index is string literal 2014-11-01 18:16:48 -07:00
Vladimir Matveev 0b738e86c4 merge with master 2014-11-01 02:06:37 -07:00
Vladimir Matveev 7d80b7186d do not treat module that contains only const enums as instantiated 2014-11-01 00:56:00 -07:00
Vladimir Matveev 270d18711c addressed CR feedback 2014-10-30 00:55:44 -07:00
Vladimir Matveev e949eda583 const enums, iteration 1: const enums can be used in imports, const enums can be merged only with const enums. 2014-10-29 00:17:16 -07:00
Vladimir Matveev 6f4ea86227 merge with master 2014-10-28 21:49:58 -07:00
Daniel Rosenwasser 35cf95c146 Merge branch 'master' into templates
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/types.ts
	src/services/utilities.ts
2014-10-28 19:06:07 -07:00
Daniel Rosenwasser b8535d339c Omit empty template tail literals. 2014-10-28 18:47:43 -07:00
Daniel Rosenwasser aabfebd40e Fixed emit for parenthesized template expressions. 2014-10-28 18:47:29 -07:00
Daniel Rosenwasser 4aafe1d2bc Addressed CR feedback. 2014-10-28 18:44:07 -07:00
Dick van den Brink e4f57569b7 addressed feedback 2014-10-28 19:45:18 +01:00
Vladimir Matveev 2dd9511b0a 'const enum' iteration 0. TODO: allow and track const enums in imports, add more tests 2014-10-27 23:56:07 -07:00
Anders Hejlsberg 7f9c9b6825 Support for type aliases in .d.ts generation 2014-10-25 10:48:02 -07:00
Vladimir Matveev 622b7613f7 merge with master 2014-10-24 15:44:12 -07:00
Daniel Rosenwasser e7096280b4 Added support for tagged template strings, updated baselines.
Still need to implement some error recovery and add tests.
2014-10-23 16:54:11 -07:00
Daniel Rosenwasser b704f19502 Merge branch 'letAndConst' into templates
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2014-10-23 16:03:53 -07:00
Daniel Rosenwasser 518a5d3a48 Rudimentary template support, excluding tagging. 2014-10-23 14:57:47 -07:00
Mohamed Hegazy dd7ca69866 Create a new flag for diagnostics 'isEarly' and disable emit if this flag is set. Set the flag by default on all let and const errors to ensure we are not emitting invalid JS code. 2014-10-20 17:38:50 -07:00
Mohamed Hegazy 0e7d8b62ef Merge branch 'master' into letAndConst 2014-10-20 13:34:06 -07:00
Anders Hejlsberg 81eaae0afa Require optional properties to be present in subtypes
Remove unused getBestCommonType method (unrelated change)
2014-10-19 16:43:32 -07:00
Mohamed Hegazy e15f4e6d34 Merge branch 'master' into letAndConst
Conflicts:
	src/compiler/types.ts
2014-10-16 09:30:58 -07:00
Mohamed Hegazy 61549239d8 Fix emitting for const in for loops 2014-10-15 09:20:46 -07:00
Vladimir Matveev b6b80817f4 initial revision of formatting 2014-10-14 14:44:38 -07:00
Sheetal Nandi a934d50a9b Move symbolDisplayPartKind to services side 2014-10-13 12:35:17 -07:00
Mohamed Hegazy 778f101dea Add basic parsing support for let and const 2014-10-12 21:10:04 -07:00
Yui T 00c30a3ed7 Merge branch 'master' into fixThrowExceptionOnEmitFile 2014-10-09 14:36:48 -07:00
Yui T 3cb6c9cf45 Add isDeclarationFile and update similar all usage 2014-10-09 14:19:36 -07:00
Yui T ab5f0241eb Fix comments 2014-10-09 10:12:49 -07:00
Sheetal Nandi 58cfc985b9 Merge branch 'master' into symbolInfoFormatting 2014-10-08 18:25:42 -07:00
Yui T 90ed17b21e Fix formatting 2014-10-08 18:18:41 -07:00