mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
Merge pull request #29215 from uniqueiniquity/classExpressionOutline
Outlining spans for class expressions
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -25,6 +25,12 @@
|
||||
////
|
||||
//// }|]
|
||||
////}|]
|
||||
////// class expressions
|
||||
//// (new class[| {
|
||||
//// bla()[| {
|
||||
////
|
||||
//// }|]
|
||||
//// }|])
|
||||
////switch(1)[| {
|
||||
//// case 1: break;
|
||||
////}|]
|
||||
|
||||
Reference in New Issue
Block a user