( ioInfo: ReactIOInfo, description: string, env: void | string, rootEnv: string, )
| 303 | } |
| 304 | |
| 305 | function getIOLongName( |
| 306 | ioInfo: ReactIOInfo, |
| 307 | description: string, |
| 308 | env: void | string, |
| 309 | rootEnv: string, |
| 310 | ): string { |
| 311 | const name = ioInfo.name; |
| 312 | const longName = description === '' ? name : name + ' (' + description + ')'; |
| 313 | const isPrimaryEnv = env === rootEnv; |
| 314 | return isPrimaryEnv || env === undefined |
| 315 | ? longName |
| 316 | : longName + ' [' + env + ']'; |
| 317 | } |
| 318 | |
| 319 | function getIOShortName( |
| 320 | ioInfo: ReactIOInfo, |
no outgoing calls
no test coverage detected