-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'topic/1050' into 'master'
Support key_expression in iterated association of container aggregates Closes #1050 and #1062 See merge request eng/libadalang/libadalang!1385
- Loading branch information
Showing
9 changed files
with
132 additions
and
38 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
for Key of Keys use Key => Integer'Image (Key) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
IteratedAssoc[1:1-1:47] | ||
|f_spec: | ||
| ForLoopSpec[1:5-1:16] | ||
| |f_var_decl: | ||
| | ForLoopVarDecl[1:5-1:8] | ||
| | |f_id: | ||
| | | DefiningName[1:5-1:8] | ||
| | | |f_name: | ||
| | | | Id[1:5-1:8]: Key | ||
| | |f_id_type: <null> | ||
| |f_loop_type: | ||
| | IterTypeOf[1:9-1:11] | ||
| |f_has_reverse: | ||
| | ReverseAbsent[1:11-1:11] | ||
| |f_iter_expr: | ||
| | Id[1:12-1:16]: Keys | ||
| |f_iter_filter: <null> | ||
|f_key_expr: | ||
| Id[1:21-1:24]: Key | ||
|f_r_expr: | ||
| CallExpr[1:28-1:47] | ||
| |f_name: | ||
| | AttributeRef[1:28-1:41] | ||
| | |f_prefix: | ||
| | | Id[1:28-1:35]: Integer | ||
| | |f_attribute: | ||
| | | Id[1:36-1:41]: Image | ||
| | |f_args: | ||
| | | AssocList[1:41-1:41]: <empty list> | ||
| |f_suffix: | ||
| | AssocList[1:43-1:46] | ||
| | | ParamAssoc[1:43-1:46] | ||
| | | |f_designator: <null> | ||
| | | |f_r_expr: | ||
| | | | Id[1:43-1:46]: Key |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
driver: parser | ||
rule: iterated_assoc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
type: new-feature | ||
short_title: Support key expression in aggregates | ||
title: Add support for key expression in container aggregates | ||
description: | | ||
Libadalang now handles key expression used in the iterated element association | ||
of container aggregates. This change adds both parser and name resolution | ||
support. Container aggregate is an Ada 2022 feature, see ARM 4.3.5. | ||
date: 2023-08-11 |