Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Willink2016-11-02 13:47:30 -0400
committerEd Willink2016-11-02 13:47:57 -0400
commit2c4396371a23428ac8fa30bb3f6622c470ef2f80 (patch)
treef41703f9c7c3c138d28520f50de7b8e973d0bdce
parent4c06ce312243033efb1cae1a602590fb58d9fd6f (diff)
downloadorg.eclipse.qvtd-ewillink/480194a.tar.gz
org.eclipse.qvtd-ewillink/480194a.tar.xz
org.eclipse.qvtd-ewillink/480194a.zip
-rw-r--r--plugins/org.eclipse.qvtd.compiler/src/org/eclipse/qvtd/compiler/internal/qvts2qvti/BasicRegion2Mapping.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/org.eclipse.qvtd.compiler/src/org/eclipse/qvtd/compiler/internal/qvts2qvti/BasicRegion2Mapping.java b/plugins/org.eclipse.qvtd.compiler/src/org/eclipse/qvtd/compiler/internal/qvts2qvti/BasicRegion2Mapping.java
index 9c027cedb..4c9025ff5 100644
--- a/plugins/org.eclipse.qvtd.compiler/src/org/eclipse/qvtd/compiler/internal/qvts2qvti/BasicRegion2Mapping.java
+++ b/plugins/org.eclipse.qvtd.compiler/src/org/eclipse/qvtd/compiler/internal/qvts2qvti/BasicRegion2Mapping.java
@@ -935,7 +935,12 @@ public class BasicRegion2Mapping extends AbstractRegion2Mapping
for (@NonNull NavigableEdge edge : region.getNavigationEdges()) {
Node sourceNode = edge.getSource();
Node targetNode = edge.getTarget();
- if (!sourceNode.isIterator() && !sourceNode.isDependency() && !targetNode.isIterator() && RegionUtil.isUnconditional(edge)) { // FIXME provide a better isExpression capability for pattern nodes
+ boolean isMatched1 = !sourceNode.isIterator() && !sourceNode.isDependency() && !targetNode.isIterator() && RegionUtil.isUnconditional(edge); // FIXME provide a better isExpression capability for pattern nodes
+ boolean isMatched2 = edge.isMatched();
+ if (isMatched1 != isMatched2) {
+ System.out.println("Inconsistently isMatched in " + name + " : " + edge);
+ }
+ if (isMatched2) {
forestEdges.add(edge);
}
}

Back to the top