Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master' into 102-path
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Mar 10, 2022
2 parents b376291 + 62b2eb2 commit c479c26
Show file tree
Hide file tree
Showing 275 changed files with 1,591 additions and 87 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ subprojects {
'mockito': '2.27.0',
'requirejs': '2.3.6',
'slf4j': '1.7.21',
'xtext': '2.26.0.M2',
'xtext': '2.26.0',
'guava': '29.0-jre'
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"author" : [ {
"name" : "RUVIVAL Team",
"type" : "Person"
}, {
"name" : "Samuel Duval",
"type" : "Person"
}, {
"name" : "Berenice Lopez Mendez",
"type" : "Person"
}, {
"name" : "Lukas Schreiner",
"type" : "Person"
}, {
"name" : "Isidora Vrbavac",
"type" : "Person"
} ]
}
{
"author" : [ {
"name" : "Jürgen Böhner",
"type" : "Person"
} ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"author": [
{
"name": "RUVIVAL Team",
"@type": "Person"
},
{
"name": "Samuel Duval",
"@type": "Person"
},
{
"name": "Berenice Lopez Mendez",
"@type": "Person"
},
{
"name": "Lukas Schreiner",
"@type": "Person"
},
{
"name": "Isidora Vrbavac",
"@type": "Person"
}
]
}
{
"author": [
{
"@type": "Person",
"name": "Jürgen Böhner"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
do list(path:"author[]")
move_field("@type","type")
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"arrayOfObjects_1" : [ {
"name" : "red",
"type" : "color"
}, {
"name" : "green",
"type" : "color"
}, {
"name" : "blue",
"type" : "color"
} ],
"arrayOfObjects_2" : [ {
"name" : "purple",
"type" : "color"
}, {
"name" : "orange",
"type" : "color"
}, {
"name" : "yellow",
"type" : "color"
} ],
"test" : [ "red", "green", "blue", "purple", "orange", "yellow" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"arrayOfObjects_1" : [ {
"name": "red",
"type" : "color"
}, {
"name":"green",
"type" : "color"
}, {
"name":"blue",
"type" : "color"
} ],
"arrayOfObjects_2" : [ {
"name": "purple",
"type" : "color"
}, {
"name":"orange",
"type" : "color"
}, {
"name":"yellow",
"type" : "color"
} ],
"test" : [ ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
do list(path: "arrayOfObjects??[]", "var": "$i")
copy_field("$i.name", "test[].$append")
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"arrayOfObjects" : [ {
"name" : "red",
"type" : "color"
}, {
"name" : "green",
"type" : "color"
}, {
"name" : "blue",
"type" : "color"
} ],
"test" : {
"key" : "red"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"arrayOfObjects" : [ {
"name": "red",
"type" : "color"
}, {
"name":"green",
"type" : "color"
}, {
"name":"blue",
"type" : "color"
} ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
do list(path: "arrayOfObjects[]", "var": "$i")
unless exists("test.key")
copy_field("$i.name", "test.key")
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"arrayOfObjects" : [ {
"name" : "red",
"type" : "color"
}, {
"name" : "green",
"type" : "color"
}, {
"name" : "blue",
"type" : "color"
} ],
"array" : [ "red", "green", "blue" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"arrayOfObjects" : [ {
"name": "red",
"type" : "color"
}, {
"name":"green",
"type" : "color"
}, {
"name":"blue",
"type" : "color"
} ],
"array" : [ ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
do list(path: "arrayOfObjects[]", "var": "$i")
copy_field("$i.name", "array[].$append")
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"arrayOfObjects" : [ {
"name" : "red",
"type" : "color"
}, {
"name" : "green",
"type" : "color"
}, {
"name" : "blue",
"type" : "color"
} ],
"test" : {
"array" : [ "red", "green", "blue" ]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"arrayOfObjects" : [ {
"name": "red",
"type" : "color"
}, {
"name":"green",
"type" : "color"
}, {
"name":"blue",
"type" : "color"
} ],
"test" : { "array" : [ ] }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
do list(path: "arrayOfObjects[]", "var": "$i")
copy_field("$i.name", "test.array[].$append")
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"colors" : [ "Red is a nice color", "Green is a nice color", "Blue is a nice color" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"colors" : [ "red", "green", "blue" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
do list(path:"colors[]")
upcase(".")
append(".", " is a nice color")
end
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See issue #191
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name" : "red",
"type" : "color",
"test" : "false"
}
{
"name" : "green",
"type" : "color",
"test" : "false"
}
{
"name" : "blue",
"type" : "color",
"test" : "true"
}
{
"name" : "purple",
"type" : "color",
"test" : "false"
}
{
"name" : "orange",
"type" : "color",
"test" : "false"
}
{
"name" : "yellow",
"type" : "color",
"test" : "false"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "red",
"type": "color"
}
{
"name": "green",
"type": "color"
}
{
"name": "blue",
"type": "color"
}
{
"name": "purple",
"type": "color"
}
{
"name": "orange",
"type": "color"
}
{
"name": "yellow",
"type": "color"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if all_equal("name", "blue")
add_field("test", "true")
else
add_field("test", "false")
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name" : "red",
"type" : "color",
"test_2" : "true"
}
{
"name" : "green",
"type" : "color",
"test" : "false"
}
{
"name" : "blue",
"type" : "color",
"test" : "true"
}
{
"name" : "purple",
"type" : "color",
"test" : "false"
}
{
"name" : "orange",
"type" : "color",
"test" : "false"
}
{
"name" : "yellow",
"type" : "color",
"test" : "false"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "red",
"type": "color"
}
{
"name": "green",
"type": "color"
}
{
"name": "blue",
"type": "color"
}
{
"name": "purple",
"type": "color"
}
{
"name": "orange",
"type": "color"
}
{
"name": "yellow",
"type": "color"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if all_equal("name", "blue")
add_field("test", "true")
elsif all_equal("name", "red")
add_field("test_2", "true")
else
add_field("test", "false")
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name" : "red",
"type" : "color",
"test_2" : "true"
}
{
"name" : "green",
"type" : "color",
"test_4" : "true"
}
{
"name" : "blue",
"type" : "color",
"test" : "true"
}
{
"name" : "purple",
"type" : "color",
"test" : "false"
}
{
"name" : "orange",
"type" : "color",
"test" : "false"
}
{
"name" : "yellow",
"type" : "color",
"test_3" : "true"
}
Loading

0 comments on commit c479c26

Please sign in to comment.