mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 15:45:27 -05:00
fix(38785): include in NavigationBar child items from default exported functions (#38915)
This commit is contained in:
@@ -310,9 +310,11 @@ namespace ts.NavigationBar {
|
||||
|
||||
case SyntaxKind.ExportAssignment: {
|
||||
const expression = (<ExportAssignment>node).expression;
|
||||
if (isObjectLiteralExpression(expression)) {
|
||||
const child = isObjectLiteralExpression(expression) ? expression :
|
||||
isArrowFunction(expression) || isFunctionExpression(expression) ? expression.body : undefined;
|
||||
if (child) {
|
||||
startNode(node);
|
||||
addChildrenRecursively(expression);
|
||||
addChildrenRecursively(child);
|
||||
endNode();
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user