File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -9684,7 +9684,7 @@ module ts {
96849684 }
96859685 }
96869686 }
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) ) {
96889688 return true;
96899689 }
96909690 }
Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ module ts {
501501 }
502502
503503 export interface FunctionDeclaration extends FunctionLikeDeclaration , Statement {
504- name : Identifier ;
504+ name ? : Identifier ;
505505 body ?: Block ;
506506 }
507507
@@ -825,7 +825,7 @@ module ts {
825825 }
826826
827827 export interface ClassDeclaration extends Declaration , ModuleElement {
828- name : Identifier ;
828+ name ? : Identifier ;
829829 typeParameters ?: NodeArray < TypeParameterDeclaration > ;
830830 heritageClauses ?: NodeArray < HeritageClause > ;
831831 members : NodeArray < ClassElement > ;
Original file line number Diff line number Diff line change @@ -415,6 +415,11 @@ module ts.NavigationBar {
415415 }
416416
417417 function createClassItem ( node : ClassDeclaration ) : ts . NavigationBarItem {
418+ if ( ! node . name ) {
419+ // An export default class may be nameless
420+ return undefined ;
421+ }
422+
418423 var childItems : NavigationBarItem [ ] ;
419424
420425 if ( node . members ) {
You can’t perform that action at this time.
0 commit comments