Commit Graph

10063 Commits

Author SHA1 Message Date
Sheetal Nandi
5a776e28ba Merge pull request #19088 from Microsoft/resolutionCacheDefensiveChecks
Function to clear the per directory resolution
2017-10-12 08:55:17 -07:00
Anders Hejlsberg
728d2a92ce Merge pull request #19091 from Microsoft/fixAnonymousTypeInstantiation
Fix anonymous type instantiation
2017-10-12 00:54:14 +01:00
Andrew Casey
bada0095ed Merge pull request #18979 from amcasey/DeepClone
Introduce getSynthesizedDeepClone
2017-10-11 16:36:25 -07:00
Anders Hejlsberg
6cf41ae882 Merge pull request #19107 from Microsoft/fixRecursiveCallbacks
Fix checking of recursive callback types
2017-10-12 00:28:16 +01:00
Anders Hejlsberg
9ef417b846 Account for type queries in type literals 2017-10-11 16:02:58 -07:00
Wesley Wigham
b949245336 Add ValueModule as a valid object literal type, as they are immutable (#19090)
* Add ValueModule as a valid object literal type, as they are immutable

* Rename method based on usage
2017-10-11 15:13:33 -07:00
Nathan Shively-Sanders
461e29bbd8 Merge pull request #18965 from Microsoft/set-symbol-on-union-of-spreads
Set symbol on union that is returned from `getSpreadType`
2017-10-11 13:25:45 -07:00
Ron Buckton
73d06f796d Merge pull request #19056 from Microsoft/fix16221
Fix recursive reference in type parameter default
2017-10-11 12:49:35 -07:00
Sheetal Nandi
bce77fdfd9 Merge pull request #18960 from Microsoft/builderHandlesChangeInResolution
Builder handles changes in resolution/references when file's contents dont change
2017-10-11 12:11:44 -07:00
Anders Hejlsberg
81fc2a14d1 Don't check for callbacks in recursive call that resulted from callbacks 2017-10-11 12:01:26 -07:00
Ron Buckton
d08770bdff Merge pull request #19046 from Microsoft/fix15395
Fix emit for classes with both fields and 'extends null'
2017-10-11 11:49:22 -07:00
Sheetal Nandi
142a88a4ae Update the comment on emit handler method 2017-10-11 10:51:46 -07:00
Nathan Shively-Sanders
de68f067d5 Set flags on fresh object types from getSpreadType
Previously, getSpreadType didn't set any flags and relied on its callers
to do so. This was error-prone because getSpreadType often returns
non-fresh types.
2017-10-11 08:17:40 -07:00
Sheetal Nandi
9767d77143 Update comment on emit handler functions 2017-10-10 18:41:45 -07:00
Sheetal Nandi
a7fa187fb2 Merge pull request #19058 from Microsoft/whenWatchesFail
Swallow the directory watcher exceptions and ignore them
2017-10-10 18:32:22 -07:00
Anders Hejlsberg
5a1d846e76 Properly account for possibly referenced type parameters 2017-10-10 17:34:16 -07:00
Sheetal Nandi
d7269f1386 Merge pull request #19053 from Microsoft/resolutionCacheDefensiveChecks
Resolution cache defensive checks
2017-10-10 17:18:53 -07:00
Sheetal Nandi
e30a66d22f Add utitlity for stringContains 2017-10-10 17:16:39 -07:00
Sheetal Nandi
cb326ed298 Function to clear the per directory resolution 2017-10-10 16:40:12 -07:00
Sheetal Nandi
55bbcff348 Modify the changesAffectModuleResolution check 2017-10-10 16:36:09 -07:00
Andy
d086b637c5 Remove removeWhere (#19082) 2017-10-10 15:52:41 -07:00
Wesley Wigham
611e0f7b4a Do not rely on parent pointers in the binder (#19083) 2017-10-10 15:37:05 -07:00
Andrew Casey
9ece0cc956 Move getSynthesizedDeepClone to services/utilities.ts 2017-10-10 13:01:11 -07:00
Andy
927ffefcf4 Replace more 'verify.rangeAfterCodeFix' with 'verify.codeFix' (#18800) 2017-10-10 11:28:05 -07:00
Andy
b839e17e17 Improve JSDoc @augments diagnostics (#19011) 2017-10-10 11:27:53 -07:00
Sheetal Nandi
d71406c866 Merge branch 'master' into resolutionCacheDefensiveChecks 2017-10-10 11:02:46 -07:00
Andy
3eeb54861d Fix invalid cast (#18821) 2017-10-10 10:53:43 -07:00
Sheetal Nandi
67a6a9477f Merge pull request #16586 from Microsoft/projectRootAsCurrentDirectoryInEmit
Use the project root or the directory of current script info as the current directory to emit the file
2017-10-10 10:28:14 -07:00
Ron Buckton
1125e0a966 Merge branch 'master' into fix17564 2017-10-10 09:47:04 -07:00
Ron Buckton
dc607c29b4 Fix 'this' capturing for dynamic import 2017-10-09 17:15:13 -07:00
Wesley Wigham
17a1cd069d Add deprecation warning to getSymbolDisplayBuilder (#18953)
* Add deprecation warning to getSymbolDisplayBuilder

* Accept API baselines
2017-10-09 16:55:20 -07:00
Sheetal Nandi
b9592d4186 Use the parent most node_modules directory for module resolution failed lookup locations 2017-10-09 15:59:27 -07:00
Ron Buckton
aaa06122b9 Fix recursive reference in type parameter default 2017-10-09 15:44:06 -07:00
Arthur Ozga
1db762356e Merge pull request #18706 from aozgaa/dev/aozgaa/JsDocExtendsSupport
support @extends in jsdoc
2017-10-09 15:08:58 -07:00
Sheetal Nandi
07ba906594 Handle the case when finishCachingPerDirectoryResolution is not called because of exception
Fixes #18975
2017-10-09 14:32:33 -07:00
Nathan Shively-Sanders
9b51c33582 Merge pull request #19005 from charlespierce/abstract_property_in_constructor
Error when accessing abstract property in constructor #9230
2017-10-09 13:21:33 -07:00
Ron Buckton
264652c0ef Fix emit for classes with both fields and 'extends null' 2017-10-09 13:14:49 -07:00
Charles Pierce
8486c48237 Fix linting error in new function 2017-10-09 13:01:30 -07:00
Sheetal Nandi
077f70276f Merge pull request #18970 from Microsoft/lessLoggingInTsc
Fine tune logging so that only triggers in watch are logged in normal mode vs verbose
2017-10-09 11:37:02 -07:00
Nathan Shively-Sanders
517dbf3ca7 Fix semicolon lint 2017-10-09 11:14:24 -07:00
Andy
2796ebfe35 In resolveNameHelper, use a lastNonBlockLocation (#18918) 2017-10-09 11:04:28 -07:00
Charles Pierce
79f5d968a1 Use ancestor walk to determine if property access is within constructor #9230 2017-10-09 10:57:08 -07:00
Andy
8a55baf9a3 In @typedef tag, handle property with no type (#19013) 2017-10-09 09:58:02 -07:00
Charles Pierce
9e00df590d Error when accessing abstract property in constructor #9230 2017-10-06 19:46:29 -07:00
Arthur Ozga
932b1b038c better error message 2017-10-06 16:16:37 -07:00
Arthur Ozga
0afaadba3b add error for multiple tags 2017-10-06 15:56:39 -07:00
Andy
e821c2b6e9 A parameter not declared as a rest parameter is not one (#18825) 2017-10-06 15:05:00 -07:00
Andy
71f8852124 Have getNameOfDeclaration return x for export default x. (#18616) 2017-10-06 14:29:45 -07:00
Arthur Ozga
5ea3ca4ef9 Merge branch 'master' into dev/aozgaa/JsDocExtendsSupport 2017-10-06 14:25:31 -07:00
Anders Hejlsberg
b7e744a0e5 Merge pull request #18976 from Microsoft/strictCallbackParameters
Strictly check callback parameters
2017-10-06 21:36:52 +01:00