Commit graph

17364 commits

Author SHA1 Message Date
Kanchalai Tanglertsampan
0a194f91a0 Emit parenthesis around propert/element access expression of casted object literal expression 2017-04-04 11:15:03 -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
7de3539b49 Merge pull request #14997 from Microsoft/jsdoc
Only bind JSDoc typedefs in JavaScript files
2017-04-03 16:16:07 -07:00
Andy Hanson
24b09d8502 Only bind JSDoc typedefs in JavaScript files 2017-04-03 15:00:40 -07:00
Andy Hanson
fa70a182fe Rename local variable arguments to args 2017-04-03 14:42:00 -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
2f73e397f5 Accept new baselines 2017-04-03 12:46:58 -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
0f0a8a17dc Add regression tests 2017-04-03 12:32:54 -07:00
Anders Hejlsberg
2632ac280c Accept new baselines 2017-04-03 11:47:49 -07:00
Mine Starks
9c9b659f44 Merge pull request #14960 from minestarks/master
Expose JSDoc tags through the language service
2017-04-03 11:29:38 -07:00
Anders Hejlsberg
e416c7046e Property tracking of recursive non-object types in checkTypeRelatedTo 2017-04-03 10:56:35 -07:00
Andy
45e44cee06 Merge pull request #14984 from Microsoft/backtick
Support backticks in require calls
2017-04-03 10:39:25 -07:00
Ryan Cavanaugh
b81c18314d Update utilities.ts 2017-04-03 10:17:36 -07:00
Andy
4186bd5d77 Merge pull request #14986 from Microsoft/typedef-whitespace
Fix options for typedef-whitespace lint rule
2017-04-03 10:12:11 -07:00
Andy Hanson
130a24015a Fix options for typedef-whitespace lint rule 2017-04-03 09:38:37 -07:00
Andy Hanson
131555fdca Support backticks in require calls 2017-04-03 08:53:49 -07:00
Mine Starks
af0b2d9768 Merge pull request #12856 from minestarks/includejsdoctags
Expose JSDoc tags through the language service
2017-03-31 17:58:41 -07:00
Nathan Shively-Sanders
a62869c81e Merge pull request #14657 from erikmcc/master
Allow export default abstract class. Related to issue 3792.
2017-03-31 14:56:39 -07:00
Nathan Shively-Sanders
b28975dc03 Test that super is tracked in control flow 2017-03-31 14:18:42 -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
f65819a253 Test:props of class A are usable in prop initialisers of class B
Regardless of order of class A and class B
2017-03-31 12:05:12 -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
jramsay
2e313caa75 Merge pull request #14100 from Microsoft/BowerComponentsFix
Type acquisition support for bower_components directory
2017-03-30 16:38:57 -07:00
Arthur Ozga
7e2517975c Basic functionality
* pass context as argument in xToNode methods
* make sourcefile optional in printer
* start consolidating NodeBuilderFlags and TypeFormatFlags
2017-03-30 14:14:15 -07:00
rbuckton
e06b3ecbca Added additional test verification 2017-03-30 13:02:39 -07:00
rbuckton
3eb6270c9b Trim whitespace 2017-03-30 12:59:09 -07:00
Zhengbo Li
e298f759c3 Fix the name of protocol.ts in tsconfig.json (#14918) 2017-03-29 20:42:27 -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
3624417a32 Update baselines 2017-03-29 16:12:20 -07:00
Nathan Shively-Sanders
650cc29219 Test: extending from any 2017-03-29 16:10:27 -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
Yui
bc1bda542c Merge pull request #14915 from Microsoft/master-fix14870
[Master] exception when emitting with malformed namespace import
2017-03-29 14:37:19 -07:00
Kanchalai Tanglertsampan
7a66161790 Address code review of PR 14692 2017-03-29 13:57:51 -07:00
Kanchalai Tanglertsampan
3c469c51a1 Add tests 2017-03-29 13:08:21 -07:00
Kanchalai Tanglertsampan
728a92ec1a Handle when namespace improt is malform and external module is undefined 2017-03-29 13:08:13 -07:00
Mohamed Hegazy
e5a0f60d4c fix failing test 2017-03-29 11:54:46 -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
Mohamed Hegazy
75e8ba746e Merge pull request #14899 from KingHenne/fix/format-multi-line-object-destructuring
Fix formatting for multi-line object destructuring
2017-03-29 09:43:04 -07:00
Mohamed Hegazy
a8aa070fe6 Merge pull request #14900 from Microsoft/Fix14892
Fix #14892: Add undefined check before using the intializer of for-statment
2017-03-29 09:31:00 -07:00
Yui
294ac30dc9 Merge pull request #14274 from Microsoft/master-14217
[Master] Fix 14217 emit shebang at the top of output file
2017-03-29 09:08:17 -07:00
Kanchalai Tanglertsampan
af731e0700 Update baselines from merging with master 2017-03-29 08:52:00 -07:00