-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed ExpressionStatement AQL if and let serialization.
- Loading branch information
Showing
11 changed files
with
44 additions
and
1 deletion.
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
8 changes: 8 additions & 0 deletions
8
...sts/resources/language/expressionStatement/aqlConditional/aqlConditional-expected-ast.txt
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 @@ | ||
|
||
header position 0..59 | ||
module myModule | ||
metamodel http://www.eclipse.org/emf/2002/Ecore (18..56) | ||
|
||
public template myTemplate(myParam : EPackage (89..114)) | ||
[if (.equals(.aqlFeatureAccess(myParam, 'name'), '')) then 'No name' else .aqlFeatureAccess(myParam, 'name') endif (121..180)/] (newLineNeeded (119..183) (116..183) | ||
[/template] (61..194) (0..194) |
Empty file.
Empty file.
5 changes: 5 additions & 0 deletions
5
...cceleo.aql.tests/resources/language/expressionStatement/aqlConditional/aqlConditional.mtl
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,5 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[ if myParam.name = '' then 'No name' else myParam.name endif/] | ||
[/template] |
8 changes: 8 additions & 0 deletions
8
...e.acceleo.aql.tests/resources/language/expressionStatement/aqlLet/aqlLet-expected-ast.txt
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 @@ | ||
|
||
header position 0..59 | ||
module myModule | ||
metamodel http://www.eclipse.org/emf/2002/Ecore (18..56) | ||
|
||
public template myTemplate(myParam : EPackage (89..114)) | ||
[p = myParamnull, in .aqlFeatureAccess(p, 'name') (121..146)/] (newLineNeeded (119..149) (116..149) | ||
[/template] (61..160) (0..160) |
Empty file.
Empty file.
5 changes: 5 additions & 0 deletions
5
tests/org.eclipse.acceleo.aql.tests/resources/language/expressionStatement/aqlLet/aqlLet.mtl
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,5 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[ let p = myParam in p.name/] | ||
[/template] |
5 changes: 5 additions & 0 deletions
5
...serialization/language/expressionStatement/aqlConditional/aqlConditional.mtl-expected.txt
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,5 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[ if myParam.name = '' then 'No name' else myParam.name endif/] | ||
[/template] |
5 changes: 5 additions & 0 deletions
5
...tests/resources/serialization/language/expressionStatement/aqlLet/aqlLet.mtl-expected.txt
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,5 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[ let p = myParam in p.name/] | ||
[/template] |