diff options
author | Adolfo SBH | 2016-05-23 18:33:25 +0000 |
---|---|---|
committer | Adolfo SBH | 2016-05-23 18:34:44 +0000 |
commit | 3922ef025ae1232cef35cf3d59dca63da5a4aafe (patch) | |
tree | 2698aeaa3f4366f6a31da8506615a9c72d4cfcb2 | |
parent | cfa7be9a6495b3fa5534f52d1e0240a8cc23bcab (diff) | |
download | org.eclipse.qvtd-3922ef025ae1232cef35cf3d59dca63da5a4aafe.tar.gz org.eclipse.qvtd-3922ef025ae1232cef35cf3d59dca63da5a4aafe.tar.xz org.eclipse.qvtd-3922ef025ae1232cef35cf3d59dca63da5a4aafe.zip |
[cs2as] - Manually rewritting the ast() callasanchez/494243f
-rw-r--r-- | tests/org.eclipse.qvtd.cs2as.compiler.tests/src/org/eclipse/qvtd/cs2as/compiler/tests/models/example2/classescs2asV2Disambiguation.ocl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/org.eclipse.qvtd.cs2as.compiler.tests/src/org/eclipse/qvtd/cs2as/compiler/tests/models/example2/classescs2asV2Disambiguation.ocl b/tests/org.eclipse.qvtd.cs2as.compiler.tests/src/org/eclipse/qvtd/cs2as/compiler/tests/models/example2/classescs2asV2Disambiguation.ocl index 94bbdaba4..2fc2a04a1 100644 --- a/tests/org.eclipse.qvtd.cs2as.compiler.tests/src/org/eclipse/qvtd/cs2as/compiler/tests/models/example2/classescs2asV2Disambiguation.ocl +++ b/tests/org.eclipse.qvtd.cs2as.compiler.tests/src/org/eclipse/qvtd/cs2as/compiler/tests/models/example2/classescs2asV2Disambiguation.ocl @@ -12,14 +12,15 @@ def : ast() : as::Element = context NameExpCS def : lookupOperation() : as::Operation = if oclContainer().oclIsKindOf(NameExpCS) - then ast().lookupOperationFrom(ast().oclAsType(as::OperationCallExp).owningSource.type, self.name, ast().oclAsType(as::OperationCallExp).ownedArguments) - else ast().lookupOperation(name, ast().oclAsType(as::OperationCallExp).ownedArguments) + then ast.oclAsType(as::CallExp).lookupOperationFrom(ast.oclAsType(as::CallExp).owningSource.type, self.name, ast.oclAsType(as::OperationCallExp).ownedArguments) + else ast.oclAsType(as::CallExp).lookupOperation(name, ast.oclAsType(as::CallExp).oclAsType(as::OperationCallExp).ownedArguments) endif -- END OF manual addition context NameExpCS def : isOpCallExp() : Boolean = roundedBrackets <> null + def : isPropCallExp() : Boolean = roundedBrackets = null |