Skip to content

Commit

Permalink
Merged with origin/development (release 0.3.6) and handled bug #303.
Browse files Browse the repository at this point in the history
  • Loading branch information
adalbertocajueiro committed Sep 24, 2014
1 parent a7d5f03 commit cc1b518
Showing 1 changed file with 22 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package eu.compassresearch.ide.modelchecker;

import java.util.LinkedList;

import org.overture.ast.analysis.AnalysisException;
import org.overture.ast.definitions.AAssignmentDefinition;
import org.overture.ast.definitions.ABusClassDefinition;
Expand Down Expand Up @@ -152,6 +154,7 @@
import org.overture.ast.types.AUnresolvedType;
import org.overture.ast.types.AVoidReturnType;
import org.overture.ast.types.AVoidType;
import org.overture.ast.types.PType;

import eu.compassresearch.ast.actions.AAlphabetisedParallelismParallelAction;
import eu.compassresearch.ast.actions.AAlphabetisedParallelismReplicatedAction;
Expand Down Expand Up @@ -250,6 +253,9 @@
import eu.compassresearch.ast.statements.AUnresolvedStateDesignator;
import eu.compassresearch.ast.types.AChannelType;
import eu.compassresearch.ast.types.AProcessType;
import eu.compassresearch.core.analysis.modelchecker.ast.auxiliary.ExpressionEvaluator;
import eu.compassresearch.core.analysis.modelchecker.ast.types.MCAChannelType;
import eu.compassresearch.core.analysis.modelchecker.ast.types.MCPCMLType;
import eu.compassresearch.ide.core.unsupported.UnsupportedCollector;
import eu.compassresearch.ide.core.unsupported.UnsupportedElementInfo;
import eu.compassresearch.ide.core.unsupported.UnsupportingFeatures;
Expand Down Expand Up @@ -590,12 +596,24 @@ public void caseAChannelRenamingProcess(AChannelRenamingProcess node)

@Override
public void caseAChannelType(AChannelType arg0) throws AnalysisException {
unsupported=false;
// TODO Uncomment the above line to signal support for this node
// Do not remove the super call below.
super.caseAChannelType(arg0);
//channel types that have more than one communication type are not allowed
UnsupportedElementInfo uei = new UnsupportedElementInfo() {
};

if(arg0.getParameters().size() > 1){
uei.setLocation(arg0.getLocation());
uei.setMessage(arg0.getClass().getSimpleName().toString()
+ " nodes with more than one parameter are not supported by the " + this.getFeature().toString());
this.getUnsupporteds().add(uei);
unsupported = true;
}else{
unsupported = false;
}
// Do not remove the super call below.
//super.caseAChannelType(arg0);
}


@Override
public void caseAChansetDefinition(AChansetDefinition node)
throws AnalysisException {
Expand Down

0 comments on commit cc1b518

Please sign in to comment.