-
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 ProtectedArea prefixes to the migration.
- Loading branch information
Showing
6 changed files
with
295 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
7 changes: 7 additions & 0 deletions
7
...celeo3/src/resources/acceleoAqlTests/language/protectedArea/withPrefixes/withPrefixes.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,7 @@ | ||
[module withPrefixes('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
// [protected (myParam.name)] | ||
some static text. | ||
// [/protected] | ||
[/template] |
7 changes: 7 additions & 0 deletions
7
...s/resources/acceleoAqlTests/language/protectedArea/withPrefixes/withPrefixes-expected.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,7 @@ | ||
[module withPrefixes('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[protected (myParam.name) startTagPrefix('// ') endTagPrefix('// ')] | ||
some static text. | ||
[/protected] | ||
[/template] |
7 changes: 7 additions & 0 deletions
7
...sts/resources/acceleoAqlTests/language/protectedArea/withPrefixes/withPrefixes-origin.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,7 @@ | ||
[module withPrefixes('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
// [protected (myParam.name)] | ||
some static text. | ||
// [/protected] | ||
[/template] |
136 changes: 136 additions & 0 deletions
136
...ion.tests/resources/acceleoAqlTests/language/protectedArea/withPrefixes/withPrefixes.emtl
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,136 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:mtl="http://www.eclipse.org/acceleo/mtl/3.0" xmlns:ocl.ecore="http://www.eclipse.org/ocl/1.1.0/Ecore"> | ||
<mtl:Module name="withPrefixes" nsURI="resources::acceleoAqlTests::language::protectedArea::withPrefixes::withPrefixes" endHeaderPosition="61"> | ||
<input> | ||
<takesTypesFrom href="http://www.eclipse.org/emf/2002/Ecore#/"/> | ||
</input> | ||
<ownedModuleElement xsi:type="mtl:Template" name="myTemplate" visibility="Public"> | ||
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" // "/> | ||
<body xsi:type="mtl:ProtectedAreaBlock"> | ||
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
 some static text.
 // "/> | ||
<marker xsi:type="ocl.ecore:PropertyCallExp"> | ||
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | ||
<source xsi:type="ocl.ecore:VariableExp" name="myParam" referredVariable="/0/myTemplate/myParam"> | ||
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EPackage"/> | ||
</source> | ||
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/emf/2002/Ecore#//ENamedElement/name"/> | ||
</marker> | ||
</body> | ||
<parameter name="myParam"> | ||
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EPackage"/> | ||
</parameter> | ||
</ownedModuleElement> | ||
</mtl:Module> | ||
<ecore:EPackage name="additions"> | ||
<eClassifiers xsi:type="ecore:EClass" name="oclstdlib_String_Class"> | ||
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL"> | ||
<references href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | ||
</eAnnotations> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="oclstdlib_Integer_Class"> | ||
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL"> | ||
<references href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | ||
</eAnnotations> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="oclstdlib_Real_Class"> | ||
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL"> | ||
<references href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Real"/> | ||
</eAnnotations> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="ecore_EObject_Class"> | ||
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL"> | ||
<references href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/> | ||
</eAnnotations> | ||
<eOperations name="myTemplate"> | ||
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL"> | ||
<contents xsi:type="ocl.ecore:Constraint"/> | ||
</eAnnotations> | ||
<eAnnotations source="MTL" references="/0/myTemplate"/> | ||
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | ||
<eParameters name="myParam"> | ||
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EPackage"/> | ||
</eParameters> | ||
</eOperations> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="oclstdlib_OclAny_Class"> | ||
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL"> | ||
<references href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OclAny"/> | ||
</eAnnotations> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="oclstdlib_Collection(T)_Class"> | ||
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL"> | ||
<references href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Collection(T)"/> | ||
</eAnnotations> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="oclstdlib_Sequence(T)_Class"> | ||
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL"> | ||
<references href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Sequence(T)"/> | ||
</eAnnotations> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="oclstdlib_OrderedSet(T)_Class"> | ||
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL"> | ||
<references href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)"/> | ||
</eAnnotations> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="ecore_EPackage_Class"> | ||
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL"> | ||
<references href="http://www.eclipse.org/emf/2002/Ecore#//EPackage"/> | ||
</eAnnotations> | ||
</eClassifiers> | ||
</ecore:EPackage> | ||
<ocl.ecore:Variable name="self"> | ||
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/> | ||
</ocl.ecore:Variable> | ||
<ocl.ecore:Variable name="self"> | ||
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EPackage"/> | ||
</ocl.ecore:Variable> | ||
<ocl.ecore:Variable name="self"> | ||
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | ||
</ocl.ecore:Variable> | ||
<ocl.ecore:Variable name="self"> | ||
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EPackage"/> | ||
</ocl.ecore:Variable> | ||
<ocl.ecore:Variable name="self"> | ||
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EPackage"/> | ||
</ocl.ecore:Variable> | ||
<ocl.ecore:Variable name="self"> | ||
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/> | ||
</ocl.ecore:Variable> | ||
<ecore:EAnnotation source="positions"> | ||
<eAnnotations source="positions.0" references="/0/myTemplate"> | ||
<details key="start" value="65"/> | ||
<details key="end" value="213"/> | ||
<details key="line" value="3"/> | ||
</eAnnotations> | ||
<eAnnotations source="positions.1" references="/0/myTemplate/%"> | ||
<details key="start" value="121"/> | ||
<details key="end" value="128"/> | ||
<details key="line" value="4"/> | ||
</eAnnotations> | ||
<eAnnotations source="positions.2" references="/0/myTemplate/%.1"> | ||
<details key="start" value="128"/> | ||
<details key="end" value="201"/> | ||
<details key="line" value="4"/> | ||
</eAnnotations> | ||
<eAnnotations source="positions.3" references="/0/myTemplate/%.1/%"> | ||
<details key="start" value="154"/> | ||
<details key="end" value="189"/> | ||
<details key="line" value="5"/> | ||
</eAnnotations> | ||
<eAnnotations source="positions.4" references="/0/myTemplate/%.1/%.1"> | ||
<details key="start" value="140"/> | ||
<details key="end" value="152"/> | ||
<details key="line" value="0"/> | ||
</eAnnotations> | ||
<eAnnotations source="positions.5" references="/0/myTemplate/%.1/%.1/myParam"> | ||
<details key="start" value="140"/> | ||
<details key="end" value="147"/> | ||
<details key="line" value="0"/> | ||
</eAnnotations> | ||
<eAnnotations source="positions.6" references="/0/myTemplate/myParam"> | ||
<details key="start" value="93"/> | ||
<details key="end" value="118"/> | ||
<details key="line" value="3"/> | ||
</eAnnotations> | ||
</ecore:EAnnotation> | ||
</xmi:XMI> |
7 changes: 7 additions & 0 deletions
7
...tion.tests/resources/acceleoAqlTests/language/protectedArea/withPrefixes/withPrefixes.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,7 @@ | ||
[module withPrefixes('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[protected (myParam.name) startTagPrefix('// ') endTagPrefix('// ')] | ||
some static text. | ||
[/protected] | ||
[/template] |