Commit Graph

26317 Commits

Author SHA1 Message Date
steveluc 237225b01a Fix bug stemming from use of tsc findConfigFile by server. Server needs
its own version of this because tsc always starts from the current
directory but the server must start from whatever directory contains the
newly opened file.
2015-03-26 00:21:27 -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
Jason Freeman 17719e85ff Fix comment to be more accurate 2015-03-25 19:06:34 -07:00
Daniel Rosenwasser 19211b1292 Got rid of 'getExportsOfImportDeclaration'. 2015-03-25 18:40:06 -07:00
Jason Freeman 197a42a692 Optimize direct Iterable reference in getIteratedType 2015-03-25 18:38:14 -07:00
Ron Buckton 71803c6412 Minor emit cleanup 2015-03-25 18:12:57 -07:00
Jason Freeman a477b63420 Adjust getTypeFromArrayBindingPattern to return an array if inside a rest parameter 2015-03-25 18:04:08 -07:00
Jason Freeman 6b2d5ceb7c Wrap elementType in createArrayType for rest element in checkArrayLiteralAssignment 2015-03-25 18:04:04 -07:00
Jason Freeman 17d201f922 Use iterated type in checkArrayLiteralAssignment 2015-03-25 18:04:01 -07:00
Jason Freeman 06d6717859 Type of an array binding element is the iterated type of its parent in ES6 2015-03-25 18:03:58 -07:00
Jason Freeman 806c9ce25b Refactor iterable or array checks into checkIteratedTypeOrElementType 2015-03-25 18:03:55 -07:00
Jason Freeman 42ed6aab89 getTypeFromArrayBindingPattern returns an iterable in ES6 2015-03-25 18:03:51 -07:00
Jason Freeman 8c2cd26103 Add createIterableType 2015-03-25 18:03:48 -07:00
Jason Freeman 2288946afc Support iterators in spread element 2015-03-25 18:03:38 -07:00
Jason Freeman b7f2990305 Refactor checkSpreadElementExpression to get the element type internally 2015-03-25 18:03:35 -07:00
Jason Freeman 3497e27d56 Add spread to typeWriter 2015-03-25 18:03:32 -07:00
Jason Freeman abe4076417 Change error message to be more general 2015-03-25 18:03:28 -07:00
Daniel Rosenwasser 82222472b5 Subsume 'getExportsOfImportDeclaration' with 'getExportsOfModule'. 2015-03-25 18:01:57 -07:00
Daniel Rosenwasser d1fa506db6 Use 'symbolsToArray' to avoid filtering. 2015-03-25 17:36:51 -07:00
Ron Buckton a1d445ebc9 Updated baselines 2015-03-25 17:36:08 -07:00
Ron Buckton 2a907a9c3a Type serialization for decorators 2015-03-25 17:23:47 -07:00
Daniel Rosenwasser f70e772acc Merge branch 'master' into transitiveExports
Conflicts:
	src/compiler/checker.ts
2015-03-25 17:02:58 -07:00
Daniel Rosenwasser 8610a881c3 Merge pull request #2495 from Microsoft/useAppropriateCompletionEdge
Use adjusted completion position when at end of identifier
2015-03-25 16:59:11 -07:00
Daniel Rosenwasser 0437dfb594 Adjust the context token if the previous token is a word, not just if it's an identifier. 2015-03-25 16:37:41 -07:00
Ron Buckton 07ea4064a2 Merge pull request #2497 from Microsoft/decorators_emit
Emit decorators when --target ES3
2015-03-25 16:13:49 -07:00
Ron Buckton f27caf5d87 Emit decorators when --target ES3 2015-03-25 16:12:07 -07:00
Daniel Rosenwasser e33b24d3d0 Merge pull request #2480 from dbaeumer/feature/signatureHelp
Add signature help to Typescript server
2015-03-25 15:07:24 -07:00
Daniel Rosenwasser 93108ef612 Adjust 'position' to beginning of identifier when 'contextToken' has been readjusted. 2015-03-25 14:25:29 -07:00
Dirk Baeumer c66571b273 Integrated pull request feedback 2015-03-25 12:31:59 +01: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
Daniel Rosenwasser fd3b4ca9cd Fixed transitive export completion list issue. 2015-03-24 18:45:38 -07:00
Cyrus Najmabadi 552d82bc1e Merge branch 'master' into JSLS
Conflicts:
	src/services/services.ts
2015-03-24 18:00:02 -07:00
Cyrus Najmabadi ff2609f251 Merge branch 'master' into javascriptLanguageservice 2015-03-24 17:06:25 -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 69ff9b3c13 PR feedback. 2015-03-24 16:50:11 -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