Mohamed Hegazy
4e29b1883d
Merge pull request #15051 from Microsoft/at_types
...
Support @types module resolution from scoped packages
2017-04-17 10:08:15 -07:00
Nathan Shively-Sanders
e5416b5dcc
Merge pull request #15075 from Microsoft/fix-exponential-expanding-array-assignment
...
Evolving array element type ignores contextual type
2017-04-17 08:26:06 -07:00
Andy
af64ef8b67
Merge pull request #15141 from Microsoft/getOwnKeys
...
Remove unnecessary use of getOwnKeys
2017-04-14 11:47:54 -07:00
Mohamed Hegazy
8324244147
Merge pull request #14823 from Microsoft/fix14620
...
Fix #14620 : Lookup names in exports as well as locals when binding special properties
2017-04-14 10:46:22 -07:00
Mohamed Hegazy
76c547d736
Merge remote-tracking branch 'origin/master' into fix14620
2017-04-14 10:18:56 -07:00
Andy
72feaad893
Merge pull request #14001 from Microsoft/refactor_findallrefs
...
Refactor findAllReferences. Now supports renamed exports and imports.
2017-04-14 09:57:54 -07:00
Nathan Shively-Sanders
959187607d
serializeTypeNode handles object
...
This was just overlooked earlier.
2017-04-14 09:28:31 -07:00
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
Nathan Shively-Sanders
8a599f662f
Merge pull request #14090 from Microsoft/es5-emit-param-initialiser-before-object-rest
...
ES5:Emit parameter initialiser before object rest destructuring
2017-04-13 13:43:13 -07:00
Nathan Shively-Sanders
58a6c92c29
Rename addPrologueDirectives->addStandardPrologue
2017-04-13 13:21:56 -07:00
Nathan Shively-Sanders
5496096ee3
Split addPrologue into string + custom directives
...
The original function is now named addPrologue.
There are then three places than need to call the two split functions
separately.
2017-04-13 10:29:32 -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
Yui
ee52477798
Merge pull request #15037 from Microsoft/master-14401
...
[Master] Include dom into default library files
2017-04-12 13:42:40 -07:00
Nathan Shively-Sanders
24852b6be4
Merge branch 'master' into es5-emit-param-initialiser-before-object-rest
2017-04-12 12:59:10 -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
c7d51a3053
Merge branch 'master' into refactor_findallrefs
2017-04-12 11:27:58 -07:00
Ron Buckton
6c4a24eb11
Fix down-level emit for captured loop variable in async function
2017-04-11 17:30:53 -07:00
Andy Hanson
893e3242fb
Don't access sys.newLine inside unit tests
2017-04-11 14:24:32 -07:00
Andy Hanson
4ae8df635a
Remove unnecessary use of getOwnKeys
...
Also, fix a typo.
2017-04-11 14:19:11 -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
e9f95e2296
Only trace if traceEnabled
2017-04-10 09:06:26 -07:00
Andy Hanson
7320891933
boolean-trivia lint rule: Lint for null/undefined too
2017-04-07 13:13:39 -07:00
Nathan Shively-Sanders
5c2091ad33
Evolving array element ignores contextual type
...
Control flow analysis can easily hit circularities or exponential
behaviour when requesting the contextual type of an expression. When
adding an element type to an evolving array type, there is no point in
checking the contextual type of the new element type because it is
unknown -- it is exactly the type of the evolving array, which is
in the middle of being found.
Fixes #14628
This is code of the form:
```ts
let x = []
x[0] = { contextual: 'no' }
x[1] = { contextual: 'should not check' }
x[2] = { contextual: 'contextual type' }
// :
// :
```
2017-04-07 11:10:16 -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
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
Andy Hanson
8ec593aec2
Support @types module resolution from scoped packages
2017-04-06 08:05:30 -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
Kanchalai Tanglertsampan
04c71f0971
Include dom into default library files
2017-04-05 13:48:35 -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
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
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
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
Kanchalai Tanglertsampan
82f3775956
Address PR: move the adding paren into factory function
2017-04-05 10:13:10 -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