Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Willink2017-03-03 16:02:44 +0000
committerEd Willink2017-03-03 16:06:09 +0000
commit0f77f8b16adda79d57443205d1d397aec5e23815 (patch)
treeb6b01392f88e47b6c3dd9e0fe900ab115fda27f1
parentaae9e269f767a7bfc63a8cd441182ee7a46b0d33 (diff)
downloadorg.eclipse.qvtd-0f77f8b16adda79d57443205d1d397aec5e23815.tar.gz
org.eclipse.qvtd-0f77f8b16adda79d57443205d1d397aec5e23815.tar.xz
org.eclipse.qvtd-0f77f8b16adda79d57443205d1d397aec5e23815.zip
[unrelated] Fix some warnings
-rw-r--r--tests/org.eclipse.qvtd.xtext.qvtrelation.tests/src/org/eclipse/qvtd/xtext/qvtrelation/tests/rel2core/refSimplerRelToCorePivotizedBeautyfied.qvtr10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/org.eclipse.qvtd.xtext.qvtrelation.tests/src/org/eclipse/qvtd/xtext/qvtrelation/tests/rel2core/refSimplerRelToCorePivotizedBeautyfied.qvtr b/tests/org.eclipse.qvtd.xtext.qvtrelation.tests/src/org/eclipse/qvtd/xtext/qvtrelation/tests/rel2core/refSimplerRelToCorePivotizedBeautyfied.qvtr
index 597c24a9c..44f8c9c2d 100644
--- a/tests/org.eclipse.qvtd.xtext.qvtrelation.tests/src/org/eclipse/qvtd/xtext/qvtrelation/tests/rel2core/refSimplerRelToCorePivotizedBeautyfied.qvtr
+++ b/tests/org.eclipse.qvtd.xtext.qvtrelation.tests/src/org/eclipse/qvtd/xtext/qvtrelation/tests/rel2core/refSimplerRelToCorePivotizedBeautyfied.qvtr
@@ -41,7 +41,7 @@ transformation relToCore(relations:{qvtrelation,qvttemplate,qvtbase,pivotocl}, c
r.domain->iterate(d; vars: Set(pivotocl::Variable) = Set{} |
if (vars->isEmpty())
then
- vars->union(d.oclAsType(qvtrelation::RelationDomain).pattern.bindsTo)
+ vars->union(d.oclAsType(qvtrelation::RelationDomain).pattern.bindsTo->asSet())
else
vars->intersection(d.oclAsType(qvtrelation::RelationDomain).pattern.bindsTo)
endif
@@ -56,7 +56,7 @@ transformation relToCore(relations:{qvtrelation,qvttemplate,qvtbase,pivotocl}, c
r.domain->iterate(d; vars: Set(pivotocl::Variable) = Set{} |
if (vars->isEmpty())
then
- vars->union(d.oclAsType(qvtrelation::RelationDomain).pattern.bindsTo)
+ vars->union(d.oclAsType(qvtrelation::RelationDomain).pattern.bindsTo->asSet())
else
vars->intersection(d.oclAsType(qvtrelation::RelationDomain).pattern.bindsTo)
endif
@@ -65,7 +65,7 @@ transformation relToCore(relations:{qvtrelation,qvttemplate,qvtbase,pivotocl}, c
-- Get variables occuring in an ocl expression
-- Note: this function is not complete! It needs to be completed for other expressions
- query getVarsOfExp(e:pivotocl::OCLExpression):Set(pivotocl::Variable)
+ query getVarsOfExp(e:pivotocl::OCLExpression[1]):Set(pivotocl::Variable)
{
-- Walk the expr tree of the OclExpression and
-- collect the variables used in those expressions
@@ -413,7 +413,7 @@ transformation relToCore(relations:{qvtrelation,qvttemplate,qvtbase,pivotocl}, c
mbVars: Set(pivotocl::Variable);
mt: qvtbase::Transformation;
oppositeDomainVars = rOppositeDomains->iterate(d; vars: Set(pivotocl::Variable) = Set{} |
- vars->union(d.oclAsType(qvtrelation::RelationDomain).pattern.bindsTo)
+ vars->union(d.oclAsType(qvtrelation::RelationDomain).pattern.bindsTo->asSet())
);
predicatesWithVarBindings = filterOutPredicatesThatReferToVars(rpSet, domainBottomUnSharedVars);
predicatesWithoutVarBindings = rpSet - predicatesWithVarBindings;
@@ -595,7 +595,7 @@ transformation relToCore(relations:{qvtrelation,qvttemplate,qvtbase,pivotocl}, c
domainBottomUnSharedVars = (domainVars - whenVars - sharedDomainVars)->excluding(tev);
domainTopVars = domainVars->intersection(whenVars)->including(tev);
oppositeDomainVars = rOppositeDomains->iterate(d; vars: Set(pivotocl::Variable) = Set{} |
- vars->union(d.pattern.bindsTo)
+ vars->union(d.pattern.bindsTo->asSet())
);
predicatesWithVarBindings = filterOutPredicatesThatReferToVars(rpSet, domainBottomUnSharedVars);
predicatesWithoutVarBindings = rpSet - predicatesWithVarBindings;

Back to the top