Skip to content

Commit

Permalink
Delete use of source in JSX runtime (#28433)
Browse files Browse the repository at this point in the history
Only remaining place it was being used was in a warning message.

DiffTrain build for commit 16d3f78.
  • Loading branch information
acdlite committed Feb 23, 2024
1 parent 355d677 commit 108ddbe
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25727,7 +25727,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "18.3.0-canary-d579e7748-20240223";
var ReactVersion = "18.3.0-canary-16d3f7833-20240223";

// Might add PROFILE later.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9171,7 +9171,7 @@ var devToolsConfig$jscomp$inline_1014 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-d579e7748-20240223",
version: "18.3.0-canary-16d3f7833-20240223",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1195 = {
Expand Down Expand Up @@ -9202,7 +9202,7 @@ var internals$jscomp$inline_1195 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-d579e7748-20240223"
reconcilerVersion: "18.3.0-canary-16d3f7833-20240223"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1196 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9599,7 +9599,7 @@ var devToolsConfig$jscomp$inline_1056 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-d579e7748-20240223",
version: "18.3.0-canary-16d3f7833-20240223",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1236 = {
Expand Down Expand Up @@ -9630,7 +9630,7 @@ var internals$jscomp$inline_1236 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-d579e7748-20240223"
reconcilerVersion: "18.3.0-canary-16d3f7833-20240223"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1237 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<952f9cf06e97636903903803eab63151>>
* @generated SignedSource<<5c2ba7284b4fa8017480bbd7751f531d>>
*/

"use strict";
Expand Down Expand Up @@ -1044,14 +1044,6 @@ if (__DEV__) {
"it's defined in, or you might have mixed up default and named imports.";
}

var sourceInfo = getSourceInfoErrorAddendum(source);

if (sourceInfo) {
info += sourceInfo;
} else {
info += getDeclarationErrorAddendum();
}

var typeString;

if (type === null) {
Expand Down Expand Up @@ -1241,18 +1233,6 @@ if (__DEV__) {
return "";
}
}

function getSourceInfoErrorAddendum(source) {
{
if (source !== undefined) {
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
var lineNumber = source.lineNumber;
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
}

return "";
}
}
/**
* Ensure that every element either is passed in a static location, in an
* array with an explicit keys property defined, or in an object literal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<ba0e5e05b08cb97ab2681f6664aea89d>>
* @generated SignedSource<<d28cb56e803fdd0613a38024515d9d50>>
*/

"use strict";
Expand Down Expand Up @@ -1080,14 +1080,6 @@ if (__DEV__) {
"it's defined in, or you might have mixed up default and named imports.";
}

var sourceInfo = getSourceInfoErrorAddendum(source);

if (sourceInfo) {
info += sourceInfo;
} else {
info += getDeclarationErrorAddendum();
}

var typeString;

if (type === null) {
Expand Down Expand Up @@ -1277,18 +1269,6 @@ if (__DEV__) {
return "";
}
}

function getSourceInfoErrorAddendum(source) {
{
if (source !== undefined) {
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
var lineNumber = source.lineNumber;
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
}

return "";
}
}
/**
* Ensure that every element either is passed in a static location, in an
* array with an explicit keys property defined, or in an object literal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<5829f9269f50c47e26af16e11355c71d>>
* @generated SignedSource<<44c5c601c5193aa81af150ccb4208604>>
*/

"use strict";
Expand All @@ -26,7 +26,7 @@ if (__DEV__) {
}
var dynamicFlags = require("ReactNativeInternalFeatureFlags");

var ReactVersion = "18.3.0-canary-d579e7748-20240223";
var ReactVersion = "18.3.0-canary-16d3f7833-20240223";

// ATTENTION
// When adding new symbols to this file,
Expand Down Expand Up @@ -1462,14 +1462,6 @@ if (__DEV__) {
"it's defined in, or you might have mixed up default and named imports.";
}

var sourceInfo = getSourceInfoErrorAddendum(source);

if (sourceInfo) {
info += sourceInfo;
} else {
info += getDeclarationErrorAddendum();
}

var typeString;

if (type === null) {
Expand Down Expand Up @@ -1670,14 +1662,6 @@ if (__DEV__) {
"it's defined in, or you might have mixed up default and named imports.";
}

var sourceInfo = getSourceInfoErrorAddendumForProps(config);

if (sourceInfo) {
info += sourceInfo;
} else {
info += getDeclarationErrorAddendum();
}

var typeString;

if (type === null) {
Expand Down Expand Up @@ -1995,26 +1979,6 @@ if (__DEV__) {
return "";
}
}

function getSourceInfoErrorAddendumForProps(elementProps) {
if (elementProps !== null && elementProps !== undefined) {
return getSourceInfoErrorAddendum(elementProps.__source);
}

return "";
}

function getSourceInfoErrorAddendum(source) {
{
if (source !== undefined) {
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
var lineNumber = source.lineNumber;
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
}

return "";
}
}
/**
* Ensure that every element either is passed in a static location, in an
* array with an explicit keys property defined, or in an object literal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -598,4 +598,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-d579e7748-20240223";
exports.version = "18.3.0-canary-16d3f7833-20240223";
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-d579e7748-20240223";
exports.version = "18.3.0-canary-16d3f7833-20240223";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d579e7748218920331252b0528850943d5e2dd31
16d3f7833d25b1ea026add83dd109601b60f138e

0 comments on commit 108ddbe

Please sign in to comment.