Vladimir Matveev
5d22d18a70
allow augmentation for entities exported via 'export='
2016-01-29 16:27:34 -08:00
Ryan Cavanaugh
f89ebb8fd8
Fixes bug #6673
...
#6673
2016-01-29 16:01:41 -08:00
Nathan Shively-Sanders
d030889166
Update baselines
...
1. Display of `this` changes for quick info.
2. The type of Function.call/apply/bind is more precise.
2016-01-29 14:52:47 -08:00
Nathan Shively-Sanders
a4f1154377
Fix free function bug in cachingInServerLSHost
2016-01-29 14:51:35 -08:00
Nathan Shively-Sanders
04e7d81105
Add tests and baselines for this-function types.
2016-01-29 14:49:52 -08:00
Daniel Rosenwasser
ad9bff88fa
Merge branch 'master' into theyreNotTHATSpecial
2016-01-29 14:47:23 -08:00
Nathan Shively-Sanders
5fe8478159
Add overloads for Function.apply/call/bind
...
The new overloads use this types to specify the return type of these
functions as well as the type of `thisArg`.
2016-01-29 14:46:01 -08:00
Nathan Shively-Sanders
22e571f1e9
Add services support for this types.
2016-01-29 14:44:20 -08:00
Nathan Shively-Sanders
ca16209032
Make compiler strictThis clean.
2016-01-29 14:43:50 -08:00
Nathan Shively-Sanders
9bd7afb143
Add new error message and strictThis flag
2016-01-29 14:39:01 -08:00
Nathan Shively-Sanders
a639b71ed0
Skip emit of this types as first parameter.
2016-01-29 14:34:44 -08:00
Nathan Shively-Sanders
d8a77c0055
Check this type in functions.
...
If `this` is not provided, it defaults to `void` for functions and `this`
for methods. The rules for checking are similar to parameter checking, but
there's still quite a bit of duplication for this implementation.
2016-01-29 14:30:01 -08:00
Nathan Shively-Sanders
0a968f0868
Parse this type using parameter syntax
...
Syntax is the same as a normal parameter:
```ts
function f(this: void, x: number) {
}
```
2016-01-29 14:10:43 -08:00
Vladimir Matveev
b037419f52
Merge pull request #6736 from Microsoft/crossFileDeclarationMerging
...
fix access check issues when declaration is in multiple files
2016-01-29 14:04:16 -08:00
Vladimir Matveev
56355d1d17
fix access check issues when declaration is in multiple files
2016-01-29 13:28:27 -08:00
Mohamed Hegazy
1ae7d5ca09
Merge pull request #6688 from guybedford/system-module-id
...
Set __moduleName from context.id argument
2016-01-29 10:24:55 -08:00
guybedford
94fe3e0fb2
set __moduleName from context.id argument
2016-01-29 18:42:23 +02:00
Noj Vek
fcd96cb3d8
fix tslint
2016-01-28 23:33:14 -08:00
Noj Vek
238fcbcee9
single iteration through children array without any array allocation
2016-01-28 23:29:08 -08:00
Ron Buckton
4835e43a8f
Merge branch 'master' into fixDecoratedClassName
2016-01-28 17:59:04 -08:00
Ron Buckton
0978639ab2
Merge branch 'master' into fixDecoratedClassName
2016-01-28 17:53:56 -08:00
Ryan Cavanaugh
1f503f1b27
Add explicit return undefined;
2016-01-28 16:07:06 -08:00
Ryan Cavanaugh
1231c9e145
Fix case when position === 0
2016-01-28 16:05:03 -08:00
Yui
e954929d4b
Merge pull request #5833 from Microsoft/fix4211
...
Error when accessing this before super
2016-01-28 15:55:03 -08:00
Ryan Cavanaugh
5a845bf0fc
Don't crash when return type jsdoc tag is malformed
...
Fixes #6662
2016-01-28 15:48:18 -08:00
Ron Buckton
39077f6866
PR feedback
2016-01-28 15:25:42 -08:00
Ryan Cavanaugh
124bd517e7
Don't show the currently-completing thing at the cursor in JS files
...
Fixes #6693
2016-01-28 15:18:50 -08:00
Vladimir Matveev
78b525312f
Merge pull request #6704 from Microsoft/isRequireCall_fix
...
add extra argument to 'isRequireCall' to check if argument is string …
2016-01-28 15:16:53 -08:00
Kanchalai Tanglertsampan
bf854a784f
Merge branch 'master' into fix4211
2016-01-28 14:33:50 -08:00
Vladimir Matveev
b3eaef17e9
fix linter issues
2016-01-28 14:21:04 -08:00
Vladimir Matveev
3661b66be4
add extra argument to 'isRequireCall' to check if argument is string literal
2016-01-28 14:18:23 -08:00
Anders Hejlsberg
cb6dd18174
Merge pull request #6702 from Microsoft/readonlyInDeclarationFiles2
...
Readonly in declaration files (part 2)
2016-01-28 13:56:18 -08:00
Ryan Cavanaugh
2ef6f13532
Merge pull request #6699 from RyanCavanaugh/fix6663
...
Use union types in the return type of functions in the error case
2016-01-28 13:30:03 -08:00
Anders Hejlsberg
c00d239c00
Accepting new baselines
2016-01-28 13:29:58 -08:00
Anders Hejlsberg
898797fcee
Adding more test cases
2016-01-28 13:29:20 -08:00
Anders Hejlsberg
a88ff9c2ad
Emit readonly in declaration file for get-only accessors in classes
2016-01-28 13:28:49 -08:00
Zhengbo Li
31bf103212
Merge pull request #6632 from zhengbli/fixFindAllRefForSalsa
...
Fix find all references for salsa
2016-01-28 11:44:47 -08:00
Ryan Cavanaugh
2688dbd495
Merge pull request #6698 from RyanCavanaugh/fix6552
...
Recognize the RHS of assignments as the JSDoc target expression
2016-01-28 11:40:27 -08:00
Ryan Cavanaugh
da6e82f639
Use union types in the return type of functions in the error case
...
Fixes #6663
2016-01-28 11:39:19 -08:00
zhengbli
bf897c2939
Add more tests and comments
2016-01-28 11:26:32 -08:00
Ryan Cavanaugh
364b08854b
Recognize the RHS of assignments as the JSDoc target expression
...
Fixes #6552
2016-01-28 11:02:49 -08:00
Anders Hejlsberg
fbf1477970
Merge pull request #6697 from Microsoft/readonlyInDeclarationFiles
...
Readonly in declaration files
2016-01-28 10:57:38 -08:00
Anders Hejlsberg
371811ab5b
Adding test
2016-01-28 10:40:08 -08:00
Anders Hejlsberg
3019017093
Emit readonly in declaration files
2016-01-28 10:39:54 -08:00
Vladimir Matveev
0981719bed
Merge pull request #6683 from Microsoft/strip_quotes_in_modules_names
...
strip quotes from module names during deduplication
2016-01-27 20:05:32 -08:00
Mohamed Hegazy
c353252c8e
Update authors for release 1.8
2016-01-27 19:51:43 -08:00
Ron Buckton
098d59c954
Cleaned up variable names and conditions in checkIdentifier
2016-01-27 16:33:45 -08:00
Ron Buckton
1bb96555da
Creates a class body scoped alias to the class to avoid class name double binding.
...
Fixes #5386 .
2016-01-27 16:13:51 -08:00
Vladimir Matveev
5b68d6559a
strip quotes from module names during deduplication
2016-01-27 15:34:53 -08:00
zhengbli
5ced4c401f
Merge branch 'master' of https://github.com/Microsoft/TypeScript into fixFindAllRefForSalsa
2016-01-27 15:20:16 -08:00