dillon1000/react
Commit
Browse files [DevTools] Unify by using ReactFunctionLocation type instead of Source (#33955)
In RSC and other stacks now we use a lot of `ReactFunctionLocation` type to represent the location of a function. I.e. the location of the beginning of the function (the enclosing line/col) that is represented by the "Source" of the function. This is also what the parent Component Stacks represents. As opposed to `ReactCallSite` which is what normal stack traces and owner stacks represent. I.e. the line/column number of the callsite into the next function. We can start sharing more code by using the `ReactFunctionLocation` type to represent the component source location and it also helps clarify which ones are function locations and which ones are callsites as we start adding more stack traces (e.g. for async debug info and owner stack traces).
Changed paths19 files
First-parent comparisonpackages/react-devtools-core/src/standalone.js ModifiedM packages/react-devtools-extensions/src/main/index.js ModifiedM packages/react-devtools-fusebox/src/frontend.d.ts ModifiedM packages/react-devtools-shared/src/__tests__/utils-test.js ModifiedM packages/react-devtools-shared/src/backend/fiber/renderer.js ModifiedM packages/react-devtools-shared/src/backend/types.js ModifiedM packages/react-devtools-shared/src/backend/utils/index.js ModifiedM packages/react-devtools-shared/src/backendAPI.js ModifiedM packages/react-devtools-shared/src/devtools/utils.js ModifiedM packages/react-devtools-shared/src/devtools/views/Components/InspectedElement.js ModifiedM packages/react-devtools-shared/src/devtools/views/Components/InspectedElementSourcePanel.js ModifiedM packages/react-devtools-shared/src/devtools/views/Components/InspectedElementView.js ModifiedM packages/react-devtools-shared/src/devtools/views/Components/InspectedElementViewSourceButton.js ModifiedM packages/react-devtools-shared/src/devtools/views/Components/OpenInEditorButton.js ModifiedM packages/react-devtools-shared/src/devtools/views/DevTools.js ModifiedM packages/react-devtools-shared/src/devtools/views/Profiler/SidebarEventInfo.js ModifiedM packages/react-devtools-shared/src/frontend/types.js ModifiedD packages/react-devtools-shared/src/shared/types.js DeletedM packages/react-devtools-shared/src/symbolicateSource.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…