Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdolfo SBH2016-05-23 14:33:25 -0400
committerAdolfo SBH2016-05-23 14:34:44 -0400
commit3922ef025ae1232cef35cf3d59dca63da5a4aafe (patch)
tree2698aeaa3f4366f6a31da8506615a9c72d4cfcb2
parentcfa7be9a6495b3fa5534f52d1e0240a8cc23bcab (diff)
downloadorg.eclipse.qvtd-asanchez/494243f.tar.gz
org.eclipse.qvtd-asanchez/494243f.tar.xz
org.eclipse.qvtd-asanchez/494243f.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.ocl5
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

Back to the top