1770 Commits

Author SHA1 Message Date
Sheetal Nandi
f412e10310 Fix the emit when jsx attribute expression is empty
Fixes #12994
2017-01-03 11:40:04 -08:00
Ron Buckton
cc306f618b Aggregate flags for ExpressionWithTypeArguments 2016-12-29 11:49:23 -08:00
Mohamed Hegazy
bf7c51cdc6 Do not report helper module errors in ambient contexts for Rest helper 2016-12-29 11:47:07 -08:00
Sheetal Nandi
0c2cce565c Merge pull request #13103 from Microsoft/metadataOfClassFromModule
Update current scope when visiting namespace elements
2016-12-21 13:59:31 -08:00
Sheetal Nandi
74a9924db7 Merge pull request #13100 from Microsoft/unusedLocalsInSpread
Do not report error on unused removed property from object spread when its module member
2016-12-21 13:59:05 -08:00
Sheetal Nandi
32c477a448 Test case for metadata type of class from a module 2016-12-21 12:28:29 -08:00
Sheetal Nandi
4cbb50a00c Merge pull request #13034 from Microsoft/unionWithNull
Add serialization of typenode for null/undefined/never as part of metadata type
2016-12-21 12:21:55 -08:00
Vladimir Matveev
330cceda17 cache results of module resolution for non-relative module names (#13047)
* cache results of module resolution for non-relative module names

* use cache to short-circuit failures
2016-12-21 10:02:28 -08:00
Sheetal Nandi
32568b3fc2 Test case when module member is object spread pattern 2016-12-21 09:45:04 -08:00
Mohamed Hegazy
328a5ef2ba Merge pull request #13024 from Microsoft/package_json_unsupported_extension
Skip files from package.json "main" or "types" if they have an unsupported extension.
2016-12-20 15:44:37 -08:00
Sheetal Nandi
73a829279a Support union of non identifier serialized type node with null/undefined/never 2016-12-19 16:50:17 -08:00
Sheetal Nandi
59403796c7 Add serialization of typenode for null/undefined/never as part of metadata type
Fixes #12684 and #11933
2016-12-19 14:17:42 -08:00
Mohamed Hegazy
8ae0376e75 Merge pull request #13016 from arusakov/disallow_old_style_octal_literal_types
Disallow old style octal literal types
2016-12-19 13:58:20 -08:00
Vladimir Matveev
0649c2272c cache per-folder module resolutions during construction of the program (#13030) 2016-12-19 13:48:45 -08:00
Andy Hanson
720a3bfa16 Skip files from package.json "main" or "types" if they have an unsupported extension. 2016-12-19 08:10:05 -08:00
arusakov
142a6f6420 Disallow old style octal literal types 2016-12-19 11:49:01 +03:00
Ron Buckton
0f78f53780 Merge pull request #12967 from Microsoft/fix12749
Do not transform JSX tag names for ES3
2016-12-15 20:50:02 -08:00
Ron Buckton
40d08df90b Do not transform JSX tag names for ES3 2016-12-15 16:33:49 -08:00
Vladimir Matveev
f034022e25 lift multiple statements into block if necessary (#12965) 2016-12-15 16:31:50 -08:00
Daniel Rosenwasser
8e94d84953 Merge pull request #12893 from Microsoft/capturedThisFix
Avoid replacing last statement of derived constructors if 'this' is referenced.
2016-12-14 13:31:08 -08:00
Daniel Rosenwasser
dd0a3809d6 Added a tests for super property accesses within super calls of derived classes. 2016-12-14 12:48:02 -08:00
Nathan Shively-Sanders
ae2a13cf18 Merge pull request #12896 from Microsoft/implicit-any-error-on-explicit-any
Set symbol/flags only on (fresh) object spreads
2016-12-13 14:15:52 -08:00
Nathan Shively-Sanders
587ba8d0ae Test:spreading any doesn't set flags on anyType
And update baselines
2016-12-13 13:55:13 -08:00
Vladimir Matveev
c71e6cc9ef add a new line if after writing trailing comments (#12894) 2016-12-13 12:57:21 -08:00
Vladimir Matveev
e5e1533d49 mark types used in decorator metadata as referenced (#12890) 2016-12-13 11:46:06 -08:00
Mohamed Hegazy
24c56a5733 Merge pull request #12775 from Microsoft/fix12724
Fix error on extends in declaration file with importHelpers
2016-12-12 16:18:22 -08:00
Vladimir Matveev
d0506735e3 elaborate check before converting fresh literal type to regular (#12595) 2016-12-12 12:37:06 -08:00
Andy
a33e6536e0 Merge pull request #12852 from Microsoft/untyped_augmentation_2
Produce an error for an augmentation of an untyped module even if `moduleNotFoundError` is not defined
2016-12-12 12:33:37 -08:00
Nathan Shively-Sanders
65bb78d569 Merge pull request #12808 from Microsoft/self-referencing-spread-recursive-loop
Self-referencing spread recursive loop
2016-12-12 10:40:34 -08:00
Vladimir Matveev
496a14a021 create new lexical environment for the body of converted loop (#12831) 2016-12-12 10:18:30 -08:00
Vladimir Matveev
a604d84f5c guard against visiting the same symbol table multiple times (#12818) 2016-12-12 10:17:07 -08:00
Andy Hanson
83eddb549e Produce an error for an augmentation of an untyped module even if moduleNotFoundError is not defined 2016-12-12 07:36:54 -08:00
Nathan Shively-Sanders
809706ba00 Test self-assignment w/array spread in loop 2016-12-09 10:52:49 -08:00
Sheetal Nandi
81452c544a Do not report unused local error on locals that are intended for removing properties with object spread
Fixes #12766
2016-12-08 15:12:35 -08:00
Sheetal Nandi
9505a18894 Add tests when object spread is used in destructuring 2016-12-08 14:35:35 -08:00
Ron Buckton
09761b5f07 Fix error on extends in declaration file with importHelpers 2016-12-08 13:43:32 -08:00
Nathan Shively-Sanders
e3fb305d5a Test that sub-subclass can access protected ctor 2016-12-05 12:24:31 -08:00
Sheetal Nandi
86f69f13fa Add test for the decorated method beginning with underscore 2016-12-01 13:04:11 -08:00
Sheetal Nandi
adf9b26f50 Handle parameter type error for index signature in declaration emit
Fixes #12572
2016-11-30 16:28:26 -08:00
Mohamed Hegazy
e4f0a50a7c Update test name 2016-11-29 12:29:40 -08:00
Mohamed Hegazy
9ab55c1576 change test 2016-11-29 12:27:56 -08:00
Mohamed Hegazy
216f286133 Handel null and undefined in object spread and rest 2016-11-29 12:25:10 -08:00
Mohamed Hegazy
f2e30f6693 Allow union and intersection as targets for object spread and rest, and distribute spread&rest over unions 2016-11-29 00:04:20 -08:00
Anders Hejlsberg
c89b1eb9e9 Merge pull request #12386 from mariusschulz/union-and-intersection-types-with-leading-operator
Union and intersection types with leading operator
2016-11-28 15:57:24 -08:00
Anders Hejlsberg
2b0721672c Add regression test 2016-11-28 11:01:19 -08:00
Anders Hejlsberg
0be4edefca Add regression test 2016-11-28 09:35:03 -08:00
Anders Hejlsberg
d1393a60d4 Add regression test 2016-11-26 12:22:29 -08:00
Anders Hejlsberg
2cec4c5ebb Add regression test 2016-11-23 18:28:59 -08:00
Mohamed Hegazy
72cee3e045 Merge pull request #12434 from Microsoft/Fix12377
Add special handeling for function and array in Object.freeze
2016-11-23 13:26:36 -08:00
Sheetal Nandi
20a8a30b76 Instead of creating clone of the jsxFactory's leaf node, create synthesized node
Fixes #12467
This avoid setting original node which would be something from isolated parsing and hence not valid when resolving expression
2016-11-23 12:26:02 -08:00