-
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.
Added support for many main template to AcceleoUtil.
- Loading branch information
Showing
16 changed files
with
306 additions
and
57 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
1 change: 1 addition & 0 deletions
1
...ts/resources/evaluation/textStatement/manyMainTemplates/generated/anydsl.txt-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 @@ | ||
some static text. |
1 change: 1 addition & 0 deletions
1
...s/resources/evaluation/textStatement/manyMainTemplates/generated/anydsl2.txt-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 @@ | ||
some static text. |
22 changes: 22 additions & 0 deletions
22
...luation/textStatement/manyMainTemplates/manyMainTemplates-WindowsEndLine-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,22 @@ | ||
|
||
header position 0..59 | ||
module myModule | ||
metamodel http://www.eclipse.org/emf/2002/Ecore (18..56) | ||
[comment @main (72..78) /] (63..80) | ||
|
||
public template myTemplate(myParam : EPackage (110..135)) | ||
@main | ||
[file url .add(.aqlFeatureAccess(myParam, 'name'), '.txt') (148..169) mode overwrite | ||
some static text. (newLineNeeded) (188..207) (182..209) | ||
[/file] (141..216) | ||
(newLineNeeded) (216..218) (137..218) | ||
[/template] (82..229) | ||
[comment @main (242..248) /] (233..250) | ||
|
||
public template myTemplate2(myParam : EPackage (281..306)) | ||
@main | ||
[file url .add(.aqlFeatureAccess(myParam, 'name'), '2.txt') (319..341) mode overwrite | ||
some static text. (newLineNeeded) (360..379) (354..381) | ||
[/file] (312..388) | ||
(newLineNeeded) (388..390) (308..390) | ||
[/template] (252..401) (0..401) |
Empty file.
1 change: 1 addition & 0 deletions
1
...Statement/manyMainTemplates/manyMainTemplates-WindowsEndLine-expected-runtimeMessages.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 @@ | ||
(null 0 0) null[] |
Empty file.
22 changes: 22 additions & 0 deletions
22
...s/resources/evaluation/textStatement/manyMainTemplates/manyMainTemplates-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,22 @@ | ||
|
||
header position 0..59 | ||
module myModule | ||
metamodel http://www.eclipse.org/emf/2002/Ecore (18..56) | ||
[comment @main (70..76) /] (61..78) | ||
|
||
public template myTemplate(myParam : EPackage (107..132)) | ||
@main | ||
[file url .add(.aqlFeatureAccess(myParam, 'name'), '.txt') (144..165) mode overwrite | ||
some static text. (newLineNeeded) (183..201) (178..203) | ||
[/file] (137..210) | ||
(newLineNeeded) (210..211) (134..211) | ||
[/template] (79..222) | ||
[comment @main (233..239) /] (224..241) | ||
|
||
public template myTemplate2(myParam : EPackage (271..296)) | ||
@main | ||
[file url .add(.aqlFeatureAccess(myParam, 'name'), '2.txt') (308..330) mode overwrite | ||
some static text. (newLineNeeded) (348..366) (343..368) | ||
[/file] (301..375) | ||
(newLineNeeded) (375..376) (298..376) | ||
[/template] (242..387) (0..387) |
Empty file.
1 change: 1 addition & 0 deletions
1
...evaluation/textStatement/manyMainTemplates/manyMainTemplates-expected-runtimeMessages.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 @@ | ||
(null 0 0) null[] |
Empty file.
15 changes: 15 additions & 0 deletions
15
...eleo.aql.tests/resources/evaluation/textStatement/manyMainTemplates/manyMainTemplates.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,15 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[comment @main /] | ||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[file (myParam.name + '.txt', overwrite)] | ||
some static text. | ||
[/file] | ||
[/template] | ||
|
||
[comment @main /] | ||
[template public myTemplate2(myParam : ecore::EPackage)] | ||
[file (myParam.name + '2.txt', overwrite)] | ||
some static text. | ||
[/file] | ||
[/template] |
Oops, something went wrong.