@@ -1933,6 +1933,10 @@ var td;
1933
1933
name : "excludeExternals" ,
1934
1934
help : 'Prevent externally resolved TypeScript files from being documented.' ,
1935
1935
type : 2 /* Boolean */
1936
+ } , {
1937
+ name : "excludeNotExported" ,
1938
+ help : 'Prevent symbols that are not exported from being documented.' ,
1939
+ type : 2 /* Boolean */
1936
1940
} ] ) ;
1937
1941
} ;
1938
1942
/**
@@ -3206,6 +3210,11 @@ var td;
3206
3210
return null ;
3207
3211
name = node . symbol . name ;
3208
3212
}
3213
+ // Test whether the node is exported
3214
+ var isExported = container . flags . isExported || ! ! ( node . flags & 1 /* Export */ ) ;
3215
+ if ( ! isExported && context . getOptions ( ) . excludeNotExported ) {
3216
+ return null ;
3217
+ }
3209
3218
// Test whether the node is private, when inheriting ignore private members
3210
3219
var isPrivate = ! ! ( node . flags & 32 /* Private */ ) ;
3211
3220
if ( context . isInherit && isPrivate ) {
@@ -3238,6 +3247,7 @@ var td;
3238
3247
child . setFlag ( 8 /* Static */ , isStatic ) ;
3239
3248
child . setFlag ( 1 /* Private */ , isPrivate ) ;
3240
3249
child . setFlag ( 1024 /* ConstructorProperty */ , isConstructorProperty ) ;
3250
+ child . setFlag ( 16 /* Exported */ , isExported ) ;
3241
3251
child = setupDeclaration ( context , child , node ) ;
3242
3252
if ( child ) {
3243
3253
children . push ( child ) ;
@@ -3268,7 +3278,6 @@ var td;
3268
3278
reflection . setFlag ( 2 /* Protected */ , ! ! ( node . flags & 64 /* Protected */ ) ) ;
3269
3279
reflection . setFlag ( 4 /* Public */ , ! ! ( node . flags & 16 /* Public */ ) ) ;
3270
3280
reflection . setFlag ( 128 /* Optional */ , ! ! ( node [ 'questionToken' ] ) ) ;
3271
- reflection . setFlag ( 16 /* Exported */ , reflection . parent . flags . isExported || ! ! ( node . flags & 1 /* Export */ ) ) ;
3272
3281
if ( context . isInherit && ( node . parent == context . inheritParent || reflection . flags . isConstructorProperty ) ) {
3273
3282
if ( ! reflection . inheritedFrom ) {
3274
3283
reflection . inheritedFrom = createReferenceType ( context , node . symbol , true ) ;
0 commit comments