mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-12 04:17:34 -06:00
Fixing a few issues
This commit is contained in:
parent
f2be34a302
commit
61167b68ba
@ -9684,7 +9684,7 @@ module ts {
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (node.kind !== SyntaxKind.ExportAssignment && node.flags & NodeFlags.Export) {
|
||||
else if (node.kind !== SyntaxKind.ExportAssignment && node.flags & NodeFlags.Export && !(node.flags & NodeFlags.Default)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -501,7 +501,7 @@ module ts {
|
||||
}
|
||||
|
||||
export interface FunctionDeclaration extends FunctionLikeDeclaration, Statement {
|
||||
name: Identifier;
|
||||
name?: Identifier;
|
||||
body?: Block;
|
||||
}
|
||||
|
||||
@ -825,7 +825,7 @@ module ts {
|
||||
}
|
||||
|
||||
export interface ClassDeclaration extends Declaration, ModuleElement {
|
||||
name: Identifier;
|
||||
name?: Identifier;
|
||||
typeParameters?: NodeArray<TypeParameterDeclaration>;
|
||||
heritageClauses?: NodeArray<HeritageClause>;
|
||||
members: NodeArray<ClassElement>;
|
||||
|
||||
@ -415,6 +415,11 @@ module ts.NavigationBar {
|
||||
}
|
||||
|
||||
function createClassItem(node: ClassDeclaration): ts.NavigationBarItem {
|
||||
if (!node.name) {
|
||||
// An export default class may be nameless
|
||||
return undefined;
|
||||
}
|
||||
|
||||
var childItems: NavigationBarItem[];
|
||||
|
||||
if (node.members) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user