5792 Commits

Author SHA1 Message Date
Arthur Ozga
f2e5fa5bd1 Merge branch 'master' into atTypesPrefixAndImportSuffix 2017-05-02 17:29:32 -07:00
Arthur Ozga
f20a330677 add tests 2017-05-02 17:18:40 -07:00
Andy Hanson
b6bd396983 Fix formatting for async computed method: Allow space between 'async' and '[' 2017-05-02 09:42:32 -07:00
Vladimir Kurchatkin
d45d289f36 Allow indexed access to empty property
Fixes: https://github.com/Microsoft/TypeScript/issues/15209
2017-05-02 01:39:02 +03:00
Mohamed Hegazy
5e7778b36f Merge pull request #15491 from SaschaNaz/newformat
No space after new keyword on constructor signature
2017-05-01 09:43:12 -07:00
Andy Hanson
969da26d45 Add isWriteAccess 2017-05-01 09:03:12 -07:00
Andy Hanson
a70b79072b importTracker: Fix error for undefined importClause 2017-05-01 07:54:41 -07:00
Kagami Sascha Rosylight
61f494ec5d no space after new on constructor signatures 2017-05-01 23:11:59 +09:00
Ron Buckton
1d1ebd0d70 Do not rename references to class inside of the class body function 2017-04-25 13:30:07 -07:00
Nathan Shively-Sanders
c6bf6a20a9 Merge pull request #15357 from Microsoft/es2015-transform-accessors-containing-captured-this
es2015 transform covers accessors that contain captured this
2017-04-25 08:36:53 -07:00
Nathan Shively-Sanders
a94198eb37 Test contextual type of object spread expressions
And update baselines.
2017-04-24 15:44:07 -07:00
Nathan Shively-Sanders
00848fc46f Test ES2015 transform of accessors w/captured this 2017-04-24 14:48:25 -07:00
Mohamed Hegazy
a0abadbcbe Merge pull request #15320 from Microsoft/fixTypePredicateThisParameter
Fix type predicates with this parameters
2017-04-24 10:44:43 -07:00
gcnew
9c2a74c26c Update tests 2017-04-23 19:14:21 +03:00
Anders Hejlsberg
85d4593033 Add regression test 2017-04-22 17:09:20 -07:00
Yui
a1a2006074 Merge pull request #15160 from Microsoft/master-jsxChildren
[Master] Type checking JSX children
2017-04-21 10:02:13 -07:00
Andy Hanson
4ff180d814 Fix null error in importTracker: VariableDeclaration might not have a VariableStatement ancestor 2017-04-21 07:55:16 -07:00
Mohamed Hegazy
24814ec387 Merge pull request #15260 from Microsoft/Fix15200
Fix #15200: Query for semantic errors on .js files with '@ts-check' with no config file
2017-04-20 13:46:52 -07:00
Yui T
b7a30c11bd Update tests and baselines 2017-04-19 22:33:54 -07:00
Ron Buckton
6c176138ca Fix loop block scope binding in generator 2017-04-19 17:06:12 -07:00
Ron Buckton
96927379f0 Emit generated name for unnamed default exported class with decorated members 2017-04-19 14:53:32 -07:00
Nathan Shively-Sanders
a8593996f9 Merge pull request #15258 from Microsoft/mergeSymbol-uses-first-decl-not-valueDecl
mergeSymbol uses first declaration, not valueDeclaration
2017-04-19 08:47:43 -07:00
Mohamed Hegazy
8c33a792b3 Do not query for bind errors if skipLibCheck or skipDefaultLibCheck is set 2017-04-18 16:19:58 -07:00
Nathan Shively-Sanders
eba15f41e4 Test:type alias merged w/interface-namespace errors
Previously it crashed when it assumed valueDeclaration was always
defined.
2017-04-18 16:19:05 -07:00
Nathan Shively-Sanders
2e43c869b4 Merge pull request #15257 from Microsoft/unknown-properties-are-assignable-to-Object-in-union
Unknown properties are assignable to `Object` in union
2017-04-18 15:21:46 -07:00
Nathan Shively-Sanders
8ab22217c1 Test:Unknown properties are assignable to Object in union
Add test and accept baselines
2017-04-18 14:58:27 -07:00
Mohamed Hegazy
6de4693118 Merge pull request #15240 from Microsoft/fixCrashFindingLocals
Check if container has locals before looking up properties
2017-04-18 14:40:26 -07:00
Mohamed Hegazy
e6ecfa46f0 Merge pull request #15229 from Microsoft/Fix15220
Fix #15220: Check for file on diagnostics before getting line map
2017-04-18 14:39:54 -07:00
Ron Buckton
2ca1de514a Merge pull request #15241 from Microsoft/fix15205
Yield in async generator should implicitly unwrap operand
2017-04-18 13:25:20 -07:00
Nathan Shively-Sanders
e36d8d5c63 Merge pull request #15239 from Microsoft/typeof-can-refer-class-before-declaration
Typeof can refer to block-scoped values before declaration
2017-04-18 13:12:28 -07:00
Anders Hejlsberg
cef42c97fe Merge pull request #15104 from Microsoft/covariantCallbacks
Covariant checking for callback parameters
2017-04-18 11:35:21 -07:00
Ron Buckton
5dca7ccb1d Fix yield* as well 2017-04-17 16:37:48 -07:00
Mohamed Hegazy
b7c416cdeb Check if container has locals before looking up properties 2017-04-17 16:26:49 -07:00
Nathan Shively-Sanders
3739216c79 Merge branch 'master' into typeof-can-refer-class-before-declaration 2017-04-17 15:30:16 -07:00
Nathan Shively-Sanders
aaf861af96 Remove TODO from test now that it's done 2017-04-17 15:25:36 -07:00
Nathan Shively-Sanders
42ac23a585 Test: typeof can refer to block-scoped var before declaration 2017-04-17 15:20:36 -07:00
Nathan Shively-Sanders
f071928a9e Merge branch 'master' of https://github.com/Microsoft/TypeScript 2017-04-17 14:01:56 -07:00
Nathan Shively-Sanders
0292f5867c Merge branch 'allow-export-specifier-reference' of https://github.com/Kovensky/TypeScript into Kovensky-allow-export-specifier-reference 2017-04-17 13:59:58 -07:00
Kanchalai Tanglertsampan
f6f0813528 Merge branch 'master' into master-jsxChildren
# Conflicts:
#	src/compiler/checker.ts
#	src/compiler/diagnosticMessages.json
2017-04-17 13:31:12 -07:00
Mohamed Hegazy
4546b0dd8e Make sure we have a node for the error in cases of special property assignment 2017-04-17 13:15:27 -07:00
Kanchalai Tanglertsampan
9a23b75f05 Update baselines and tests (2) 2017-04-17 13:00:38 -07:00
Mohamed Hegazy
4e29b1883d Merge pull request #15051 from Microsoft/at_types
Support @types module resolution from scoped packages
2017-04-17 10:08:15 -07:00
Nathan Shively-Sanders
e5416b5dcc Merge pull request #15075 from Microsoft/fix-exponential-expanding-array-assignment
Evolving array element type ignores contextual type
2017-04-17 08:26:06 -07:00
Kanchalai Tanglertsampan
dbf2a96a7e Update tests and baselines 2017-04-14 15:23:48 -07:00
Mohamed Hegazy
8324244147 Merge pull request #14823 from Microsoft/fix14620
Fix #14620: Lookup names in exports as well as locals when binding special properties
2017-04-14 10:46:22 -07:00
Mohamed Hegazy
76c547d736 Merge remote-tracking branch 'origin/master' into fix14620 2017-04-14 10:18:56 -07:00
Andy
72feaad893 Merge pull request #14001 from Microsoft/refactor_findallrefs
Refactor findAllReferences. Now supports renamed exports and imports.
2017-04-14 09:57:54 -07:00
Mohamed Hegazy
ecd772d620 Merge pull request #15186 from Microsoft/fix15184
Fix #15184: Use `void` and not `undefined` for `this` parameter types in the library
2017-04-14 09:57:36 -07:00
Mohamed Hegazy
ccda015578 Fix failing fourslash test 2017-04-14 09:38:53 -07:00
Nathan Shively-Sanders
959187607d serializeTypeNode handles object
This was just overlooked earlier.
2017-04-14 09:28:31 -07:00