-
-
Notifications
You must be signed in to change notification settings - Fork 103
sorting method calls #1435
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
sorting method calls #1435
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #1435 +/- ##
=============================================
+ Coverage 71.57% 71.59% +0.01%
Complexity 32 32
=============================================
Files 446 447 +1
Lines 18514 18534 +20
Branches 2964 2970 +6
=============================================
+ Hits 13251 13269 +18
+ Misses 4150 4148 -2
- Partials 1113 1117 +4
🚀 New features to boost your workflow:
|
swissiety
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be great if we can make the sorting optional / another method / ...
| return pos instanceof LinePosition lp ? lp.getLastCol() : Integer.MAX_VALUE; | ||
| } | ||
|
|
||
| private static Object stmtPositionOf(Call c) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more precise return type. please move logic into a custom Comparator class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a new method to sort the calls and also had to implement it in OnFlyCallGraph. Some existing methods in OnFlyCallGraph throw UnsupportedOperationException, so I wasn’t sure if sorting is needed, let me know if it should be removed.
Closes #1086