-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chained dot value issue in functions (for record/list parameter types) (
#1428) * fixed chained dot value referencing issue inside functions for list/record parameter types * fmt + clippy fixes * tests fixed
- Loading branch information
Showing
3 changed files
with
242 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
-- record Person: | ||
caption name: | ||
integer age: | ||
Metadata meta: | ||
|
||
-- record Metadata: | ||
string address: | ||
string phone-number: | ||
|
||
-- string list places: Bangalore, Mumbai, Chennai, Kolkata | ||
|
||
-- Person list people: | ||
|
||
-- Person: Sam Ather | ||
age: 30 | ||
|
||
-- Person.meta: | ||
address: Sam Ather City at Some Other House | ||
phone-number: +987-654321 | ||
|
||
-- Person: $r | ||
|
||
-- end: people | ||
|
||
-- Metadata meta: | ||
address: Sam City in Some House | ||
phone-number: +1234-56789 | ||
|
||
-- Person r: Sam Wan | ||
age: 23 | ||
meta: $meta | ||
|
||
-- ftd.text: $some-details(person = $r, places = $places, date = 27th October) | ||
|
||
-- ftd.text: $more-details(p = $r) | ||
|
||
-- ftd.text: $first-person-details(people = $people) | ||
|
||
-- string more-details(p): | ||
Person p: | ||
|
||
"Person " + p.name + " lives at " + p.meta.address + ". His contact number is " + p.meta.phone-number | ||
|
||
-- string some-details(person, places): | ||
Person person: | ||
string list places: | ||
string date: | ||
|
||
"This person named " + person.name + " has first visited " + places.0 + " on " + date | ||
|
||
-- string first-person-details(people): | ||
Person list people: | ||
|
||
"First Person is " + people.0.name + " lives at " + people.0.meta.address + ". His contact number is " + people.0.meta.phone-number | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.