(hasContextAccess)
| 558 | ), getInitialState); |
| 559 | |
| 560 | const createConstructorArgs = (hasContextAccess) => { |
| 561 | if (hasContextAccess) { |
| 562 | return [j.identifier('props'), j.identifier('context')]; |
| 563 | } |
| 564 | |
| 565 | return [j.identifier('props')]; |
| 566 | }; |
| 567 | |
| 568 | const createConstructor = (getInitialState) => { |
| 569 | const initialStateAST = j(getInitialState); |