Commit graph

480 commits

Author SHA1 Message Date
Mohamed Hegazy
3ca76ca53b Add null check when querying for exports from a module 2015-04-06 14:54:22 -07:00
Mohamed Hegazy
29fe9f560f Merge branch 'master' into APISamples
Conflicts:
	tests/baselines/reference/APISample_compile.js
	tests/baselines/reference/APISample_compile.types
	tests/baselines/reference/APISample_linter.js
	tests/baselines/reference/APISample_linter.types
	tests/baselines/reference/APISample_transform.js
	tests/baselines/reference/APISample_transform.types
	tests/baselines/reference/APISample_watcher.js
	tests/baselines/reference/APISample_watcher.types
2015-04-06 13:38:16 -07:00
Cyrus Najmabadi
8537232d32 Add decorator test for a decorator on a class expression. 2015-04-03 13:04:56 -07:00
Cyrus Najmabadi
be26d417a3 Add additional tests. 2015-04-02 17:50:11 -07:00
Cyrus Najmabadi
7562a34ae8 Add support for emitting static properties in class expressions in ES6. 2015-04-02 17:43:41 -07:00
Mohamed Hegazy
8ceebaa985 Update APISample tests for 1.5-alpha release 2015-04-02 15:45:52 -07:00
unknown
ba8be9eef4 Support classes without names in our AST. Report any issues with this at 'check' time. 2015-04-01 17:20:20 -07:00
unknown
22a87fb9ca Class declarations should be block scoped. 2015-04-01 16:24:51 -07:00
Mohamed Hegazy
f75c1dd7b6 Merge branch 'master' into exportDefaultReference
Conflicts:
	src/compiler/utilities.ts
2015-03-31 21:35:21 -07:00
Mohamed Hegazy
4577959246 Merge pull request #2557 from Microsoft/exportEqualsDtsFix
Ensure export= is emitted correctelly in declaration files
2015-03-31 20:39:15 -07:00
Cyrus Najmabadi
3df576d112 Adding a couple of class tests. 2015-03-31 18:11:54 -07:00
Vladimir Matveev
cfda7df900 revert fix for #2456 'Import namespace exports should be immutable' 2015-03-31 17:35:26 -07:00
Vladimir Matveev
f239bbc3b1 Merge pull request #2550 from Microsoft/separateCompilation
Relax import/export elision rules for separate compilation
2015-03-31 14:51:39 -07:00
Vladimir Matveev
1bdcaa3d43 added tests for import\export elision 2015-03-31 13:54:33 -07:00
Vladimir Matveev
1803d730c2 added initial set of unit tests for separate compilation mode 2015-03-30 23:17:45 -07:00
Mohamed Hegazy
757257b9a1 Ensure export= is emitted correctelly in declaration files 2015-03-30 22:18:13 -07:00
Mohamed Hegazy
bea7221174 Ensure we find export default declaration targets if we search for them by name 2015-03-30 16:59:34 -07:00
Yui T
c1d9cfe640 Add test for emit destructuring invariable declaration with omitted expression 2015-03-30 16:45:20 -07:00
Yui T
a26368a7d2 Merge branch 'master' into allowDestructuringInAmbient 2015-03-30 14:44:03 -07:00
Yui T
1f055b95aa Emit ommittedExpression in binding pattern 2015-03-30 13:25:46 -07:00
Cyrus Najmabadi
ceeeb9cd11 Always preserve new lines for array and object literals and additional constructs like blocks. 2015-03-26 13:46:35 -07:00
Mohamed Hegazy
fad889283e Merge branch 'master' into exportEqualsMerged
Conflicts:
	src/compiler/checker.ts
	src/compiler/emitter.ts
	src/compiler/types.ts
	tests/baselines/reference/APISample_compile.js
	tests/baselines/reference/APISample_linter.js
	tests/baselines/reference/APISample_transform.js
	tests/baselines/reference/APISample_watcher.js
	tests/baselines/reference/es5ExportDefaultClassDeclaration2.js
	tests/baselines/reference/es5ExportDefaultFunctionDeclaration2.js
	tests/baselines/reference/es6ExportAllInEs5.js
	tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.js
2015-03-25 00:06:38 -07:00
Ron Buckton
ea15225a9e Merge pull request #2399 from Microsoft/decorators_min 2015-03-24 19:57:21 -07:00
Ron Buckton
f531193557 Updates to emit and updated baselines 2015-03-24 17:00:29 -07:00
Vladimir Matveev
20a0ac5f01 Merge pull request #2476 from Microsoft/immutableBindings
Disallow assignments to imported exports
2015-03-24 15:20:55 -07:00
Yui T
1c2eae6b72 Update test cases 2015-03-24 10:11:29 -07:00
Vladimir Matveev
0fdb2071ce addressed PR feedback 2015-03-24 10:09:33 -07:00
Vladimir Matveev
c6f11f39e2 disallow assignments to imported exports 2015-03-23 23:01:27 -07:00
Yui T
85624c0321 Change test files name 2015-03-23 17:58:53 -07:00
Vladimir Matveev
141c96b8f3 revised name generation 2015-03-23 16:16:29 -07:00
Mohamed Hegazy
d47445b175 Merge branch 'exportEquals' of https://github.com/Microsoft/TypeScript into exportEquals 2015-03-23 12:37:41 -07:00
Yui T
5979dacf4f Correctly emit bidning pattern with initializer and rest 2015-03-23 11:30:51 -07:00
Mohamed Hegazy
86d561d2be Check for instantiation on export default in ES6 2015-03-23 11:17:40 -07:00
Mohamed Hegazy
f90253f73e Merge branch 'master' into exportEquals
Conflicts:
	src/compiler/checker.ts
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/emitter.ts
	tests/baselines/reference/es6ImportDefaultBinding.errors.txt
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.errors.txt
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5.errors.txt
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.errors.txt
	tests/baselines/reference/es6ImportDefaultBindingInEs5.errors.txt
2015-03-23 11:06:44 -07:00
Anders Hejlsberg
e63854b40e Adding basic tests 2015-03-22 12:18:56 -07:00
Cyrus Najmabadi
9ae0815e21 Treat 0x0085 as whitespace, not as a line terminator. This matches ES5 and ES6. 2015-03-20 16:53:47 -07:00
Yui T
36ea7c8d77 Emit destructuring in parameter 2015-03-19 14:48:02 -07:00
Vladimir Matveev
371f2df90d Merge pull request #2139 from Microsoft/DtsExports_all
Exports + .d.ts emit
2015-03-18 14:45:05 -07:00
Vladimir Matveev
2ad40c25c9 addressed PR feedback 2015-03-18 14:29:02 -07:00
Ron Buckton
9761f4b783 PR comment, sourcemap test 2015-03-18 11:17:26 -07:00
Cyrus Najmabadi
9582d7cf28 Add test for pinned comments. 2015-03-17 18:43:39 -07:00
Vladimir Matveev
e4f6f167f6 merge with master, accepted baselines 2015-03-17 17:05:30 -07:00
Mohamed Hegazy
a06ce61684 Merge branch 'master' into es6ImportExportEmit 2015-03-17 13:03:17 -07:00
Jason Freeman
3879d0ae9a Merge branch 'master' of https://github.com/Microsoft/TypeScript into typeParameterFixing 2015-03-17 10:45:41 -07:00
Mohamed Hegazy
1932f720cb Handel export name bindings in internal modules in ES6 2015-03-16 21:58:57 -07:00
Mohamed Hegazy
cb012e01fd Merge branch 'master' into es6ImportExportEmit
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2015-03-16 20:47:08 -07:00
Vladimir Matveev
74eb96a5b9 correctly merge const enum only and instantiated modules 2015-03-16 19:51:22 -07:00
Vladimir Matveev
218736b23f initial version of declaration emit for default export 2015-03-16 18:54:13 -07:00
Jason Freeman
6fc552339f Merge branch 'master' of https://github.com/Microsoft/TypeScript into typeParameterFixing 2015-03-16 17:43:31 -07:00
Vladimir Matveev
e9ea336771 Merge branch 'master' into DtsExports_all 2015-03-16 16:22:28 -07:00