( hook: DevToolsHook, rendererID: number, renderer: ReactRenderer, global: Object, shouldStartProfilingNow: boolean, profilingSettings: ProfilingSettings, )
| 995 | } |
| 996 | |
| 997 | export function attach( |
| 998 | hook: DevToolsHook, |
| 999 | rendererID: number, |
| 1000 | renderer: ReactRenderer, |
| 1001 | global: Object, |
| 1002 | shouldStartProfilingNow: boolean, |
| 1003 | profilingSettings: ProfilingSettings, |
| 1004 | ): RendererInterface { |
| 1005 | // Newer versions of the reconciler package also specific reconciler version. |
| 1006 | // If that version number is present, use it. |
| 1007 | // Third party renderer versions may not match the reconciler version, |
| 1008 | // and the latter is what's important in terms of tags and symbols. |
| 1009 | const version = renderer.reconcilerVersion || renderer.version; |
| 1010 | |
| 1011 | const { |
| 1012 | getDisplayNameForFiber, |
| 1013 | getTypeSymbol, |
| 1014 | ReactPriorityLevels, |
| 1015 | ReactTypeOfWork, |
| 1016 | StrictModeBits, |
| 1017 | SuspenseyImagesMode, |
| 1018 | } = getInternalReactConstants(version); |
| 1019 | const { |
| 1020 | ActivityComponent, |
| 1021 | ClassComponent, |
| 1022 | ContextConsumer, |
| 1023 | DehydratedSuspenseComponent, |
| 1024 | ForwardRef, |
| 1025 | Fragment, |
| 1026 | FunctionComponent, |
| 1027 | HostRoot, |
| 1028 | HostHoistable, |
| 1029 | HostSingleton, |
| 1030 | HostPortal, |
| 1031 | HostComponent, |
| 1032 | HostText, |
| 1033 | IncompleteClassComponent, |
| 1034 | IncompleteFunctionComponent, |
| 1035 | IndeterminateComponent, |
| 1036 | LegacyHiddenComponent, |
| 1037 | MemoComponent, |
| 1038 | OffscreenComponent, |
| 1039 | SimpleMemoComponent, |
| 1040 | SuspenseComponent, |
| 1041 | SuspenseListComponent, |
| 1042 | TracingMarkerComponent, |
| 1043 | Throw, |
| 1044 | ViewTransitionComponent, |
| 1045 | } = ReactTypeOfWork; |
| 1046 | const { |
| 1047 | ImmediatePriority, |
| 1048 | UserBlockingPriority, |
| 1049 | NormalPriority, |
| 1050 | LowPriority, |
| 1051 | IdlePriority, |
| 1052 | NoPriority, |
| 1053 | } = ReactPriorityLevels; |
| 1054 |
nothing calls this directly
no test coverage detected