Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Consider containingClass when matching psi methods and KFuncitons #1398#1502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@volivan239
Copy link
Collaborator

Description

To getExecutableIds of methods selected in plugin, we have to somehow match psi methods with reflections of the corresponding loaded methods. Previously we did matching bySignature, but it was not sufficient, e.g. abstract method and its implementation would have the sameSignature. This PR replacesSignature withMethodDescription which includes signature, but also hascontainingClass parameter.

Fixes#1398

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Manual Scenario

Tested on the example from#1398 -- now the tests class with tests is generated forPoint

Checklist (remove irrelevant options):

This is the author self-check list

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • The change contains enough commentaries, particularly in hard-to-understand areas
  • New documentation is provided or existed one is altered
  • No new warnings
  • New tests have been added
  • All tests pass locally with my changes

@volivan239volivan239 marked this pull request as ready for reviewDecember 9, 2022 11:53
Copy link
Collaborator

@DomonionDomonion left a comment

Choose a reason for hiding this comment

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

// Note that rules for obtaining signature here should correlate with PsiMethod.signature()

Hope it will be always correlated)

@volivan239volivan239 merged commit82c0351 intomainDec 16, 2022
@volivan239volivan239 deleted the volivan239/fix_no_methods_found_for_abstract_inheritor branchDecember 16, 2022 09:04
@alisevychalisevych added this to the2023.03 Release milestoneMar 21, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@DomonionDomonionDomonion approved these changes

@sergeypospelovsergeypospelovsergeypospelov approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

2023.3 Release

Development

Successfully merging this pull request may close these issues.

RdFault: No method source set for method - for an abstract class inheritor

5 participants

@volivan239@Domonion@sergeypospelov@alisevych

[8]ページ先頭

©2009-2025 Movatter.jp