@@ -3177,6 +3177,14 @@ var td;
31773177( function ( td ) {
31783178 var converter ;
31793179 ( function ( converter ) {
3180+ /**
3181+ * List of reflection kinds that never should be static.
3182+ */
3183+ var nonStaticKinds = [
3184+ 128 /* Class */ ,
3185+ 256 /* Interface */ ,
3186+ 2 /* Module */
3187+ ] ;
31803188 /**
31813189 * Create a declaration reflection from the given TypeScript node.
31823190 *
@@ -3205,13 +3213,16 @@ var td;
32053213 }
32063214 // Test whether the node is static, when merging a module to a class make the node static
32073215 var isConstructorProperty = false ;
3208- var isStatic = ! ! ( node . flags & 128 /* Static */ ) ;
3209- if ( container . kind == 128 /* Class */ ) {
3210- if ( node . parent && node . parent . kind == 126 /* Constructor */ ) {
3211- isConstructorProperty = true ;
3212- }
3213- else if ( ! node . parent || node . parent . kind != 185 /* ClassDeclaration */ ) {
3214- isStatic = true ;
3216+ var isStatic = false ;
3217+ if ( nonStaticKinds . indexOf ( kind ) == - 1 ) {
3218+ isStatic = ! ! ( node . flags & 128 /* Static */ ) ;
3219+ if ( container . kind == 128 /* Class */ ) {
3220+ if ( node . parent && node . parent . kind == 126 /* Constructor */ ) {
3221+ isConstructorProperty = true ;
3222+ }
3223+ else if ( ! node . parent || node . parent . kind != 185 /* ClassDeclaration */ ) {
3224+ isStatic = true ;
3225+ }
32153226 }
32163227 }
32173228 // Check if we already have a child with the same name and static flag
@@ -8367,17 +8378,17 @@ var td;
83678378 */
83688379 DefaultTheme . MAPPINGS = [ {
83698380 kind : [ 128 /* Class */ ] ,
8370- isLeaf : true ,
8381+ isLeaf : false ,
83718382 directory : 'classes' ,
83728383 template : 'reflection.hbs'
83738384 } , {
83748385 kind : [ 256 /* Interface */ ] ,
8375- isLeaf : true ,
8386+ isLeaf : false ,
83768387 directory : 'interfaces' ,
83778388 template : 'reflection.hbs'
83788389 } , {
83798390 kind : [ 4 /* Enum */ ] ,
8380- isLeaf : true ,
8391+ isLeaf : false ,
83818392 directory : 'enums' ,
83828393 template : 'reflection.hbs'
83838394 } , {
0 commit comments