diff options
author | Ed Willink | 2017-03-03 16:02:44 +0000 |
---|---|---|
committer | Ed Willink | 2017-03-11 10:47:25 +0000 |
commit | 1995c67268890419ec86ebe132162843f87ce379 (patch) | |
tree | 588757cbcf68d957c08555c91cb777633ae1eb7c | |
parent | 40b1c3c9d15927e27a2a1aea7455b0bc9641e101 (diff) | |
download | org.eclipse.qvtd-1995c67268890419ec86ebe132162843f87ce379.tar.gz org.eclipse.qvtd-1995c67268890419ec86ebe132162843f87ce379.tar.xz org.eclipse.qvtd-1995c67268890419ec86ebe132162843f87ce379.zip |
[unrelated] Fix some warnings
-rw-r--r-- | tests/org.eclipse.qvtd.xtext.qvtrelation.tests/src/org/eclipse/qvtd/xtext/qvtrelation/tests/rel2core/refSimplerRelToCorePivotizedBeautyfied.qvtr | 10 |
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; |