()
| 103 | } |
| 104 | |
| 105 | function getCurrentDebugTask(): null | ConsoleTask { |
| 106 | // Get the debug task of the parent Server Component if there is one. |
| 107 | if (__DEV__) { |
| 108 | const debugInfo = currentDebugInfo; |
| 109 | if (debugInfo != null) { |
| 110 | for (let i = debugInfo.length - 1; i >= 0; i--) { |
| 111 | if (debugInfo[i].name != null) { |
| 112 | const componentInfo: ReactComponentInfo = debugInfo[i]; |
| 113 | const debugTask: ?ConsoleTask = componentInfo.debugTask; |
| 114 | if (debugTask != null) { |
| 115 | return debugTask; |
| 116 | } |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | } |
| 121 | return null; |
| 122 | } |
| 123 | |
| 124 | let didWarnAboutMaps; |
| 125 | let didWarnAboutGenerators; |
no outgoing calls
no test coverage detected