File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -9684,7 +9684,7 @@ module ts {
9684
9684
}
9685
9685
}
9686
9686
}
9687
- else if (node.kind !== SyntaxKind.ExportAssignment && node.flags & NodeFlags.Export) {
9687
+ else if (node.kind !== SyntaxKind.ExportAssignment && node.flags & NodeFlags.Export && !(node.flags & NodeFlags.Default) ) {
9688
9688
return true;
9689
9689
}
9690
9690
}
Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ module ts {
501
501
}
502
502
503
503
export interface FunctionDeclaration extends FunctionLikeDeclaration , Statement {
504
- name : Identifier ;
504
+ name ? : Identifier ;
505
505
body ?: Block ;
506
506
}
507
507
@@ -825,7 +825,7 @@ module ts {
825
825
}
826
826
827
827
export interface ClassDeclaration extends Declaration , ModuleElement {
828
- name : Identifier ;
828
+ name ? : Identifier ;
829
829
typeParameters ?: NodeArray < TypeParameterDeclaration > ;
830
830
heritageClauses ?: NodeArray < HeritageClause > ;
831
831
members : NodeArray < ClassElement > ;
Original file line number Diff line number Diff line change @@ -415,6 +415,11 @@ module ts.NavigationBar {
415
415
}
416
416
417
417
function createClassItem ( node : ClassDeclaration ) : ts . NavigationBarItem {
418
+ if ( ! node . name ) {
419
+ // An export default class may be nameless
420
+ return undefined ;
421
+ }
422
+
418
423
var childItems : NavigationBarItem [ ] ;
419
424
420
425
if ( node . members ) {
You can’t perform that action at this time.
0 commit comments