Skip to content

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented Sep 1, 2025

The React model contained an override of ClassDefinition.getInstanceMethod, which simply forwarded to the same predicate, but was needed at the time to avoid ambiguous inheritance.

This PR removes the problematic dependency, as it was blocking overlay locality.

@github-actions github-actions bot added the JS label Sep 1, 2025
@asgerf asgerf force-pushed the js/react-no-override branch from 2f4b18b to ed3283b Compare September 1, 2025 10:18
@asgerf asgerf force-pushed the js/react-no-override branch from ed3283b to ca393a9 Compare September 1, 2025 10:57
@asgerf asgerf added the no-change-note-required This PR does not need a change note label Sep 3, 2025
@asgerf
Copy link
Contributor Author

asgerf commented Sep 9, 2025

The three projects that are failing on DCA are due to a problem with SARIF exports that is not related to this PR

@asgerf asgerf marked this pull request as ready for review September 9, 2025 06:33
@asgerf asgerf requested a review from a team as a code owner September 9, 2025 06:33
@Copilot Copilot AI review requested due to automatic review settings September 9, 2025 06:33
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes problematic AST method overrides in the React model to fix overlay locality issues. The changes convert the SharedReactPreactClassComponent from multiple inheritance to using the instanceof pattern and add explicit delegation methods.

  • Replaces multiple inheritance with instanceof ClassDefinition pattern
  • Adds explicit delegation methods (getSuperClass, getConstructor) to the shared component class
  • Updates all method calls to use explicit delegation instead of inherited methods

@asgerf asgerf merged commit 09edc29 into github:main Sep 10, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JS no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants