Commit Graph

4158 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
7d1966bdb2 Merge pull request #15176 from HerringtonDarkholme/namespace-error
fix #15155: improve namespace module error message
2017-04-14 08:23:59 -07:00
Herrington Darkholme
e9fd2bcf0f address code review feedback 2017-04-14 10:36:49 +08:00
Nathan Shively-Sanders
d53b3ac43c Merge pull request #15032 from Microsoft/fix-anon-class-this-reference-caching
Do not walk up control flow containers for `this`
2017-04-13 15:10:01 -07:00
Herrington Darkholme
7b1cbf0994 fix #15155: improve namespaceModule error message 2017-04-13 21:30:17 +08:00
Anders Hejlsberg
014845a637 Merge pull request #15057 from Microsoft/fixExcessPropertyCheck
Fix excess property check
2017-04-12 15:54:32 -10:00
Nathan Shively-Sanders
11f715c724 Merge pull request #15036 from Microsoft/remove-readonly-from-spread-properties
Remove readonly from spread properties
2017-04-12 16:32:16 -07:00
Nathan Shively-Sanders
28cdaf24e9 Address PR:fix find-all-refs and slim down code
Also add readonly to find-all-ref test
2017-04-12 11:31:52 -07:00
Andy Hanson
ed5eca2b7b boolean-trivia lint rule: Enforce space between comment and argument 2017-04-11 09:44:58 -07:00
Andy Hanson
7320891933 boolean-trivia lint rule: Lint for null/undefined too 2017-04-07 13:13:39 -07:00
Anders Hejlsberg
ffab267389 Fix excess property check with empty target object type 2017-04-06 12:46:59 -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
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
Nathan Shively-Sanders
1fc45d3d8b Remove readonly from spread properties
Spreading an object now removes `readonly` from properties in the
resulting object.
2017-04-05 13:43:47 -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
Anders Hejlsberg
ae386a9c32 Remove {} from intersection types that already contain object types 2017-04-05 11:07:23 -07:00
Nathan Shively-Sanders
924f536ba6 Stop looking at control flow containers for this
References to `this` should not continue looking outside their immediate
container to narrow. Introduced by #11458, which allows narrowing of
captured variables inside methods of class expressions.
2017-04-05 11:02:42 -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
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
Nathan Shively-Sanders
a5d320a83e Fix whitespace lint 2017-04-04 15:15:25 -07:00
Nathan Shively-Sanders
833fd010d7 Static prop. inits can refer to later static methods
Static methods are created before static property initializers run, so
static property initializers may refer to static methods. This was not
allowed previously.
2017-04-04 14:49:06 -07:00
Anders Hejlsberg
6909574973 Limit symbol instantiations to a maximum depth of 100 2017-04-04 14:48:57 -07:00
Nathan Shively-Sanders
1c649433bd Merge pull request #14956 from Microsoft/add-super-to-control-flow
Add super to control flow
2017-04-04 09:22:03 -07:00
Nathan Shively-Sanders
013d52a44d Merge pull request #14952 from Microsoft/fix-scope-checks-of-class-properties
Fix scope checks of class properties
2017-04-04 08:45:31 -07:00
Yui
dd48dd1b66 Merge pull request #14916 from Microsoft/master-addressPR14692
[Master] Address code review of PR 14692
2017-04-04 08:28:33 -07:00
Andy Hanson
73cab09608 Enable jsdoc-format lint rule 2017-04-03 14:39:19 -07:00
Ron Buckton
fd081f40a8 Clean up literal emit 2017-04-03 14:17:03 -07:00
Anders Hejlsberg
854731ad9b Fix linting error 2017-04-03 13:51:13 -07:00
Anders Hejlsberg
545a7f2987 Merge branch 'master' into fixTypeRelationStackOverflow
# Conflicts:
#	tests/baselines/reference/mappedTypeRelationships.errors.txt
2017-04-03 12:46:04 -07:00
Anders Hejlsberg
e416c7046e Property tracking of recursive non-object types in checkTypeRelatedTo 2017-04-03 10:56:35 -07:00
Andy Hanson
131555fdca Support backticks in require calls 2017-04-03 08:53:49 -07:00
Nathan Shively-Sanders
a4a7669a4b Add super to control flow.
It is handled the same way as 'this'
2017-03-31 14:17:37 -07:00
Ron Buckton
22b4e4d65d Merge pull request #14920 from Microsoft/jsInferRestArgs
Infer a rest parameter for javascript function that uses 'arguments'
2017-03-31 12:52:11 -07:00
Nathan Shively-Sanders
87565daf4d Props of class A usable in prop initializer of class B
Regardless of the order of declaration of class A and class B.
2017-03-31 12:03:18 -07:00
Daniel Rosenwasser
0459987673 Merge pull request #14467 from kpreisser/fix14269
Allow the right-hand side of an 'in' expression to be of non-primitive object type
2017-03-30 22:51:45 -07:00
rbuckton
ea2aa0c079 Infer a rest parameter for javascript function that uses 'arguments' 2017-03-29 18:13:19 -07:00
Nathan Shively-Sanders
41eabbc3d9 Re-swap mistakenly swapped lines of code 2017-03-29 16:14:15 -07:00
Nathan Shively-Sanders
765ac7ccd1 Improve handling of any as a base type
Also improve how the string indexer for any-inheriting types is added.
2017-03-29 16:09:33 -07:00
Nathan Shively-Sanders
f1c1969907 Allow extending from any
Extending from any adds an index signature: [s: string]: any to both the
instance and static sides of the class.
2017-03-29 15:29:18 -07:00
Kanchalai Tanglertsampan
7a66161790 Address code review of PR 14692 2017-03-29 13:57:51 -07:00
Yui
0cb490e2c2 Merge pull request #14692 from Microsoft/master-fixResolveEntityName
[Master] Fix resolve entity name to not dive inside property access expression when the expression is not entity name
2017-03-29 09:55:36 -07:00
Ron Buckton
62e8881f9b Merge pull request #14907 from Microsoft/jsGenericDefaultsAny
Default to 'any' for unsupplied generics in JavaScript
2017-03-28 16:34:57 -07:00
Anders Hejlsberg
1ae5bef80d Merge pull request #14874 from Microsoft/fixIndexedAccessRelation
Fix stack overflow in indexed access relation
2017-03-28 06:19:59 +02:00