Commit Graph

35940 Commits

Author SHA1 Message Date
Cyrus Najmabadi eb5e1bcbad Use a function declaration vs a function expression to help deal with a reported Atom+IO.js issue. 2015-03-26 23:55:10 -07:00
zhongsp 4fb4418dad doc: fix typo BankAccount and regenerate language specification 2015-03-27 10:10:46 +08:00
Anders Hejlsberg 4788581f53 Addressing CR feedback 2015-03-26 16:32:27 -07:00
Steve Lucco 0ec6edaaf6 Merge pull request #2504 from Microsoft/fixConfigLookup
Fix bug stemming from use of tsc findConfigFile by server.
2015-03-26 15:24:46 -07:00
Jason Freeman 903c1d8dd8 Add clarifying comment about checkExpressionCached 2015-03-26 15:15:02 -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
Jason Freeman de8de7ac96 Merge branch 'master' into iteratorSpreadDestructure 2015-03-26 12:26:40 -07:00
Anders Hejlsberg 82b6acaab9 Accepting new baselines 2015-03-26 11:07:28 -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
Dirk Baeumer c123208784 fixes #2507 - bad formatting for formatonkey if convertTabsToSpaces === false 2015-03-26 15:33:15 +01:00
Dirk Baeumer 631a9d80be Merge pull request #2489 from dbaeumer-feature/formatOptions 2015-03-26 11:23:14 +01:00
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
Jason Freeman d7af0db0e2 Merge pull request #2501 from Microsoft/elaborateErrors
Make elaborateErrors persist throughout type relation checks
2015-03-26 00:20:40 -07:00
Vladimir Matveev a51f0bf8bb added relaxed emit rules for separate compilation 2015-03-25 23:18:58 -07:00
Shengping Zhong 7ee698c450 doc: fix typo 'BankAccount' 2015-03-26 11:29:56 +08: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
Daniel Rosenwasser 77492382ea Updated API baselines. 2015-03-25 18:08:46 -07:00
Jason Freeman e1f2fbff63 Add tests for array destructuring of iterables 2015-03-25 18:04:11 -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 4a0af76064 Add tests for iterator spread in call 2015-03-25 18:03:45 -07:00
Jason Freeman 376574d1be Add tests for iterator spread in an array literal 2015-03-25 18:03:42 -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
Daniel Rosenwasser a56233f17d Added tests related to completions with keywords. 2015-03-25 16:35:37 -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
Daniel Rosenwasser 5f428fefb0 More tests. 2015-03-25 14:16:12 -07:00
Daniel Rosenwasser 36db7aad2d Added test. 2015-03-25 12:04:21 -07:00