File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ const astUtil = require('./ast');
1313
1414/**
1515 * Components
16- * @class
1716 */
1817class Components {
1918 constructor ( ) {
@@ -99,6 +98,7 @@ class Components {
9998 list ( ) {
10099 const list = { } ;
101100 const usedPropTypes = { } ;
101+
102102 // Find props used in components for which we are not confident
103103 for ( const i in this . _list ) {
104104 if ( ! has ( this . _list , i ) || this . _list [ i ] . confidence >= 2 ) {
@@ -122,6 +122,7 @@ class Components {
122122 usedPropTypes [ componentId ] = ( usedPropTypes [ componentId ] || [ ] ) . concat ( newUsedProps ) ;
123123 }
124124 }
125+
125126 // Assign used props in not confident components to the parent component
126127 for ( const j in this . _list ) {
127128 if ( ! has ( this . _list , j ) || this . _list [ j ] . confidence < 2 ) {
You can’t perform that action at this time.
0 commit comments