22376 Commits

Author SHA1 Message Date
Wesley Wigham
ea8904e33d
Propagate noDefaultLib comment into emitted declaration files (#23003) 2018-03-29 15:38:29 -07:00
Benjamin Lichtman
d2d0f86831
Merge pull request #20374 from uniqueiniquity/symlinkTypeReferenceDirective
Handle failure to properly resolve type reference directives
2018-03-29 15:26:30 -07:00
Ryan Cavanaugh
5af72b5f02
Merge pull request #22993 from dhruvrajvanshi/issue-22785
Issue 22785
2018-03-29 15:10:04 -07:00
Andy
4309c0e7f8
Fix bug: ClassDeclaration not guaranteed to be first declaration of a class (#22983)
* Fix bug: ClassDeclaration not guaranteed to be first declaration of a class

* fix test
2018-03-29 14:55:22 -07:00
Wesley Wigham
793f4696a4
Fall back to check expression if resolving an export assigned entity name fails (#22928)
* Fall back to check expression if resolving an export assigned entity name fails

* Comments from code review

* Add back in assertion

* Remove nameNotFoundMessage check from resolveName isReferenced check (rely on just isUse instead)
2018-03-29 13:54:12 -07:00
Wesley Wigham
3acafe5f42
Consider property accesses in heritage clauses as type-space references for calculating type reference directives (#22746) 2018-03-29 13:51:52 -07:00
Andy
c861fa9202
Use 'map.get' instead of 'has' (#22998) 2018-03-29 13:48:24 -07:00
Wesley Wigham
43a482f03f
Emit amd-module and amd-dependency comments in emitter if printing declaration comments (#22740)
* Emit amd-module and amd-dependency comments in emitter if printing declaration comments

* Move code a bit

* Move again
2018-03-29 13:43:31 -07:00
Wesley Wigham
509a53fea7
Propagate CheckFlags.Late through instantiateSymbol (#22749) 2018-03-29 13:42:26 -07:00
Wesley Wigham
411c59a8ef
Copy comments from inferred types to generated nodes (#22730) 2018-03-29 13:38:36 -07:00
Wesley Wigham
64ee623fd6
NodeBuilder only preserves parameter modifiers for constructors (#22706) 2018-03-29 13:34:07 -07:00
Andy
9d713b6db6
Error on rest parameter with trailing comma (#22262)
* Error on rest parameter with trailing comma

* Error on binding patterns and improve error location
2018-03-29 13:12:23 -07:00
Sheetal Nandi
a0fe072fa7
Merge pull request #22613 from Microsoft/configFileErrors
Make config file parsing errors available through program and expose API
2018-03-29 13:08:03 -07:00
Andy
d5a7dc1053
fixAddMissingMember: Remove special-casing for 'this' (#22987)
* fixAddMissingMember: Remove special-casing for 'this'

* Update type of 'call'
2018-03-29 12:54:17 -07:00
Wesley Wigham
51a4fe6d20
Handle ts-only declaration export aliases in system transformer (#22919)
* handle ts declarations export alises in system transformer

* Retain end of declaration marker
2018-03-29 12:50:29 -07:00
Wesley Wigham
3365272f69
Dont follow aliases when looking for default exported symbol (#22995) 2018-03-29 12:46:31 -07:00
Wesley Wigham
51d44b6097
Move JSX props support check and make syntactic (#22970)
* Move JSX props support check and make syntactic

* Make parameter required
2018-03-29 12:36:42 -07:00
Andy
e4a73f3981
Assert argument is provided to diagnostic (#22992) 2018-03-29 12:28:37 -07:00
Andy
a9aca81601
Error on for (const x in never) (#22988)
* Error on `for (const x in never)`

* Update diagnostic

* Provide argument to diagnostic
2018-03-29 11:39:30 -07:00
Dhruv Rajvanshi
866c542522 Adding trailing newline to a baseline test file 2018-03-30 00:00:18 +05:30
Wesley Wigham
6c517ef276
Dont let an import that doesnt need helpers override one that does (#22966) 2018-03-29 11:03:33 -07:00
Wesley Wigham
5c49133382
Add regression tests documenting current behavior of #14121 (#22748) 2018-03-29 11:01:05 -07:00
Dhruv Rajvanshi
ac97987ee0 Allow strict mode reserved keywords in qualified type names; Fixes 22785 2018-03-29 22:59:58 +05:30
Andy
65659d7297
Don't allow to iterate over 'never' (#22964)
* Don't allow to iterate over 'never'

* Include type in error message
2018-03-29 10:01:21 -07:00
Nathan Shively-Sanders
eca3d68eb4
@typedef supports nested @property names (#22967)
Previously it did not, because this capability is not documented on
usejsdoc.org. However, several people requested this feature.
2018-03-29 09:39:23 -07:00
Sheetal Nandi
4e76dec0b4
Merge pull request #22976 from Microsoft/childWatches
Do not watch child directories of the sym link folders
2018-03-29 09:34:29 -07:00
Mohamed Hegazy
3e34cadaa4
Merge pull request #22972 from weswigham/capture-LKG
Update LKG
2018-03-29 09:15:40 -07:00
Sheetal Nandi
d8bf95ff10 PR feedback 2018-03-29 09:13:03 -07:00
Andy
57e28dfb4f
Remove unnecessary test (#22962) 2018-03-29 07:54:20 -07:00
Sheetal Nandi
f885cd971e Do not watch child directories of the sym link folders
Fixes #22668
2018-03-28 21:11:13 -07:00
Sheetal Nandi
e40f2943b1 Revert "Do not watch child directories of the sym link folders"
This reverts commit 3280865049a0036f0be580056f815dac1bb9e031.
2018-03-28 21:10:29 -07:00
Sheetal Nandi
3280865049 Do not watch child directories of the sym link folders
Fixes #22668
2018-03-28 18:37:07 -07:00
Wesley Wigham
79e5e79ef7
Update LKG 2018-03-28 17:46:57 -07:00
Anders Hejlsberg
9dd31488f6
Merge pull request #22959 from Microsoft/fixInferTypeParameterLeak
Fix 'infer T' type parameter leaks
2018-03-28 15:45:09 -07:00
Sheetal Nandi
5472ca9ed8
Merge pull request #22963 from Microsoft/incrementalEditWithJsDocNode
Correct the incremental parsing when there is jsDoc node
2018-03-28 15:42:18 -07:00
Anders Hejlsberg
6fedf4dc7e Accept new baselines 2018-03-28 15:21:36 -07:00
Anders Hejlsberg
83276ce163 Add another test 2018-03-28 15:21:29 -07:00
Sheetal Nandi
33e9ef60c4 Correct the incremental parsing when there is jsDoc node
Fixes #22924
2018-03-28 14:32:46 -07:00
Andy
7d39b457f8
Simplify createChildren (#22270)
* Simplify createChildren

* Move 'getSourceFile()' call after early returns
2018-03-28 13:57:43 -07:00
Mohamed Hegazy
85a7118c42
Merge pull request #22960 from Microsoft/portGeneratedLibFiles3-28
Port generated lib files
2018-03-28 13:42:57 -07:00
Andy
6ec13bb945
Use getAllSuperTypeNodes in more places (#22718) 2018-03-28 13:33:20 -07:00
Mohamed Hegazy
272aba1c7d Port generated lib files 2018-03-28 13:26:10 -07:00
Anders Hejlsberg
dc42febf1e Accept new baselines 2018-03-28 13:16:36 -07:00
Anders Hejlsberg
0e446fe8c2 Add regression test 2018-03-28 13:16:29 -07:00
Anders Hejlsberg
dc3eb3c27e Erase 'infer T' locations in conditional type constraints 2018-03-28 13:16:11 -07:00
Wenlu Wang
cb9f436b54 fix accessor parse with line terminator (#22893) 2018-03-28 10:59:09 -07:00
Nathan Shively-Sanders
adf30dd694
isMethodLike recognises prototype-assignment methods (#22935)
* isMethodLike recognises prototype-assignment methods

* Require js prototype methods to be in JS files
2018-03-28 10:41:24 -07:00
Mohamed Hegazy
66bf5b4e9d
Merge pull request #22941 from andfaulkner/patch-1
Fix typo in Array Type Literals section of spec
2018-03-27 22:04:23 -07:00
Andrew Faulkner
0e40308792
Fix typo in Array Type Literals section of spec
Extra end bracket in 1st example code block under Array Type Literals subsection of the spec
2018-03-27 23:42:01 -04:00
Andy
e60348be46
Inline isParameterOfConstructorDeclaration (#22838) 2018-03-27 20:15:43 -07:00