Skip to content
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

feat: add extraction of enums from markers #1

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

QuCMGisaia
Copy link
Collaborator

Allows for the marker extraction to also extract enum members to improve i18n files generation.

Removes the limitation that was in place on the query of CallExpression to allow PropertyAccessExpression. This allows to get markers with Enum. By testing the structure of the Expression, we gather the information relative to the enum member that we are looking for. By browsing the files that contain the enumeration (whether locally or in the imports of the file), we can find the value that the enum member was initialized to. If the value is of type string we keep it in the extracted list.

@QuCMGisaia QuCMGisaia merged commit 6a09b31 into master Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants