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

ALTAPPS-1346: Shared, iOS code blanks elif else statements #1176

Merged

Conversation

ivan-magda
Copy link
Member

YouTrack Issues:
#ALTAPPS-1346

Checklist

Before Code Review:

  • Fields "Assignees, Labels, Milestone" are filled in the pull request;
  • All checks have been passed;
  • Changes have been checked locally.

Description

  • Adds elif and else statements support

@ivan-magda ivan-magda self-assigned this Sep 6, 2024
@github-actions github-actions bot added shared Shared module task ios iOS module task labels Sep 6, 2024
@ivan-magda ivan-magda added this to the 1.71 milestone Sep 11, 2024
@ivan-magda ivan-magda marked this pull request as ready for review September 11, 2024 04:52
@ivan-magda ivan-magda added the awaiting review Pull Request is awaiting code reviews label Sep 11, 2024
@ivan-magda ivan-magda changed the title ALTAPPS-1346: Shared, iOS code blanks elif else blocks ALTAPPS-1346: Shared, iOS code blanks elif else statements Sep 11, 2024
Comment on lines +40 to +42
internal val codeBlanksVariablesAndStringsSuggestions: List<Suggestion.ConstantString> =
codeBlanksVariablesSuggestions + codeBlanksStringsSuggestions

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we extract all these fields into extensions?
It is a common practice in kotlin to not store logic in the data class.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An extension property cannot have stored properties. If we move this to an extension, it will be recomputed each time.

@XanderZhu XanderZhu added ready to pull Pull Request is ready to merge and removed awaiting review Pull Request is awaiting code reviews labels Sep 11, 2024
Base automatically changed from feature/ALTAPPS-1340/Shared-iOS-Code-blanks-conditions to develop September 12, 2024 06:31
@ivan-magda ivan-magda removed the ready to pull Pull Request is ready to merge label Sep 12, 2024
@ivan-magda ivan-magda merged commit 25f0ac1 into develop Sep 12, 2024
13 checks passed
@ivan-magda ivan-magda deleted the feature/ALTAPPS-1346/Shared-iOS-Code-blanks-elif-else-blocks branch September 12, 2024 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ios iOS module task shared Shared module task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants