Commit graph

4074 commits

Author SHA1 Message Date
Vladimir Matveev
0feebd44b3 publish exported postfix operators as 'E("", ++x) - 1' and 'E("", --x) + 1' 2015-04-13 21:32:27 -07:00
steveluc
cca29a5738 Merge branch 'master' of https://github.com/Microsoft/TypeScript 2015-04-13 20:07:39 -07:00
steveluc
b35fea8e9e Eliminate HUGE (>10X) performance regression on session.ts dispatch that
was causing major lag for Sublime plug-in.  Backs out destructuring
dispatch change in session.ts
2015-04-13 19:59:02 -07:00
Mohamed Hegazy
fe75002450 Fix #2724: ensure checkIteratedTypeOrElementType returns a type 2015-04-13 19:41:29 -07:00
Jason Freeman
15e39f72ea Change parenthesizeForAccess to check isLeftHandSideExpression 2015-04-13 17:29:42 -07:00
Jason Freeman
66b50a1d62 Simplify handling of rest parameters with binding patterns in the checker 2015-04-13 17:29:39 -07:00
Jason Freeman
70c06ce8c6 Fix crash in emitter on rest parameters with binding patterns 2015-04-13 17:29:35 -07:00
Jason Freeman
2b83dfbf40 Properly emit nested destructuring in rest elements (fixes #2587) 2015-04-13 17:29:32 -07:00
Jason Freeman
051aa39f0d Some cleanup in emitDestructuring 2015-04-13 17:29:28 -07:00
Jason Freeman
1ec6164293 Remove unnecessary parameter to emitDestructuring 2015-04-13 17:29:25 -07:00
Jason Freeman
2b21cd9825 Disallow initializers in assignment rest elements 2015-04-13 17:29:21 -07:00
Jason Freeman
e6ffb33adf Fix crash in rest element destructuring 2015-04-13 17:29:18 -07:00
Jason Freeman
5bfbcdcd25 Assignment rest element pretends to get the contextual element type 2015-04-13 17:29:14 -07:00
Jason Freeman
f84ebba852 Rest assignment element allows nested destructuring (fixes #2156) 2015-04-13 17:29:11 -07:00
Jason Freeman
e9f5acce75 Disallow binding patterns in rest parameters 2015-04-13 17:29:07 -07:00
Jason Freeman
2d3b22cbba Disallow binding patterns in binding rest elements (fixes #2519) 2015-04-13 17:21:19 -07:00
Mohamed Hegazy
4e42054277 Fix #2725: Add check for parent before using it 2015-04-13 16:28:06 -07:00
Cyrus Najmabadi
20961cdbd7 Insert @internal when we generate diagnostic messages. 2015-04-13 15:55:56 -07:00
Cyrus Najmabadi
29f3f6fcae Merge branch 'master' into typeWriter 2015-04-13 14:29:37 -07:00
Ron Buckton
1c9e9e0f19 Elide var when emitting a module merged with an ES6 class 2015-04-13 13:57:26 -07:00
Cyrus Najmabadi
b5b9f517ce Include symbol information in the typewriter baselines. 2015-04-13 13:54:22 -07:00
Mohamed Hegazy
a72a22edbe Fix getOccurances filter check 2015-04-13 13:19:17 -07:00
Vladimir Matveev
5d2897d67f export imported aliases 2015-04-13 13:00:00 -07:00
Cyrus Najmabadi
592e2314d4 Simplify typewriter code. 2015-04-13 12:36:11 -07:00
Zev Spitz
9ec046bf9c Formatting 2015-04-13 22:20:37 +03:00
Mohamed Hegazy
b416bf2d80 move check outside switch statement 2015-04-13 12:20:25 -07:00
Vladimir Matveev
0c84acd8ef add missing closing paren in emitted code 2015-04-13 12:14:32 -07:00
Vladimir Matveev
3e7d6a06f2 code cleanup 2015-04-13 12:11:32 -07:00
Zev Spitz
77afd9468c More newlines 2015-04-13 21:41:01 +03:00
Zev Spitz
b7bcdde18c Fixed jsDoc, wrapping, newlines 2015-04-13 21:35:59 +03:00
Zev Spitz
522c71a752 Ebynerator, VBArray 2015-04-13 16:23:31 +03:00
Cyrus Najmabadi
4e0c26347f Use const. 2015-04-12 22:47:25 -07:00
Zhengbo Li
1dacb54fbd Updated dom files and removed some IE only types
Updated the dom files according to new IE spec. Remove part of the IE
only types in "extensions.d.ts" that are not used in the new spec.
2015-04-12 18:14:58 -07:00
Cyrus Najmabadi
362320dc45 Use a singleton parser as well. 2015-04-12 14:25:19 -07:00
Cyrus Najmabadi
61951e5d94 Use a single scanner for all parsing tasks. 2015-04-12 14:02:58 -07:00
Guillaume Salles
7119165bd0 Fix issue #2677 : Labels should not get quick info 2015-04-12 16:04:32 -04:00
Mohamed Hegazy
b6bb4ff67f expose text span helpers 2015-04-12 12:30:17 -07:00
Mohamed Hegazy
27c1bb8ca5 Expose getDefaultLibFileName 2015-04-12 12:12:55 -07:00
Anders Hejlsberg
e4b7cf9882 Merge branch 'master' into reducedUnionTypes
Conflicts:
	src/compiler/types.ts
	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-12 11:08:03 -07:00
Anders Hejlsberg
e8ee500539 Consistently reduce union types in property access 2015-04-12 10:35:57 -07:00
Yui T
63a2359d1a Merge branch 'master' into migrateStrictModeCheck 2015-04-11 21:02:56 -07:00
Yui T
a01bdcfab3 Address code review 2015-04-11 20:58:42 -07:00
Vladimir Matveev
1781ce1bd8 Merge remote-tracking branch 'origin/master' into systemModule 2015-04-11 12:31:52 -07:00
Yui T
3c2196bf54 Address code review 2015-04-11 12:15:22 -07:00
Vladimir Matveev
e2ba13eb17 do not emit original variable statement if it was hoisted and all variable declarations are non-initialized 2015-04-11 08:23:25 -07:00
Vladimir Matveev
a281cad492 hoist source level module declarations 2015-04-11 06:33:09 -07:00
Vladimir Matveev
442addecf5 hoist source level class declarations, fix error message 2015-04-11 06:14:19 -07:00
Vladimir Matveev
8c80792fe2 emit publish of exported values in destructuring 2015-04-11 04:58:39 -07:00
Vladimir Matveev
7bced68210 emit publish of exported values in prefix/postfix unary expressions 2015-04-11 03:59:03 -07:00
CyrusNajmabadi
1c7d8a2e21 Merge pull request #2706 from Microsoft/emitYieldStart
Emit generator functions and yield expressions in ES6.
2015-04-11 02:40:42 -07:00
Vladimir Matveev
7102b1d76a emit publish of exported values in assignment expressions 2015-04-10 20:29:20 -07:00
Yui T
a60cf02715 Address CR 2015-04-10 19:00:31 -07:00
Yui T
fe7a3a5d02 Address CR 2015-04-10 18:52:37 -07:00
Ron Buckton
28b5217169 Merge pull request #2718 from Microsoft/fixEmitDecorate
Fix for __decorate emit on undecorated file following a decorated file
2015-04-10 18:23:52 -07:00
Mohamed Hegazy
13ef271831 use @internal comment consistenlly 2015-04-10 16:32:02 -07:00
Yui T
8448ba7b13 Allow IdentifierName in memberExpression 2015-04-10 16:22:09 -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
cd6bfb169f Fix for __decorate emit on undecorated file following a decorated file 2015-04-10 15:38:10 -07:00
Mohamed Hegazy
f231d6aba8 Merge pull request #2700 from Microsoft/removeOptionalTypeOnExportDefault
Remove optional type on export default
2015-04-10 15:31:31 -07:00
Yui T
5bab826c6b Address issue with propertyAccessExpression and QualifiedName in TypeReference 2015-04-10 14:23:54 -07:00
Cyrus Najmabadi
9e56c61542 Don't report errors for empty generator functions with type annotations. 2015-04-10 13:47:08 -07:00
Vladimir Matveev
83fcca81a8 emit publish of exported values in variable declarations 2015-04-10 12:31:10 -07:00
Vladimir Matveev
50496ccd97 added system module kind to harness 2015-04-10 12:12:25 -07:00
Vladimir Matveev
e8fcf8fa2a initial support for system module 2015-04-10 12:10:38 -07:00
Ron Buckton
042b96592a Merge branch 'master' into fixArrowBindingPattern 2015-04-10 09:54:13 -07:00
Ron Buckton
02d88f2968 Simpler lookahead, let the tryParse do the hard work 2015-04-10 09:53:21 -07:00
Daniel Rosenwasser
ad477c7fc9 Merge pull request #2691 from Microsoft/isRegExpWeHardlyKnewYe
Remove 'Symbol.isRegExp' and introduce 'RegExp.prototype.flags'
2015-04-10 01:51:59 -07:00
Cyrus Najmabadi
f777011fc0 Emit generator functions and yield expressions in ES6. 2015-04-09 22:57:13 -07:00
Cyrus Najmabadi
024d653efc Rename type. 2015-04-09 22:27:18 -07:00
Ron Buckton
9636142733 Comment cleanup 2015-04-09 17:47:56 -07:00
Ron Buckton
19695f9bca Simplified lookahead and added ES6 test cases 2015-04-09 17:45:45 -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
ahmad-farid
01d945b18b Merge pull request #2612 from ahmad-farid/OCNoTest2
Adding outlining for comments to allow collapsing in VS #698
2015-04-09 17:35:25 -07:00
Daniel Rosenwasser
6493980f64 Merge pull request #2701 from Microsoft/superAnnoyingEmitInEs6Classes
Don't emit '_this' when encountering 'super' in ES6 emit
2015-04-09 17:24:40 -07:00
Ahmad Farid
86e5773c65 Merging 2015-04-09 17:06:25 -07:00
Mohamed Hegazy
f27cc70ce7 Merge branch 'master' into inlineSourceMaps 2015-04-09 16:55:47 -07:00
Mohamed Hegazy
cacf34a4c2 Check for inlineSoruceMaps first 2015-04-09 16:55:42 -07:00
Yui T
33d6a81a35 update property in Identifier 2015-04-09 16:50:43 -07:00
Mohamed Hegazy
a5a83c1cf7 Merge branch 'master' into removeOptionalTypeOnExportDefault 2015-04-09 16:35:14 -07:00
Mohamed Hegazy
dc4d8c8d1f Emit temp var declaration for 'export default <expression>' in declaration emit 2015-04-09 16:34:16 -07:00
Mohamed Hegazy
afe35c810a Revert "Support an optional type annotation on export default statement"
This reverts commit a6a8a96249.
2015-04-09 16:32:23 -07:00
Daniel Rosenwasser
fb8cc0c40a Don't emit '_this' declaration in ES6 or later. 2015-04-09 16:29:38 -07:00
CyrusNajmabadi
97a3e71dc7 Merge pull request #2682 from Microsoft/GetOccurrencesSingleFile
Ensure that getOccurrences not return items not in the file asked for.
2015-04-09 16:19:38 -07:00
Ahmad Farid
a34801f30b merging with master 2015-04-09 16:05:06 -07:00
Yui T
8adac94896 Better recovery when running into modifier 2015-04-09 15:59:37 -07:00
Yui T
8771212d58 Remove incorrect check of module declartion 2015-04-09 15:58:56 -07:00
Zhengbo Li
d248387ade sort the old dom files 2015-04-09 15:46:06 -07:00
Cyrus Najmabadi
fc512b284b Use modules with const members. 2015-04-09 15:11:26 -07:00
Yui T
e91ef844ed Address code review; better error recovering 2015-04-09 14:49:47 -07:00
Cyrus Najmabadi
9627746ba9 Add the 'none' kind. 2015-04-09 14:49:00 -07:00
Yui T
4b7d2f2411 Address code review 2015-04-09 14:46:02 -07:00
Cyrus Najmabadi
73121ce451 Distinguish written vs read references. 2015-04-09 14:37:21 -07:00
Mohamed Hegazy
f6eb66b572 Merge branch 'master' into decoratorsLS 2015-04-09 14:31:55 -07:00
Mohamed Hegazy
97a4c24ad9 Expose parseCommandLine 2015-04-09 14:18:59 -07:00
Mohamed Hegazy
e30f0d4ae6 Make version const 2015-04-09 14:18:43 -07:00
Mohamed Hegazy
9fdeffeb08 Fix formatting and parameter names 2015-04-09 14:18:32 -07:00
Mohamed Hegazy
1c91c2c5d0 Mark non-public API surface with the /* @internal */ comment 2015-04-09 14:18:14 -07:00
Daniel Rosenwasser
33028d5199 Replace uses of 'Symbol.isRegExp' with 'Symbol.toPrimitive'. 2015-04-09 14:06:57 -07:00
Daniel Rosenwasser
f75c9a6624 Added 'flags' to RegExp.prototype. 2015-04-09 12:52:31 -07:00
Daniel Rosenwasser
d3dd48f07b Remove 'isRegExp'. 2015-04-09 12:35:11 -07:00
Johannes Rieken
55d6e10687 support URI patterns 2015-04-09 11:58:47 -07:00
Yui T
1246dca703 Add comment 2015-04-08 23:54:42 -07:00
Cyrus Najmabadi
1d1ebd536a Fix up the harness code. 2015-04-08 23:41:22 -07:00
Yui T
3a7384a95e Update error code 2015-04-08 23:39:54 -07:00
Cyrus Najmabadi
020c12c6a6 Merge branch 'master' into GetOccurrencesSingleFile 2015-04-08 23:36:22 -07:00
Cyrus Najmabadi
585c6aaf65 CR feedback. 2015-04-08 23:24:51 -07:00
Cyrus Najmabadi
575ce27119 Allow the host to indicate which files it would like highlighting spans for. 2015-04-08 23:16:16 -07:00
Cyrus Najmabadi
e5d0ffab15 Use the fileName that is in scope. 2015-04-08 22:28:40 -07:00
Cyrus Najmabadi
0d233fdd17 No need to tweak spans in syntactic highlights. 2015-04-08 22:26:34 -07:00
Cyrus Najmabadi
02778b19b4 Get semantic document highlights as well through the new API. 2015-04-08 22:24:59 -07:00
Yui T
111a297584 Check for import, import equal, module 2015-04-08 22:07:12 -07:00
Yui T
fb9009f741 Completely remove check strict mode from parser 2015-04-08 22:07:02 -07:00
Yui T
c93fb35c53 Move strict mode check into TypeChecker 2015-04-08 22:06:51 -07:00
Cyrus Najmabadi
6dee32a703 Extract code for getting syntactic document highlights into its own function. 2015-04-08 21:59:50 -07:00
Daniel Rosenwasser
4eb8c738ee Merge pull request #2666 from Microsoft/occurrencesOnServer
Support getOccurrences on the TS Server
2015-04-08 18:11:50 -07:00
Ron Buckton
0546042df3 Add support for parsing destructuring patterns in arrow function parameter lists 2015-04-08 18:01:21 -07:00
Ron Buckton
609036a2d6 PR feedback and baseline updates 2015-04-08 17:06:00 -07:00
Daniel Rosenwasser
180f17d088 Destructure arguments at dispatched calls. 2015-04-08 17:02:42 -07:00
Ron Buckton
51acda8e1d Changed isExpression logic related to decorators 2015-04-08 16:18:49 -07:00
Jason Freeman
d459c59028 Merge branch 'master' of https://github.com/Microsoft/TypeScript into iteratorSpreadDestructure 2015-04-08 16:14:24 -07:00
Ron Buckton
3702568916 Fix for #2619 2015-04-08 15:27:41 -07:00
Daniel Rosenwasser
927231bdcf Merge pull request #2124 from Microsoft/unrewrite
Revert ES3/ES5 downlevel computed property emit logic to not use tree rewriting
2015-04-08 11:45:37 -07:00
Cyrus Najmabadi
4054eca462 Merge branch 'master' into jsSigHelp
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_linter.types.pull
	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-08 02:12:53 -07:00
Daniel Rosenwasser
12ccdb63db Apparently our server tests can't handle negative tests. 2015-04-08 01:19:45 -07:00
Daniel Rosenwasser
d8d494d4da *Actually dispatched* on the logic. 2015-04-08 00:41:12 -07:00
Daniel Rosenwasser
93bb224545 Actually implemented the session-side logic. 2015-04-08 00:35:34 -07:00
Mohamed Hegazy
a998abb153 Add inlineSourceMap option 2015-04-08 00:14:23 -07:00
Daniel Rosenwasser
5b6c65ffe0 Added support for getOccurrences to the server. 2015-04-07 23:31:09 -07:00
Mohamed Hegazy
73e22ed9c2 Add convertToBase64 method 2015-04-07 22:54:06 -07:00
Ron Buckton
68b38b3e6a Merge pull request #2658 from Microsoft/fixDecoratorBindingForSuperThis
Fixes #2601, incorrect resolution of this/super
2015-04-07 19:10:03 -07:00
Ron Buckton
eec39c2fc5 Additional rule for spacing between decorator on same line as its declaration 2015-04-07 17:23:52 -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
Steve Lucco
de2e1455bb Merge pull request #2591 from Microsoft/serverAddExitMessage
Add an exit message for the server.
2015-04-07 16:00:48 -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
Mohamed Hegazy
863f0b6180 Merge pull request #2643 from Microsoft/checkForOmittedExpression
Check for omitted expressions when checking const and let declaration names
2015-04-06 16:42:51 -07:00
Mohamed Hegazy
189f07ae7f Merge pull request #2642 from Microsoft/getExportsForModuleNullCheck
Add null check when querying for exported from a module
2015-04-06 16:16:08 -07:00
Mohamed Hegazy
d71632aa38 Check for omitted expressions when checking const and let declaration names 2015-04-06 15:32:22 -07:00
Mohamed Hegazy
3ca76ca53b Add null check when querying for exports from a module 2015-04-06 14:54:22 -07:00
Daniel Rosenwasser
ffae189e89 Merge branch 'master' into unrewrite
Conflicts:
	src/compiler/emitter.ts
	tests/baselines/reference/ES5SymbolProperty1.js
	tests/baselines/reference/FunctionDeclaration8_es6.js
	tests/baselines/reference/FunctionDeclaration9_es6.js
	tests/baselines/reference/FunctionPropertyAssignments5_es6.js
	tests/baselines/reference/computedPropertyNames10_ES5.js
	tests/baselines/reference/computedPropertyNames11_ES5.js
	tests/baselines/reference/computedPropertyNames18_ES5.js
	tests/baselines/reference/computedPropertyNames19_ES5.js
	tests/baselines/reference/computedPropertyNames1_ES5.js
	tests/baselines/reference/computedPropertyNames20_ES5.js
	tests/baselines/reference/computedPropertyNames22_ES5.js
	tests/baselines/reference/computedPropertyNames23_ES5.js
	tests/baselines/reference/computedPropertyNames25_ES5.js
	tests/baselines/reference/computedPropertyNames26_ES5.js
	tests/baselines/reference/computedPropertyNames28_ES5.js
	tests/baselines/reference/computedPropertyNames29_ES5.js
	tests/baselines/reference/computedPropertyNames30_ES5.js
	tests/baselines/reference/computedPropertyNames31_ES5.js
	tests/baselines/reference/computedPropertyNames33_ES5.js
	tests/baselines/reference/computedPropertyNames34_ES5.js
	tests/baselines/reference/computedPropertyNames46_ES5.js
	tests/baselines/reference/computedPropertyNames47_ES5.js
	tests/baselines/reference/computedPropertyNames48_ES5.js
	tests/baselines/reference/computedPropertyNames49_ES5.js
	tests/baselines/reference/computedPropertyNames4_ES5.js
	tests/baselines/reference/computedPropertyNames50_ES5.js
	tests/baselines/reference/computedPropertyNames5_ES5.js
	tests/baselines/reference/computedPropertyNames6_ES5.js
	tests/baselines/reference/computedPropertyNames7_ES5.js
	tests/baselines/reference/computedPropertyNames8_ES5.js
	tests/baselines/reference/computedPropertyNames9_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType10_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType4_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType5_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType6_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType7_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType8_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType9_ES5.js
	tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js
	tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js
	tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js.map
	tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt
	tests/baselines/reference/parserES5ComputedPropertyName2.js
	tests/baselines/reference/parserES5ComputedPropertyName3.js
	tests/baselines/reference/parserES5ComputedPropertyName4.js
	tests/baselines/reference/privateIndexer2.js
2015-04-06 14:19:28 -07:00
Cyrus Najmabadi
78a79140b3 Get sighelp for arbitrary functions working in .js files. 2015-04-06 14:10:04 -07:00
Mohamed Hegazy
ccb562385d Use sys.newLine in transpile when possibel 2015-04-06 14:05:44 -07:00
Mohamed Hegazy
1d5d10a111 add comment 2015-04-06 13:38:37 -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
Ron Buckton
e195d89fad Merge pull request #2589 from Microsoft/decorators_types
Experimental support for decorator type metadata. 
NOTE: Requires a polyfill for `Reflect.metadata` which has not yet been considered by TC39 for ES7.
2015-04-06 12:50:18 -07:00
Ron Buckton
1a1813363e Merge branch 'master' into decorators_types 2015-04-06 11:06:38 -07:00
Ron Buckton
9dfb724536 Fix for #2249 2015-04-06 10:52:31 -07:00
Ron Buckton
98c56ae9a8 PR feedback 2015-04-06 10:42:58 -07:00
Ahmad Farid
7fcbb8c9a0 adding unit tests fot block comments outlining 2015-04-03 19:21:27 -07:00
Yui T
09d037fb6f Address code review 2015-04-03 17:59:40 -07:00
Yui T
742f65c80b Merge branch 'master' into parseClassInStrictMode
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2015-04-03 17:23:02 -07:00
Cyrus Najmabadi
766d34d0dc Rename variables to be consistent. 2015-04-03 16:55:54 -07:00
Cyrus Najmabadi
1178e84a68 Don't cache the typechecker at the LS level. Just get it when needed from the program. 2015-04-03 16:50:32 -07:00
Cyrus Najmabadi
4cdc97094f Produce a map of named declarations instead of a flat list.
Produce a map of named declarations instead of a flat list.
2015-04-03 16:21:24 -07:00
Ahmad Farid
854d5496b4 updating tests 2015-04-03 15:28:23 -07:00
Ahmad Farid
5543d5456c removing extra reference header 2015-04-03 14:11:18 -07:00
Cyrus Najmabadi
7562a34ae8 Add support for emitting static properties in class expressions in ES6. 2015-04-02 17:43:41 -07:00
Yui T
aef37f1e41 Address code review: have more explicit error 2015-04-02 17:42:24 -07:00
Cyrus Najmabadi
105936f198 Break out acquisition of class properties vs. emitting them. 2015-04-02 17:02:26 -07:00
Ahmad Farid
d94c7bf978 Merge branch 'master' of https://github.com/Microsoft/TypeScript into outlineComments 2015-04-02 16:55:03 -07:00
Mohamed Hegazy
facbe843d1 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_linter.types.pull
	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-02 16:45:44 -07:00
Mohamed Hegazy
86f4040abb Remove typescript.d.ts from baslines of APISample tests 2015-04-02 16:39:10 -07:00
Ahmad Farid
64fbf94940 outlinging comments v0.2 2015-04-02 16:23:22 -07:00
Paul van Brenk
548e33c663 Merge branch 'master' into spelling 2015-04-02 15:37:37 -07:00
Paul van Brenk
0bf65e4c67 Fix annoying spellin errors. 2015-04-02 15:36:45 -07:00
Ron Buckton
9a590dbbe5 PR feedback 2015-04-02 15:22:53 -07:00
Cyrus Najmabadi
5ecfafd32b PR feedback. 2015-04-02 15:14:41 -07:00
Cyrus Najmabadi
0f079632b9 PR feedback. 2015-04-02 14:58:43 -07:00
Ahmad Farid
27f349ca7d outlining Comments v0.1 4/2 2015-04-02 14:38:22 -07:00
Cyrus Najmabadi
6f250703ff Merge branch 'master' into JSLS
Conflicts:
	src/services/services.ts
2015-04-02 14:22:16 -07:00
CyrusNajmabadi
35d8536c75 Merge pull request #2588 from Microsoft/classExpr
Class declarations should be block scoped.
2015-04-02 14:13:25 -07:00
Yui T
64427a9df1 Remove checking for scriptTarget before setting parsing context for classLikeDeclaration 2015-04-02 13:41:03 -07:00
Cyrus Najmabadi
2eddf310dc Fix error spans for classes. 2015-04-02 13:33:55 -07:00
CyrusNajmabadi
feabcd044b Merge pull request #2522 from Microsoft/visitWorkaround
Use a function declaration vs a function expression to help deal with a reported Atom+IO.js issue.
2015-04-02 13:30:43 -07:00
Ron Buckton
f15ff32d5c Fix for #2561 2015-04-02 12:05:56 -07:00
Mohamed Hegazy
9e4c9f923f Merge pull request #2570 from Microsoft/versionCacheUnitTest
Version cache unit test
2015-04-02 09:27:44 -07:00
steveluc
74e6b6eccc Add an exit message for the server. 2015-04-02 00:13:06 -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
unknown
189482e730 Produce a name for anonymous class expressions when we perform downlevel emit. 2015-04-01 17:28:59 -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
Ron Buckton
c804f5b035 Fix for checking type nodes with separate compilation, removed duplicate functions due to merge conflict 2015-04-01 14:00:20 -07:00
Ron Buckton
98afb9254d Cleanup emit for type metadata for #2577 2015-04-01 13:56:23 -07:00
Ron Buckton
8a7fa55251 Fix merge conflict 2015-04-01 13:52:20 -07:00
Ron Buckton
f556d46804 Minor emit cleanup 2015-04-01 13:28:13 -07:00
Ron Buckton
2b78424fd4 Updated baselines 2015-04-01 12:58:32 -07:00
Ron Buckton
9aa3af83bc Type serialization for decorators 2015-04-01 12:34:45 -07:00
Daniel Rosenwasser
17b790b479 Merge branch 'master' into transitiveExports 2015-04-01 12:00:50 -07:00
Mohamed Hegazy
90e2aa6938 Merge branch 'master' into versionCacheUnitTest 2015-03-31 21:37:15 -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
Mohamed Hegazy
0afa4597a7 Merge pull request #2563 from Microsoft/exposeConfigFileHelpers
Expose readConfigFile and parseConfigFile
2015-03-31 20:39:47 -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
Daniel Rosenwasser
ab4d003d0a Merge branch 'master' into transitiveExports 2015-03-31 19:07:46 -07:00
Cyrus Najmabadi
3430903440 Merge branch 'master' into JSLS 2015-03-31 18:57:56 -07:00
Daniel Rosenwasser
54e1928b2a Moved arrow function to function declaration. 2015-03-31 18:34:43 -07:00
Cyrus Najmabadi
4347643293 CR feedback. 2015-03-31 18:17:35 -07:00
Vladimir Matveev
adad7c18d5 Merge pull request #2569 from Microsoft/revertModuleImportFix
revert fix for #2456 'Import namespace exports should be immutable'
2015-03-31 17:55:03 -07:00
Cyrus Najmabadi
72d23c7937 Remove unnecessary code. 2015-03-31 17:48:07 -07:00
Cyrus Najmabadi
1385d9b50c Merge branch 'master' into JSLS
Conflicts:
	src/services/services.ts
2015-03-31 17:40:56 -07:00