File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Object {
17
17
" docblock" : null ,
18
18
" modifiers" : Array [
19
19
" static" ,
20
+ " get" ,
20
21
],
21
22
" name" : " displayName" ,
22
23
" params" : Array [],
@@ -26,6 +27,7 @@ Object {
26
27
" docblock" : null ,
27
28
" modifiers" : Array [
28
29
" static" ,
30
+ " get" ,
29
31
],
30
32
" name" : " defaultProps" ,
31
33
" params" : Array [],
Original file line number Diff line number Diff line change @@ -87,6 +87,10 @@ function getMethodModifiers(methodPath) {
87
87
modifiers . push ( 'static' ) ;
88
88
}
89
89
90
+ if ( methodPath . node . kind === 'get' || methodPath . node . kind === 'set' ) {
91
+ modifiers . push ( methodPath . node . kind ) ;
92
+ }
93
+
90
94
const functionExpression = methodPath . get ( 'value' ) . node ;
91
95
if ( functionExpression . generator ) {
92
96
modifiers . push ( 'generator' ) ;
You can’t perform that action at this time.
0 commit comments