Commit graph

5126 commits

Author SHA1 Message Date
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
Anders Hejlsberg
e925aa77b2 Merge pull request #2460 from Microsoft/exportEquals
Revised ES6 modules
2015-03-25 11:01:00 -07:00
Anders Hejlsberg
a05f1e8d85 Merge pull request #2467 from Microsoft/exportEqualsMerged
Merge master into exportEquals
2015-03-25 09:47:44 -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