Merge pull request #29215 from uniqueiniquity/classExpressionOutline

Outlining spans for class expressions
This commit is contained in:
Benjamin Lichtman
2018-12-31 15:03:09 -08:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@@ -175,6 +175,7 @@ namespace ts.OutliningElementsCollector {
case SyntaxKind.ModuleBlock:
return spanForNode(n.parent);
case SyntaxKind.ClassDeclaration:
case SyntaxKind.ClassExpression:
case SyntaxKind.InterfaceDeclaration:
case SyntaxKind.EnumDeclaration:
case SyntaxKind.CaseBlock:

View File

@@ -25,6 +25,12 @@
////
//// }|]
////}|]
////// class expressions
//// (new class[| {
//// bla()[| {
////
//// }|]
//// }|])
////switch(1)[| {
//// case 1: break;
////}|]