We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0dbb976 + adcb278 commit d3bcb82Copy full SHA for d3bcb82
src/services/outliningElementsCollector.ts
@@ -175,6 +175,7 @@ namespace ts.OutliningElementsCollector {
175
case SyntaxKind.ModuleBlock:
176
return spanForNode(n.parent);
177
case SyntaxKind.ClassDeclaration:
178
+ case SyntaxKind.ClassExpression:
179
case SyntaxKind.InterfaceDeclaration:
180
case SyntaxKind.EnumDeclaration:
181
case SyntaxKind.CaseBlock:
tests/cases/fourslash/getOutliningSpans.ts
@@ -25,6 +25,12 @@
25
////
26
//// }|]
27
////}|]
28
+////// class expressions
29
+//// (new class[| {
30
+//// bla()[| {
31
+////
32
+//// }|]
33
+//// }|])
34
////switch(1)[| {
35
//// case 1: break;
36
0 commit comments