166 Commits

Author SHA1 Message Date
Ron Buckton
ac447f1f51 Migrated decorator checks to call resolution 2015-05-21 16:45:23 -07:00
Yui T
b70276538b Merge branch 'master' into duplicateIdentifierBindingElement 2015-05-08 18:05:57 -07:00
Yui T
853edde521 Address code review 2015-05-08 17:51:20 -07:00
Mohamed Hegazy
05892b1993 remove duplicate case labels 2015-05-07 12:29:47 -07:00
Yui T
a5ec06c8bf Merge branch 'master' into duplicateIdentifierBindingElement 2015-05-05 15:05:55 -07:00
Yui T
170403fc53 Remove isParameterDeclaration to utilities 2015-05-05 13:49:06 -07:00
Anders Hejlsberg
6338e2b192 Fix 'resolveName' to correctly obtain local name of export default 2015-05-05 09:50:11 -07:00
Vladimir Matveev
82796673ca use only 'separateCompilation' flag when checking of file should be emitted 2015-05-04 17:49:13 -07:00
Vladimir Matveev
60f3fe3de2 emit input non .ts files as separate files when 'allowNonTsExtensions' and 'separateCompilation' flags are specified (used in 'transpile' related scenarios) 2015-05-04 11:21:35 -07:00
Daniel Rosenwasser
4ebfee2051 Use 'lastOrUndefined' where appropriate in the compiler. 2015-05-01 18:34:26 -07:00
Paul van Brenk
54ef1bf93d Rename HeritageClauseElement to ExpressionWithTypeArguments + related methods. 2015-04-29 14:49:03 -07:00
Mohamed Hegazy
32409f9b9b Merge branch 'master' into inlineSourceMaps 2015-04-27 10:11:43 -07:00
Jason Freeman
4487fa426b Rename iterator property of ForStatement to incrementor 2015-04-22 13:29:50 -07:00
Mohamed Hegazy
c940b1651a Merge branch 'master' into inlineSourceMaps 2015-04-19 13:33:50 -07:00
Cyrus Najmabadi
9e507baf7c Support passing a start/length when creating a scanner.
Conflicts:
	src/compiler/parser.ts
	src/compiler/scanner.ts
2015-04-17 12:27:24 -07:00
Mohamed Hegazy
39d9720dd1 wire module lookcups for default import in ambient module declarations 2015-04-16 14:54:47 -07:00
Ron Buckton
3b74503898 Merge pull request #2750 from Microsoft/fixES6Clodule
Elide var when emitting a module merged with an ES6 class
2015-04-16 11:53:24 -07:00
Jason Freeman
edf1ae6d36 Merge branch 'master' of https://github.com/Microsoft/TypeScript into destructuringFixes
Conflicts:
	src/compiler/utilities.ts
2015-04-15 17:23:12 -07:00
Cyrus Najmabadi
b51230f794 CR feedback. Use a module instead. 2015-04-15 16:16:45 -07:00
Ron Buckton
3eb0a3abab PR Feedback and updated baselines 2015-04-14 23:22:58 -07:00
Mohamed Hegazy
27b79ff99a respond to code review commment 2015-04-14 22:57:06 -07:00
Jason Freeman
2b83dfbf40 Properly emit nested destructuring in rest elements (fixes #2587) 2015-04-13 17:29:32 -07:00
Ron Buckton
1c9e9e0f19 Elide var when emitting a module merged with an ES6 class 2015-04-13 13:57:26 -07:00
Mohamed Hegazy
b6bb4ff67f expose text span helpers 2015-04-12 12:30:17 -07:00
Mohamed Hegazy
13ef271831 use @internal comment consistenlly 2015-04-10 16:32:02 -07:00
Mohamed Hegazy
431dce7b84 Merge branch 'master' into APIReviewCleanup
Conflicts:
	src/services/outliningElementsCollector.ts
2015-04-10 16:11:03 -07:00
Ron Buckton
f318515f70 Merge pull request #2664 from Microsoft/fixDecoratorFormatting
Fixes some formatting for decorators
2015-04-09 17:42:56 -07:00
Mohamed Hegazy
f27cc70ce7 Merge branch 'master' into inlineSourceMaps 2015-04-09 16:55:47 -07:00
Mohamed Hegazy
f6eb66b572 Merge branch 'master' into decoratorsLS 2015-04-09 14:31:55 -07:00
Mohamed Hegazy
1c91c2c5d0 Mark non-public API surface with the /* @internal */ comment 2015-04-09 14:18:14 -07:00
Ron Buckton
609036a2d6 PR feedback and baseline updates 2015-04-08 17:06:00 -07:00
Ron Buckton
51acda8e1d Changed isExpression logic related to decorators 2015-04-08 16:18:49 -07:00
Mohamed Hegazy
73e22ed9c2 Add convertToBase64 method 2015-04-07 22:54:06 -07:00
Ron Buckton
1a1bb34864 Added rules for spacing around decorators, computing the undecorated start line of a node 2015-04-07 16:15:02 -07:00
Mohamed Hegazy
87a02ebb00 Fix find all refs and goto def for decorators 2015-04-07 12:37:05 -07:00
Ron Buckton
4ff87b71a4 Fixes #2601, incorrect resolution of this/super 2015-04-07 11:42:08 -07:00
Ron Buckton
5c440384ba Added __param helper for parameter decorators and cleaned up __decorate and __metadata 2015-04-01 17:58:28 -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
0c5d736251 Respond to code review remarks 2015-03-31 21:17:24 -07:00
Cyrus Najmabadi
ee3ba3bf75 CR feedback. 2015-03-31 17:23:52 -07:00
Cyrus Najmabadi
478ac3d3ef Merge branch 'master' into classExpressions 2015-03-31 14:53:39 -07:00
Cyrus Najmabadi
c59ce68c63 Fix comment. 2015-03-31 14:30:31 -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
Vladimir Matveev
4b7e6cfc2e addressed CR feedback, accepted baselines 2015-03-30 20:16:50 -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
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
Ron Buckton
70bd582965 Changed emit for decorators 2015-03-24 14:16:52 -07:00
Ron Buckton
695c50bd78 Disallow decorators on multiple get/set accessors of the same name 2015-03-24 13:03:10 -07:00