Commit Graph
2340 Commits
Author SHA1 Message Date
Cyrus Najmabadi 478ac3d3ef Merge branch 'master' into classExpressions 2015-03-31 14:53:39 -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
Cyrus Najmabadi 785cb55977 Add explanatory comment. 2015-03-31 14:32:36 -07:00
Cyrus Najmabadi 99581fe5ef Remove blank line. 2015-03-31 14:31:12 -07:00
Cyrus Najmabadi c59ce68c63 Fix comment. 2015-03-31 14:30:31 -07:00
Cyrus Najmabadi b363a459ff Add support for semicolons in class bodies 2015-03-31 14:29:45 -07:00
Cyrus Najmabadi f7aaf09603 Add support for parsing and emitting class expressions. 2015-03-31 13:54:43 -07:00
Cyrus Najmabadi a1e18fc22b Introduce a new HeritageClauseElment type.
This type represents the expression+type arguments you can get in a class or interface
heritage clause section.  For class-implements clauses, or interface-extends clauses,
these expressions can only be identifiers or dotted names.  For class extends clauses,
these could be any expressions in the future.  However, for now, we only support identifiers
and dotted names.
2015-03-31 12:29:02 -07:00
Mohamed Hegazy cebe42b81f Remove unsed options 2015-03-30 23:32:11 -07:00
Vladimir Matveev 49b3f85a17 disallow ambient const enums in 'separate compilation' mode 2015-03-30 22:42:54 -07:00
Vladimir Matveev c885f59d1b do not include declaration files in 'is external module' check 2015-03-30 22:41:49 -07:00
Vladimir Matveev 4b7e6cfc2e addressed CR feedback, accepted baselines 2015-03-30 20:16:50 -07:00
Yui T a26368a7d2 Merge branch 'master' into allowDestructuringInAmbient 2015-03-30 14:44:03 -07:00
Yui T 8320bca4d0 Fix emit trailing comma for array binding pattern for varaible declaration 2015-03-30 14:41:07 -07:00
Mohamed Hegazy b180324da0 Merge pull request #2512 from Microsoft/versionUpdate
update version number in package.json
2015-03-30 13:33:18 -07:00
Yui T 1f055b95aa Emit ommittedExpression in binding pattern 2015-03-30 13:25:46 -07:00
Vladimir Matveev d2d3f1e809 Merge branch 'master' into separateCompilation 2015-03-30 12:30:56 -07:00
Anders Hejlsberg 6e169d5bee Merge branch 'master' into exportDefault
Conflicts:
	tests/baselines/reference/es5ExportDefaultFunctionDeclaration.js
	tests/baselines/reference/es5ExportDefaultFunctionDeclaration2.js
2015-03-30 02:45:10 -07:00
Anders Hejlsberg 3a72c004a0 Emit generated name for unnamed default function in down-level code 2015-03-30 02:25:09 -07:00
Anders Hejlsberg 2dfe32a4df Fix export.default assignment for export default class/function 2015-03-29 01:29:09 -07:00
Cyrus Najmabadi 3b35473e25 Merge branch 'master' into forOfLengthCache
Conflicts:
	Jakefile
	src/compiler/commandLineParser.ts
	src/compiler/types.ts
2015-03-29 00:09:29 -07:00
Cyrus Najmabadi 7fff53cf33 Remove experimental flag to cache for-of length checks. 2015-03-28 23:50:52 -07:00
Cyrus Najmabadi 62460aed4b Merge branch 'master' into preserveNewLines3
Conflicts:
	tests/baselines/reference/ES5For-of22.js
2015-03-28 23:45:47 -07:00
Anders Hejlsberg d15278bb86 Fix: File watchers not being disposed in -watch mode 2015-03-27 15:53:01 -07:00
Anders Hejlsberg 4894fee7d3 Merge pull request #2514 from Microsoft/simplifyTempLogic
Simplify temporary name generation logic
2015-03-27 10:24:25 -07:00
Anders Hejlsberg 4788581f53 Addressing CR feedback 2015-03-26 16:32:27 -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
Anders Hejlsberg 184ce98bf6 Simplify temporary name generation logic 2015-03-26 10:51:07 -07:00
Mohamed Hegazy 83e8910dc1 update version in program 2015-03-26 10:44:44 -07:00
Vladimir Matveev a51f0bf8bb added relaxed emit rules for separate compilation 2015-03-25 23:18:58 -07:00
Jason Freeman 7a44b9ed57 Make elaborateErrors persist throughout type relation checks 2015-03-25 19:23:44 -07:00
Ron Buckton f27caf5d87 Emit decorators when --target ES3 2015-03-25 16:12:07 -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
Mohamed Hegazy 1c45b77d9e Merge branch 'master' into exportEqualsMerged 2015-03-24 22:28:35 -07:00
Mohamed Hegazy aa01dcd1a3 Move es6 alias name handeling to getAliasNameSubstitution to match getExportNameSubstitution 2015-03-24 22:20:42 -07:00
Mohamed Hegazy bc51dd1e77 In ES6 use "export var x" for internal modules and enums instead of an after the fact "export {x};" 2015-03-24 21:54:36 -07:00
Mohamed Hegazy ab5c09a9a6 Make isReferencedAliasDeclaration check children 2015-03-24 21:43:03 -07:00
Mohamed Hegazy 6c40c95313 Disallow export declarations in internal modules 2015-03-24 21:17:11 -07:00
Mohamed Hegazy 27c5d6fa50 use the correct check for import and export specifiers 2015-03-24 20:50:42 -07:00
Mohamed Hegazy 352633dfda Rename isES6ModuleMemberDeclaration to isES6ExportedDeclaration. 2015-03-24 20:36:02 -07:00
Mohamed Hegazy 4361e6ea56 Merge branch 'exportEquals' into exportEqualsMerged 2015-03-24 20:32:36 -07:00
Ron Buckton a60d5912a9 Cleanup of duplicate code due to merge 2015-03-24 20:30:03 -07:00
Ron Buckton ea15225a9e Merge pull request #2399 from Microsoft/decorators_min 2015-03-24 19:57:21 -07:00
CyrusNajmabadi 4f0dc28bdc Merge pull request #2475 from Microsoft/completionEntryDetails
Share code between getCompletionsAtPosition and getCompletionEntryDetails.
2015-03-24 17:05:39 -07:00
Ron Buckton f531193557 Updates to emit and updated baselines 2015-03-24 17:00:29 -07:00
Cyrus Najmabadi e26c260822 PR feedback. 2015-03-24 15:35:27 -07:00
Cyrus Najmabadi 63278ca037 Don't bother with a predicate. It doesn't provide enough of a perf savings. 2015-03-24 15:30:32 -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
Vladimir Matveev e5e5ad89fd Merge pull request #2471 from Microsoft/revisedNameGen2
Revised name generation #2, fixes #2449, #2447
2015-03-24 15:20:18 -07:00
Cyrus Najmabadi 614b1066dc Merge branch 'master' into completionEntryDetails 2015-03-24 14:55:34 -07:00