Ryan Cavanaugh
53106cb5ed
Change logic in identifying SFCs
...
Our logic for detecting SFC vs Element Class had a few issues:
* Object Type flag is not actually useful
* Parameter arity isn't actually relevant
* The check for Element Class should take priority
Fixes #6349 and #6353
2016-01-04 23:00:22 -08:00
Daniel Rosenwasser
5ab5cfd2fd
Contextually type the RHS of logical 'and' and comma expressions.
2016-01-04 22:54:37 -05:00
Daniel Rosenwasser
2cb7ab9692
Merge pull request #6232 from Microsoft/contextuallyTypeJsxStringLiteralAttributes
...
Contextually type JSX string literal attributes
2016-01-04 14:50:09 -05:00
Mohamed Hegazy
996f16940e
Merge pull request #6098 from guybedford/master
...
Naive implementation for #6097
2016-01-04 09:38:27 -08:00
Nathan Shively-Sanders
ec4c6fea2d
Merge branch 'master' into lint-nested-++
2016-01-04 08:56:05 -08:00
Ryan Cavanaugh
0debd2b6cd
Merge pull request #6290 from RyanCavanaugh/fix5865
...
Tag 'react' import as used if it exists when targeting --jsx preserve
2016-01-04 07:47:01 -08:00
Ryan Cavanaugh
80a16de570
Tag the 'react' import as used even under --jsx preserve
...
Fixes #5865
2015-12-29 14:43:57 -08:00
Ryan Cavanaugh
3288f5bb6d
Make linter happy
2015-12-29 13:16:00 -08:00
Ryan Cavanaugh
e12855bca0
Escape quotes when they appear as HTML entities in JSX text
...
Fixes #6241
2015-12-29 12:39:27 -08:00
Daniel Rosenwasser
a0ef319f5d
Simplified JSX contextual typing code and added support for contextually typing string literal attribute initializers.
2015-12-23 17:10:16 -08:00
Nathan Shively-Sanders
abf9961528
Merge branch 'master' into lint-nested-++
2015-12-22 16:12:07 -08:00
Nathan Shively-Sanders
401a393519
Fix ++/-- lint
2015-12-22 15:45:00 -08:00
vladima
39605fe5f8
report pre-emit diagnostics that blocked emit
2015-12-21 21:43:51 -08:00
Daniel Rosenwasser
3969b89b23
Fixups for #6163 .
2015-12-21 13:40:59 -08:00
Daniel Rosenwasser
ee50adbc85
Merge pull request #6129 from pimterry/decorator-overload-msg
...
Improve decorator on overload error message
2015-12-21 13:30:46 -08:00
Daniel Rosenwasser
adf5290587
Merge pull request #6163 from DanCorder/5810
...
Fix issue #5810 doubled comment on functions in array literals
2015-12-21 13:29:03 -08:00
Anders Hejlsberg
66a0f1d2ea
Merge pull request #6111 from Microsoft/simplifyAbstractCheck
...
Simplify abstract constructor type assignability checking
2015-12-18 19:09:10 -08:00
Dan Corder
aba197cd4b
Fix issue #5810 doubled comment on functions in array literals
2015-12-18 22:35:08 +00:00
Daniel Rosenwasser
cc5334eb89
Made 'expression' non-optional in 'CaseClause'.
2015-12-18 14:06:08 -08:00
Vladimir Matveev
a8f87bb2ca
only '++' and '--' unary operators can change exports
2015-12-18 11:21:31 -08:00
Daniel Rosenwasser
22856de23a
Merge pull request #6140 from Microsoft/noUnused
...
Apply the 'no-unused-variable' tslint rule to our codebase
2015-12-17 23:56:53 -08:00
Vladimir Matveev
bb1e5ab5ea
Merge pull request #6077 from Microsoft/superInObjectLiterals
...
allow usage of 'super' in object literal expressions
2015-12-17 21:53:58 -08:00
Yui
09d22331a4
Merge pull request #6084 from Microsoft/fix4686_fixrename
...
Fix rename/document-highlight/find reference in parameter property declaration
2015-12-17 21:52:29 -08:00
vladima
ae7d687a77
merge with origin/master
2015-12-17 21:30:47 -08:00
Ryan Cavanaugh
0163675464
Merge pull request #6104 from RyanCavanaugh/fix6029
...
Properly handle multiply-declared optional properties in JSX attr. type
2015-12-17 20:18:17 -08:00
Daniel Rosenwasser
19b44e0c72
Merge branch 'master' into noUnused
2015-12-17 19:38:19 -08:00
Yui T
73911a327d
Merge branch 'master' into fix4686_fixrename
2015-12-17 18:35:08 -08:00
Daniel Rosenwasser
8d46ffdb73
Merge pull request #6075 from Microsoft/overloadCompatibility
...
Implement new overload compatibility checking
2015-12-17 17:15:22 -08:00
Vladimir Matveev
314b162882
Merge remote-tracking branch 'origin/master' into superInObjectLiterals
2015-12-17 17:02:37 -08:00
Nathan Shively-Sanders
4d792f2014
Merge pull request #6036 from Microsoft/structural-enums
...
Compare enums semi-structurally.
2015-12-17 16:31:03 -08:00
Nathan Shively-Sanders
b04bd66bb2
Get type of target enum outside the lookup loop
2015-12-17 16:18:55 -08:00
Nathan Shively-Sanders
d59831b4e8
Get rid of list and map abstractions to reduce GC pressure
2015-12-17 15:38:02 -08:00
Daniel Rosenwasser
66cf6be6d8
Removed unused declarations in 'emitter.ts'.
2015-12-17 14:55:08 -08:00
Daniel Rosenwasser
11acb7bf16
Removed unused declarations in 'sourcemap.ts'.
2015-12-17 14:54:19 -08:00
Daniel Rosenwasser
d7c5e18cb3
Removed unused declarations in 'parser.ts'.
2015-12-17 14:53:46 -08:00
Daniel Rosenwasser
b1ccf69d34
Removed unused declarations in 'checker.ts'.
2015-12-17 14:50:42 -08:00
Daniel Rosenwasser
80c7f3a529
Removed unused declarations from 'declarationEmitter.ts'.
2015-12-17 14:39:20 -08:00
Daniel Rosenwasser
0843c82543
Removed unused declarations from 'core.ts'.
2015-12-17 14:38:25 -08:00
Daniel Rosenwasser
0a470add81
Removed unused declarations from 'sys.ts'.
2015-12-17 14:38:17 -08:00
Tim Perry
411e90df44
Improve decorator on overload error message ( fixes #6064 )
2015-12-17 11:56:02 +01:00
Yui T
479f7af4df
Add debug fail when getting parameter-property declaration
2015-12-16 16:24:18 -08:00
Vladimir Matveev
db7f955a5f
Merge remote-tracking branch 'origin/master' into superInObjectLiterals
2015-12-16 13:20:06 -08:00
Vladimir Matveev
a3cce3868b
addressed PR feedback
2015-12-16 13:19:57 -08:00
Daniel Rosenwasser
731925bffe
Fix linter nits.
2015-12-15 20:55:54 -08:00
Daniel Rosenwasser
d8db60a9a2
Use a comparison function instead of creating a new type for each signature.
2015-12-15 17:52:26 -08:00
Anders Hejlsberg
c21193a0b8
Removing unused function
2015-12-15 17:33:51 -08:00
Anders Hejlsberg
fd52e9ae15
Simplify abstract constructor type assignability checking
2015-12-15 15:49:00 -08:00
Ryan Cavanaugh
a2b6e8c2c0
Use nicer flag collection method
2015-12-15 11:39:54 -08:00
Anders Hejlsberg
55d4f0f7e4
Merge pull request #6083 from Microsoft/simplifyDeferredChecking
...
Simplify deferred function, class, and accessor checking
2015-12-15 09:07:07 -08:00
Ryan Cavanaugh
023e375835
Properly handle multiply-declared optional properties in JSX attr. type
...
Fixes #6029
2015-12-14 16:44:26 -08:00