1745 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
1296f240c6 Merge pull request #14074 from Microsoft/error-on-decl-of-extends-intersection
Error when emitting the declaration for an exported class that extends an intersection
2017-02-15 13:43:51 -08:00
Yui
ca6f1c3a41 Merge pull request #13640 from Microsoft/wip-master-statelessOverload
Using overload to figure out function signature for SFC
2017-02-15 07:17:32 -08:00
Ron Buckton
23216f9ba1 Merge branch 'master' into genericDefaults 2017-02-14 19:19:18 -08:00
Kanchalai Tanglertsampan
e5cfe5c348 Merge branch 'master' into wip-master-statelessOverload
# Conflicts:
#	src/compiler/factory.ts
2017-02-14 15:21:06 -08:00
Ryan Cavanaugh
aec310996c Language service extensibility 2017-02-14 13:35:16 -08:00
Nathan Shively-Sanders
cd272e8244 Error on emit declaration of extends class w/o symbol
Error when emitting an extends clause for a type that has no symbol.
This error only occurs on exported classes.
This prevents the emitter from producing types that extend from
intersections, which are not parseable right now.
2017-02-14 12:42:32 -08:00
Vladimir Matveev
f673f48fad inject pre-finally and after-finally edges into flow graph to possible ignore pre-finally during flow walk (#13845) 2017-02-13 14:36:12 -08:00
Nathan Shively-Sanders
46d9f37020 Merge pull request #12033 from Microsoft/add-undefined-to-default-valued-parameters
Add undefined to default-initialised parameters
2017-02-13 13:30:46 -08:00
Vladimir Matveev
de40000814 switch FileExtensionInfo to always mean .js file and deduplicate entries in getSupportedExtensions (#14046)
* - switch FileExtensionInfo to always mean .js file
- deduplicate entries in getSupportedExtensions

* (PR feedback): updated comment
2017-02-13 12:19:33 -08:00
Anders Hejlsberg
7cd0e1a0e6 Merge pull request #13990 from Microsoft/fixPrivateProtected
Properly handle private and protected properties in intersections
2017-02-13 08:13:38 -10:00
Anders Hejlsberg
43c49b1ae7 Properly handle private/protected properties in intersection types 2017-02-09 15:32:17 -08:00
Anders Hejlsberg
b830dea362 Clean up SymbolFlags, introduce CheckFlags in TransientSymbol 2017-02-05 13:20:10 -08:00
Ron Buckton
5bb2fe03ea Simplify checkTypeParameterListsIdentical 2017-02-03 16:34:42 -08:00
Ron Buckton
6ffcbf5b9c Merge branch 'master' into genericDefaults 2017-02-03 14:13:16 -08:00
Ron Buckton
bd98bc97bd Add factory functions for rest of NodeEdgeTraversal 2017-02-03 14:12:50 -08:00
Ron Buckton
6091050bec Remove pre-computation of minTypeArgumentCount 2017-02-03 14:01:42 -08:00
Ron Buckton
ff4c72de00 Make most current Node factory functions public 2017-02-01 16:36:10 -08:00
Ron Buckton
984541316a Added comments and a few Debug assertions 2017-02-01 16:16:04 -08:00
Nathan Shively-Sanders
6f7c984c42 Address PR comments
1. Add undefined only when an initialized parameter is required (not
optional).
2. Create isRequiredInitializedParameter helper function
3. Call this function only once from declarationEmitter
2017-02-01 09:41:44 -08:00
Kanchalai Tanglertsampan
ceb77202aa Address PR: fix typo 2017-01-31 11:11:49 -08:00
Ron Buckton
b58ef9e932 Merge branch 'master' into genericDefaults 2017-01-30 14:32:00 -08:00
Ron Buckton
64ff691a2e Move EmitTextWriter to types.ts 2017-01-30 14:21:52 -08:00
Ron Buckton
f0563ac287 Printer API unit tests 2017-01-30 13:50:34 -08:00
Ron Buckton
0165b71549 Embed comment emit inside of printer 2017-01-30 12:38:18 -08:00
Ron Buckton
028e4e2b13 Extract printer from emitter for reusability. 2017-01-29 11:25:39 -08:00
Nathan Shively-Sanders
3c243dbe0c Remove control flow-based undefined addition
Just add undefined when displaying the type. Don't actually add it to
the type.
2017-01-27 14:29:00 -08:00
Nathan Shively-Sanders
e96b17b4f1 Merge branch 'master' into add-undefined-to-default-valued-parameters 2017-01-25 16:03:49 -08:00
Kanchalai Tanglertsampan
3e07398aee Merge branch 'master' into wip-master-statelessOverload 2017-01-24 14:18:39 -08:00
Andy Hanson
0d21c241b2 Support find-all-references on mapped types.
* Need to put a 'mappedTypeOrigin' property in SymbolLinks
2017-01-24 10:17:17 -08:00
Ron Buckton
f5f1c7e304 Merge branch 'genericDefaults' of https://github.com/Microsoft/TypeScript into genericDefaults 2017-01-23 19:40:07 -08:00
Ron Buckton
15232fe17c Remove circular default check 2017-01-23 19:36:02 -08:00
David Sheldrick
8d590d5191 rename preserveWithJsExtension to react-native 2017-01-23 21:42:39 +01:00
David Sheldrick
dd0ed44b9a Add option to output .js files while preserving jsx
This commit adds the ability to preserve jsx in source code, but
also to output .js files rather than .jsx files. This is useful
for react-native which does not support .jsx files.
2017-01-23 18:17:16 +01:00
Anders Hejlsberg
5b9004e1bc Merge pull request #13604 from Microsoft/intersectionBaseTypes
Allow deriving from object and intersection types
2017-01-21 11:38:24 -10:00
Ron Buckton
76ba6a7f6a Merge branch 'master' into genericDefaults 2017-01-20 20:37:35 -08:00
Ron Buckton
fd228a93a7 Remove partial inference 2017-01-20 18:30:06 -08:00
Ron Buckton
0500065e8b Avoid inference for fully-supplied type arguments 2017-01-20 12:56:08 -08:00
Nathan Shively-Sanders
1183129bda getFirstToken returns jsdoc as single comment
This is a bit odd, but it's the way that 2.0 and earlier behaved. 2.1
broke it.
2017-01-20 10:17:11 -08:00
Anders Hejlsberg
a9af10b030 Intersections as their own 'this' type 2017-01-20 06:16:08 -08:00
Anders Hejlsberg
1c2f7f866b Improve efficiency of union/intersection resolved property caching 2017-01-19 14:30:53 -08:00
Anders Hejlsberg
a6c5306479 Allow object intersection types as class/interface base types 2017-01-19 13:58:09 -08:00
Kanchalai Tanglertsampan
350f47aa3a Address comment: call getContextualType instead of accessing contextualType property directly 2017-01-19 09:47:43 -08:00
Kanchalai Tanglertsampan
5558406246 Parse JSX attributes as its own unique AST node and bind the node 2017-01-18 15:05:25 -08:00
Andy Hanson
30ccc7a5d0 Merge branch 'master' into map5 2017-01-17 10:42:27 -08:00
Ron Buckton
3d3dae089f Adds support for type parameter defaults 2017-01-13 22:53:02 -08:00
Andy Hanson
f1b481a1b6 Support completions for string literal in rest parameter 2017-01-13 14:13:49 -08:00
Andy Hanson
765114fccd Refactor to move code into checker 2017-01-13 07:57:21 -08:00
Andy Hanson
113338c791 Merge branch 'master' into map5 2017-01-12 12:35:00 -08:00
Andy Hanson
890676a5d8 Include properties of an export = value in import completions. 2017-01-12 07:33:36 -08:00
Anders Hejlsberg
13ce0e9414 Fix type relations for 'keyof T' type where T is union or intersection 2017-01-11 11:48:49 -08:00