-
Notifications
You must be signed in to change notification settings - Fork 874
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
Fix incorrect unused coloring #5551 #5670
Conversation
@tmysik Could you please have a look at this? If there is no problem, let's merge it. Thanks! |
php/php.editor/src/org/netbeans/modules/php/editor/csl/SemanticAnalysis.java
Outdated
Show resolved
Hide resolved
php/php.editor/src/org/netbeans/modules/php/editor/csl/SemanticAnalysis.java
Outdated
Show resolved
Hide resolved
@junichi11 Please, see my comment about the list implementation (I am OK with the current one), let me know. Then, I will merge it. Thanks! |
5d3d419
to
297f445
Compare
When there is an anonymous class in a method body, the anonymous class also removes method blocks of the enclosing class that need to be scanned. So, to prevent that, use `Map<TypeInfo, List<Block>>` instead of `List<Block>`
297f445
to
3cc64b4
Compare
CI: Some checks were not successful I canceled jobs once because the CI status was not shown. I re-ran all jobs again. |
@junichi11 looks good to me, PHP is green, everything else too. Only the cleanup job doesn't want to cleanup - all good. |
@mbien Thank you! |
@tmysik Thank you, Tomas!! |
@junichi11 You are welcome, of course! |
When there is an anonymous class in a method body, the anonymous class also removes method blocks of the enclosing class that need to be scanned. So, to prevent that, use
Map<TypeInfo, List<Block>>
instead ofList<Block>
Before:
After: