Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdolfo SBH2016-01-12 14:37:11 +0000
committerEd Willink2016-01-19 07:45:44 +0000
commit10a7cdf1168fe052cd24c060e7dc1735dbccaf4a (patch)
treeef411966c890a25700e0b5130d31b20e71a1e46b /tests/org.eclipse.qvtd.cs2as.compiler.tests/src
parentd603d3c800842e6c85816ab7f430c1d3194aa0b7 (diff)
downloadorg.eclipse.qvtd-10a7cdf1168fe052cd24c060e7dc1735dbccaf4a.tar.gz
org.eclipse.qvtd-10a7cdf1168fe052cd24c060e7dc1735dbccaf4a.tar.xz
org.eclipse.qvtd-10a7cdf1168fe052cd24c060e7dc1735dbccaf4a.zip
[485668] - CS2AS rework to make test case pass
Diffstat (limited to 'tests/org.eclipse.qvtd.cs2as.compiler.tests/src')
-rw-r--r--tests/org.eclipse.qvtd.cs2as.compiler.tests/src/org/eclipse/qvtd/cs2as/compiler/tests/models/example2/classescs2asV2.ocl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/org.eclipse.qvtd.cs2as.compiler.tests/src/org/eclipse/qvtd/cs2as/compiler/tests/models/example2/classescs2asV2.ocl b/tests/org.eclipse.qvtd.cs2as.compiler.tests/src/org/eclipse/qvtd/cs2as/compiler/tests/models/example2/classescs2asV2.ocl
index caa5ef8e9..255ce7fdf 100644
--- a/tests/org.eclipse.qvtd.cs2as.compiler.tests/src/org/eclipse/qvtd/cs2as/compiler/tests/models/example2/classescs2asV2.ocl
+++ b/tests/org.eclipse.qvtd.cs2as.compiler.tests/src/org/eclipse/qvtd/cs2as/compiler/tests/models/example2/classescs2asV2.ocl
@@ -45,10 +45,10 @@ context NameExpCS
def : ast() : as::CallExp =
if isOpCallExp()
then as::OperationCallExp {
- ownedCallExp = ownedNameExp?.ast(), -- FIXME, this is not properly CGed. See PropertyCallExp creation
+ ownedCallExp = if ownedNameExp = null then null else ownedNameExp.ast() endif, -- FIXME, this is not properly CGed. See PropertyCallExp creation
ownedArguments = roundedBrackets.args.ast(),
referredOperation = if oclContainer().oclIsKindOf(NameExpCS) then ast().lookupOperationFrom(ast().owningSource.type, name, ast().oclAsType(as::OperationCallExp).ownedArguments) else ast().lookupOperation(name, ast().oclAsType(as::OperationCallExp).ownedArguments) endif,
- type = ast().oclAsType(as::OperationCallExp).referredOperation?.type
+ type = ast().oclAsType(as::OperationCallExp).referredOperation?.type
}
else
if isPropCallExp()

Back to the top