-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[INTERNAL] lib/processors/jsdoc: allow enum definitions using
const
The JSDoc toolkit classifies 'enum' not as a 'kind' of its own. Instead, symbols of a different kind (e.g. 'member' or 'constant') are additionally flagged with 'symbol.isEnum = true'. The UI5 plugin and template so far only expected symbols of kind 'member' to be flagged with 'isEnum'. With the support of ES6+ syntax, using a 'const' declaration also makes sense when defining enums. JSDoc creates a symbol of kind 'constant' in that case, which needs to be understood by the UI5 plugin and template. Cherry picked from SAP/openui5@0236e016a
- Loading branch information
1 parent
25b44a7
commit f956cde
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters