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

Added TupleDeclaration #1285

Merged
merged 10 commits into from
Aug 25, 2023
Merged

Added TupleDeclaration #1285

merged 10 commits into from
Aug 25, 2023

Conversation

oxisto
Copy link
Member

@oxisto oxisto commented Aug 22, 2023

This PR adds a new type of Declaration, which represenst a tuple of variable declarations. This is primarily needed for languages, such as Go, which support the assignment of multiple values in an initializer. In this case we cannot assign the initializer of the individual variables, but assigned it to the TupleDeclaration instead.

Currently, the type of the TupleDeclaration and its elements MUST be set to the AutoType.

@oxisto oxisto requested a review from konradweiss as a code owner August 22, 2023 08:31
@oxisto oxisto force-pushed the tuple-declaration branch from bed29ea to 9bc935d Compare August 22, 2023 08:32
@oxisto oxisto requested a review from KuechA August 22, 2023 08:32
@oxisto oxisto force-pushed the tuple-declaration branch from 9bc935d to 6e15102 Compare August 22, 2023 09:14
@oxisto oxisto force-pushed the tuple-declaration branch from ccb59cf to 677682f Compare August 23, 2023 17:05
oxisto and others added 10 commits August 25, 2023 09:37
This PR adds a new type of `Declaration`, which represenst a tuple of variable declarations. This is primarily needed for languages, such as Go, which support the assignment of multiple values in an initializer. In this case we cannot assign the initializer of the individual variables, but assigned it to the `TupleDeclaration` instead.

Currently, the type of the `TupleDeclaration` and its elements MUST be set to the `AutoType`.
@oxisto oxisto force-pushed the tuple-declaration branch from 677682f to f77e9ae Compare August 25, 2023 07:37
@oxisto oxisto enabled auto-merge (squash) August 25, 2023 07:37
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

81.3% 81.3% Coverage
0.0% 0.0% Duplication

@oxisto oxisto merged commit 87ad51e into main Aug 25, 2023
@oxisto oxisto deleted the tuple-declaration branch August 25, 2023 07:42
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.

None yet

2 participants