Wesley Wigham
97c3c6056d
fix symlink tag, support arbitrary (ie, directory) links via @link
...
Introduce indirect symlink lookup to specifier deriver
Use fileset, move exec
vfs path resolution :shakes fist:
Apply files symlink relative to dirname
Use directory function
2018-06-12 11:33:34 -07:00
Wesley Wigham
14da064754
Use more nodelike paths for import types when possible ( #24610 )
...
* Use more nodelike paths for import types when possible
* move functionality from services into compiler, fix with propert file/directory conflict handling
* mark suspect cast
2018-06-12 11:28:33 -07:00
Wesley Wigham
2e81256b20
always visit them all ( #24802 ) ( #24807 )
2018-06-08 18:57:34 -07:00
Sheetal Nandi
83617091a3
Always resolve the first identifier of computed property name to get the symbol and track it
...
Fixes #24798
2018-06-08 14:08:33 -07:00
Wesley Wigham
d9e2bc6f38
Handle import types in serializeType ( #24701 )
2018-06-07 10:41:11 -07:00
Wesley Wigham
345b2b4f2b
Resolve aliases before using getTypereferenceType ( #24594 ) ( #24671 )
2018-06-05 12:35:42 -07:00
Wesley Wigham
1d885b392e
Visit the children of an import type/require call/dynamic import when looking for those ( #24663 ) ( #24670 )
2018-06-05 12:35:28 -07:00
Andy
a86882f996
If parsing a function type fails, parseTypeReference() to ensure something is returned ( #24567 ) ( #24695 )
...
* If parsing a function type fails, parseTypeReference() to ensure something is returned
* Avoid tryParse
* Add missing semicolon
* Don't check for undefined, check for missing type
* Don't set parameters undefined, set to missingList and return false
* Update API baselines
* Code review
2018-06-05 11:02:58 -07:00
Sheetal Nandi
5bcd19275b
Tests to acknowledge the public watch api
2018-06-04 13:09:02 -07:00
Wesley Wigham
be50eea00c
Fix merge lexical environment to *always* respect prologue statements ( #24602 ) ( #24654 )
2018-06-04 12:29:43 -07:00
Sheetal Nandi
c619875a8a
Disable source maps and declaration emit for the json module
...
Fixes #24546
2018-06-04 10:58:04 -07:00
Wesley Wigham
a56fe765cf
Visit super arguments even when no signature exists ( #24591 ) ( #24595 )
2018-06-02 13:32:47 -07:00
Andy
0fb9b1adbd
Fix bug when name resolution fails in a @typedef: Don't set lastLocation ( #24585 )
...
* Fix bug when name resolution fails in a @typedef: Don't set `lastLocation`
* Add noEmit to test
2018-06-01 16:50:43 -07:00
Wesley Wigham
2dd189922f
Include export specifiers in the list of syntactic defaults ( #24549 ) ( #24578 )
2018-06-01 12:16:01 -07:00
Sheetal Nandi
de1849faa5
Do not emit trailing comma in json module
...
Fixes #24530
2018-05-31 12:50:53 -07:00
Alexander T
6024ed29d3
Do not emit 'use strict' prologue in .json files with --alwaysStrict
2018-05-31 12:19:24 -07:00
Wesley Wigham
124e0a3c37
For type emit, walk non-parent containers when those containers have aliases leading to the target ( #24507 ) ( #24510 )
2018-05-31 09:17:49 -07:00
Wesley Wigham
71ea6c3f28
Lookup type arguments correcly for taged templates when checking generic arity ( #24496 ) ( #24504 )
2018-05-30 15:41:48 -07:00
Mohamed Hegazy
a4fd87eeb6
Merge pull request #24347 from weswigham/constraint-fix
...
Check for keyof constraint type instead of syntactic check (#24098 )
2018-05-23 08:42:46 -07:00
Wesley Wigham
b60ad05eb5
Check for keyof constraint type instead of syntactic check ( #24098 )
...
* Check for keyof constraint type instead of syntactic check
* Readopt older candidateType check, even though it shouldnt really matter
* OK. Just use maybetypeOfKind
* Remove redundant boolean check
2018-05-22 17:00:10 -07:00
Wesley Wigham
ef6b961877
Use unknown serialization kind when type symbol isnt resolved ( #24332 )
...
* Use unknown serialization kind when type symbol isnt resolved
* Add test for the isolated modules case
2018-05-22 16:57:11 -07:00
Wesley Wigham
3321537c99
Use symbolToTypeNode for class & interface references ( #24330 ) ( #24334 )
...
* Use merged symbols when calculating qualification, use symbolToTypeNode
* Accept baselines
2018-05-22 15:22:36 -07:00
Andy
982c8d0af9
Add suggestion diagnostics for unused label and unreachable code ( #24261 )
...
* Add suggestion diagnostics for unused label and unreachable code
* Always error on unused left hand side of comma
2018-05-22 07:56:29 -07:00
Andy
802dc2bb9b
fixUnusedIdentifier: If every VariableDeclaration is unused, remove the VariableStatement ( #24231 )
2018-05-21 15:54:33 -07:00
Wesley Wigham
02fe840732
Get constraint with this argument of the type parameter for comparisons ( #21210 )
...
* Get constraint with this argument of the type parameter for comparisons
* Also instantiate indexed accesses
* Add much simpler test
2018-05-18 18:30:23 -07:00
Wesley Wigham
3800d7b246
More robust circularity detection in node builder ( #24225 )
2018-05-17 14:30:07 -07:00
Anders Hejlsberg
3fc3df3c3a
Merge pull request #24137 from Microsoft/fix23977
...
Optimize intersections of unions of unit types
2018-05-17 13:15:28 -07:00
Wesley Wigham
3fc727b256
Use import types to refer to declarations in declaration emit ( #24071 )
...
* Stand up a simple implementation using import types for exports of modules which are otherwise inaccessible
* Ensure references exist to link to modules containing utilized ambient modules
* Accept baselines with new import type usage
* Fix lint
2018-05-17 13:08:22 -07:00
Mohamed Hegazy
8dc9b76b6d
Add undefined guard
2018-05-17 11:45:34 -07:00
Wesley Wigham
60df4671d0
Fix jsx element parsing within ternary ( #24149 )
2018-05-16 09:28:22 -07:00
Andy
2200c94a43
Fix unused diagnostic for rename-destructuring { a: b } ( #24145 )
2018-05-15 16:22:13 -07:00
Sheetal Nandi
77168e5d50
Merge pull request #24112 from Microsoft/packageJsonWithMainInSubDirectory
...
Resolve using package json's "main" field when resolving typescript extensions
2018-05-15 14:18:27 -07:00
Anders Hejlsberg
1c3dbd4f4b
Add regression test
2018-05-15 12:34:29 -07:00
Sheetal Nandi
7be85958a1
Add test for module resolution with package json containing main field referencing js file in sub directory
2018-05-14 13:06:34 -07:00
Wesley Wigham
ba4bf21ead
Cache simplified indexed accesses to better handle circularly constrained indexed acceses ( #24072 )
2018-05-14 12:54:26 -07:00
Wesley Wigham
b58e4e1fa1
Reduce aggression of parenthesis removal in ts transform ( #24073 )
2018-05-14 11:20:04 -07:00
Wesley Wigham
6149b41469
Generate names for type parameter declarations in inferred types ( #23902 )
...
* Generate names for type parameter declarations in inferred types
* Fix lint
* Merge functions, make overload private
* Handle some edge cases better (nodes in differing files than current emit)
* Account for transformed nodes
2018-05-10 11:16:27 -07:00
Nathan Shively-Sanders
e27fb0651b
Fix crash in recursive declared type resolution ( #23950 )
...
When one type has a type parameter with a default
2018-05-09 09:25:00 -07:00
Andy
5725428f2d
fixUnusedIdentifier: Handle destructure with all bindings unused ( #23805 )
...
* fixUnusedIdentifier: Handle destructure with all bindings unused
* Add parameters test
* Add test for 'for' loop
2018-05-08 13:33:55 -07:00
Wesley Wigham
618da24d6a
Look at simplified types when checking distributive conditional constraints ( #23884 )
2018-05-04 14:35:39 -07:00
Sheetal Nandi
5133c70e7e
Merge pull request #22167 from Microsoft/requireJson
...
Resolve the modue names with "modulename.json" to json files when doing node module resolution
2018-05-04 12:42:10 -07:00
Sheetal Nandi
15f9ea3d14
Merge branch 'master' into requireJson
2018-05-03 15:35:54 -07:00
Ron Buckton
f67afa098f
Unpatch vfs resolver and default lib rename
2018-05-03 14:18:50 -07:00
Wesley Wigham
eb80e9a51c
node builder should strive to preserve mapped type keyofness ( #23815 )
2018-05-03 12:38:31 -07:00
Wesley Wigham
23b9a23455
Ensure properties with computed names are visited ( #23787 )
2018-05-03 11:21:29 -07:00
Wesley Wigham
19a985eb24
Dont consider global augmentation top-level members as having the export modifier ( #23846 )
...
* Dont consider global argumentation top-level members as having the export modifier
* Remove unneeded test parts from repro
2018-05-03 11:21:11 -07:00
Wesley Wigham
b467cd8a99
Move property errors to the name for the error span ( #23865 )
2018-05-03 10:55:44 -07:00
Wesley Wigham
41182c2f0b
Stop using circularity-unchecked-caching ( #23808 )
...
* Stop using circularity-unchecked-caching
* Add comment
2018-05-03 10:44:17 -07:00
Ron Buckton
56648ad0f1
Merge pull request #20763 from Microsoft/vfs
...
Update harness to use single robust virtual file system for tests.
2018-05-03 10:25:20 -07:00
Wesley Wigham
9c40d276ab
Downlevel destructuring in module transformer if destructured variable has multiple names ( #23832 )
...
* Downlevel destructuring in module transformer if destructured variable has multiple names
* Alter indentation
2018-05-02 16:20:47 -07:00