17199 Commits

Author SHA1 Message Date
Kanchalai Tanglertsampan
d290cf7633 Update error message to use variable name for "children" 2017-04-17 13:11:16 -07:00
Kanchalai Tanglertsampan
7829cbae26 Fix linting error 2017-04-17 13:00:45 -07:00
Kanchalai Tanglertsampan
9a23b75f05 Update baselines and tests (2) 2017-04-17 13:00:38 -07:00
Kanchalai Tanglertsampan
dbf2a96a7e Update tests and baselines 2017-04-14 15:23:48 -07:00
Kanchalai Tanglertsampan
c778a48703 Read "children" property from react DTS file 2017-04-14 15:23:16 -07:00
Kanchalai Tanglertsampan
bb8bab3ae3 Remove a flag indicating the children is synthesized..We will give an error if you use children without specified such property 2017-04-14 15:21:49 -07:00
Kanchalai Tanglertsampan
58e2189f45 Add tests and update baselines 2017-04-12 13:38:11 -07:00
Kanchalai Tanglertsampan
012f459594 Fix linting error 2017-04-12 12:28:34 -07:00
Kanchalai Tanglertsampan
e5b95fcfbb Merge branch 'master-jsxChildren' of https://github.com/Microsoft/TypeScript into master-jsxChildren
# Conflicts:
#	src/compiler/scanner.ts
2017-04-12 12:18:18 -07:00
Kanchalai Tanglertsampan
eb0ad7f3f9 update baselines 2017-04-12 12:17:37 -07:00
Kanchalai Tanglertsampan
f0990460a6 Add tests 2017-04-12 12:17:27 -07:00
Kanchalai Tanglertsampan
4fa23127fc Fixing consuming whitespace in children 2017-04-12 12:08:12 -07:00
Kanchalai Tanglertsampan
c1ea3034d5 wip-fixing consuming whitespace in children 2017-04-11 15:35:06 -07:00
Kanchalai Tanglertsampan
4562fd089c Store scanning information whether JSXText is just an all whitespaces 2017-04-11 14:55:26 -07:00
Kanchalai Tanglertsampan
17417e9a88 Format checker 2017-04-11 10:53:14 -07:00
Kanchalai Tanglertsampan
8e2dd38267 Use JSX Attributes to contextually type children property 2017-04-11 10:52:50 -07:00
Kanchalai Tanglertsampan
f86a730371 Consider whitespace that won't be emitted to be different kind so that we won't include in typ-checking 2017-04-11 10:52:18 -07:00
Kanchalai Tanglertsampan
b3846bfe65 Wip - type checking JSX children 2017-04-07 16:41:29 -07:00
Nathan Shively-Sanders
3029b8fe38 Merge pull request #14935 from Microsoft/allow-extending-from-any
Allow extending from any
2017-04-06 09:18:01 -07:00
Nathan Shively-Sanders
f635042255 Improve test and comments
Test asserts that unused locals error works for untyped modules.
Comment no longer claims to check for untyped modules.
2017-04-06 09:02:18 -07:00
Nathan Shively-Sanders
90d5c299b0 Remove special symbol for untyped modules
Extending symbols from untyped modules is no longer an error, so #12532
didn't get us anything except slightly better quick info.
2017-04-05 16:01:04 -07:00
Nathan Shively-Sanders
441e54ce00 Update comment 2017-04-05 15:49:34 -07:00
Nathan Shively-Sanders
7e3c0337cf Unknown bases return baseConstructorType, not anyType
Returns several baselines to their original states.
2017-04-05 14:51:50 -07:00
Nathan Shively-Sanders
75f1774cb4 A few changes requested by review comments 2017-04-05 14:41:11 -07:00
Nathan Shively-Sanders
7f6c49e23b Check TypeFlags.Any instead of anyType&unknownType 2017-04-05 14:09:12 -07:00
Anders Hejlsberg
dce7fca83d Merge pull request #15033 from Microsoft/emptyObjectIntersection
Remove empty object types from intersection types
2017-04-05 14:04:16 -07:00
Andy
bb8862fd09 Merge pull request #14996 from Microsoft/args
Rename local variable `arguments` to `args`
2017-04-05 13:45:51 -07:00
Nathan Shively-Sanders
e09533d19d Update test comments to match property names 2017-04-05 13:08:21 -07:00
Yui
8941e5f7b0 Merge pull request #15006 from Microsoft/master-14895
[Master] Emit parenthesis around propert/element access expression of casted object literal expression
2017-04-05 13:03:24 -07:00
Ryan Cavanaugh
d8a24e3a5b Merge pull request #15021 from RyanCavanaugh/lintFixes
Update linting to avoid typechecking for booleanTriviaRule
2017-04-05 12:26:58 -07:00
Kanchalai Tanglertsampan
12549f69b0 Address PR 2017-04-05 12:14:46 -07:00
Ryan Cavanaugh
008cd89c0d Update booleanTriviaRule.ts 2017-04-05 11:29:47 -07:00
Anders Hejlsberg
0b5284d77e Add tests 2017-04-05 11:22:21 -07:00
Anders Hejlsberg
bea20a997b Accept new baselines 2017-04-05 11:07:49 -07:00
Anders Hejlsberg
ae386a9c32 Remove {} from intersection types that already contain object types 2017-04-05 11:07:23 -07:00
Kanchalai Tanglertsampan
33524bd18c Update test and baseline 2017-04-05 10:26:28 -07:00
Kanchalai Tanglertsampan
82f3775956 Address PR: move the adding paren into factory function 2017-04-05 10:13:10 -07:00
Ryan Cavanaugh
40393c59ea Update booleanTriviaRule.ts 2017-04-05 07:35:03 -07:00
Ryan Cavanaugh
a1be5a4d68 Update cachingInServerLSHost.ts 2017-04-05 07:34:12 -07:00
Andy
2b61d18996 Merge pull request #14985 from Microsoft/jsdoc-format
Enable jsdoc-format lint rule
2017-04-05 07:19:31 -07:00
Andy
56510f167d Merge pull request #15009 from Microsoft/parseTypeReference
Simplify parseTypeReference
2017-04-05 07:15:50 -07:00
Ryan Cavanaugh
e3bb5d3f28 Update linting to avoid typechecking for booleanTriviaRule 2017-04-04 22:34:51 -07:00
Ron Buckton
41fb0aaf6c Merge pull request #14995 from Microsoft/cleanupLiteralEmit
Clean up literal emit
2017-04-04 22:10:46 -07:00
Anders Hejlsberg
9d2b57ad9e Merge pull request #15011 from Microsoft/limitDeepInstantiations
Limit deep generic type instantiations
2017-04-04 20:28:33 -07:00
Anders Hejlsberg
90648fd9eb Merge pull request #14991 from Microsoft/fixTypeRelationStackOverflow
Fix type relation stack overflow
2017-04-04 20:28:16 -07:00
Ron Buckton
d32231ebe3 Set numericLiteralFlags in factory to align with parser 2017-04-04 16:49:03 -07:00
Nathan Shively-Sanders
c62cc3fea3 Merge pull request #15010 from Microsoft/static-initialisers-can-refer-to-later-static-methods
Static initializers may refer to later static methods
2017-04-04 15:30:17 -07:00
Anders Hejlsberg
6e58f619ae Merge branch 'master' into limitDeepInstantiations 2017-04-04 15:23:05 -07:00
Nathan Shively-Sanders
a5d320a83e Fix whitespace lint 2017-04-04 15:15:25 -07:00
Anders Hejlsberg
68ab129fac Add regression test 2017-04-04 14:53:48 -07:00