You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "junichi11 (via GitHub)" <gi...@apache.org> on 2023/03/25 23:25:26 UTC

[GitHub] [netbeans] junichi11 opened a new pull request, #5718: Fix find usage for Enums

junichi11 opened a new pull request, #5718:
URL: https://github.com/apache/netbeans/pull/5718

   - Handle `ENUM` and `ENUM_CASE`
   
   #### Example
   ```php
   <php
   namespace A;
   
   enum EnumA {
   
       public const CONSTANT_A = 1;
   
       case Case1;
       case Case2;
   
       public function test(): void {
           $this->publicMethod();
           self::publicStaticMethod();
           static::publicStaticMethod();
       }
   
       public function publicMethod(): void { // EnumA
       }
   
       public static function publicStaticMethod(): string { // EnumA
           return "publicStaticMethod()";
       }
   }
   
   namespace B;
   
   use A\EnumA;
   
   interface InterfaceB {
   }
   
   enum EnumB: string implements InterfaceB {
   
       public const CONSTANT_B = EnumA::CONSTANT_A;
   
       case A = 'A';
       case B = 'B';
       case C = EnumA::Case1;
   
       public function publicMethod(): void { // EnumB
       }
   
       public static function publicStaticMethod(): string { // EnumB
           return "publicStaticMethod()";
       }
   }
   
   EnumB::A->publicMethod();
   EnumB::A::publicStaticMethod();
   ````
   ![nb-php-find-usage-for-enums](https://user-images.githubusercontent.com/738383/227746733-33330ac5-1079-4a53-af30-42763233fbed.gif)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] tmysik merged pull request #5718: Fix find usages for Enums

Posted by "tmysik (via GitHub)" <gi...@apache.org>.
tmysik merged PR #5718:
URL: https://github.com/apache/netbeans/pull/5718


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] junichi11 commented on pull request #5718: Fix find usages for Enums

Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 commented on PR #5718:
URL: https://github.com/apache/netbeans/pull/5718#issuecomment-1483989916

   @tmysik Could you please have a look at this when you have time? If there is no problem, let's merge it. (Usually, we can merge PRs into the `master` branch. If we can't merge them, I'll leave a message about that or I'll change them to Draft PRs.) Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] tmysik commented on pull request #5718: Fix find usages for Enums

Posted by "tmysik (via GitHub)" <gi...@apache.org>.
tmysik commented on PR #5718:
URL: https://github.com/apache/netbeans/pull/5718#issuecomment-1483997443

   @junichi11 Thanks a lot for letting me know, I appreciate it ☺️
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists