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();
````

--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists