See #17798
}
    return {
      id,
      
      canEditHooks: false,
      
      canEditFunctionProps: true,
      
      canToggleSuspense: false,
      
      canViewSource: type === ElementTypeClass || type === ElementTypeFunction,
      
      hasLegacyContext: true,
      displayName: displayName,
      type: type,
      
      context,
      hooks: null,
      props,
      state,
      
      owners,
      
      source,
    };
  }
  function logElementToConsole(id: number): void {
    const result = inspectElementRaw(id);
    if (result === null) {
      console.warn(`Could not find element with id "${id}"`);