junichi11 opened a new pull request, #6825: URL: https://github.com/apache/netbeans/pull/6825
### Add the enum case icon #### CC Light Before:  After:  #### Navigator Light Before:  After:  #### CC Dark Before:  After:  #### Navigator Light After:  Before:  ### Improve the code completion documentation for enum cases - Add the `isBacked()` method to the `CaseElement` and the `EnumCaseElement` interfaces - Don't add values of non-backed enums to the code completion documentation - Index whether it is an enum case of a backed enum as a boolean value - Fix/Add unit tests - Increment spec version Before:  After:  ### Check an initializer of an enum case - Fix the `IncorrectEnumHintErorr` - Cases of non-backed enum must not have a value (e.g. the following is a fatal error: `enum NonBacked {case EXAMPLE = 1;}`) - Cases of backed enum must have a value (e.g. the following is a fatal error: `enum Backed: int {case EXAMPLE;}`) - Add/Fix unit tests Before:  After:  ### Improve the code completion for enum cases There is an error in the following example because `case B = self::` is not a complete statement. Thus, the result of parsing doesn't recognize the enum declaration. This means that some features don't work correctly. (e.g. The enum declaration doesn't exist in the navigator. The code completion doesn't work.) ```php enum Example: int { case A = 1; case B = self:: } ``` To improve this, add the `ASTErrorExpression` as a result of an enum case initializer part. - Fix the parser - Add unit tests Before:   After:   -- 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
