Merge pull request #5009 from RyanCavanaugh/fix4832

Correctly emit 'as' operator left operand as expression
This commit is contained in:
Ryan Cavanaugh
2015-09-29 11:14:52 -07:00
5 changed files with 69 additions and 0 deletions

View File

@@ -1434,6 +1434,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
let parent = node.parent;
switch (parent.kind) {
case SyntaxKind.ArrayLiteralExpression:
case SyntaxKind.AsExpression:
case SyntaxKind.BinaryExpression:
case SyntaxKind.CallExpression:
case SyntaxKind.CaseClause: