use of de.be4.classicalb.core.parser.rules.RuleOperation in project probparsers by bendisposto.
the class RulesMachineChecker method caseARuleOperation.
@Override
public void caseARuleOperation(ARuleOperation node) {
currentOperation = new RuleOperation(node.getRuleName(), this.fileName, this.machineName, machineReferences);
if (containsRule(currentOperation.getName())) {
errorList.add(new CheckException("Duplicate operation name '" + currentOperation.getName() + "'.", node.getRuleName()));
}
RuleOperation ruleOp = (RuleOperation) currentOperation;
rulesMap.put(node, ruleOp);
visitOperationAttributes(node.getAttributes());
node.getRuleBody().apply(this);
checkAllErrorTypesImplemented(ruleOp);
currentOperation = null;
}
Aggregations