temporary fix for missing SynStateType for new elements in

SyntacticSequencer
This commit is contained in:
overflowerror 2021-11-30 19:59:14 +01:00
parent b4deb67876
commit 365de63327

View file

@ -24,6 +24,7 @@ import org.eclipse.xtext.Assignment;
import org.eclipse.xtext.EnumRule;
import org.eclipse.xtext.Grammar;
import org.eclipse.xtext.GrammarUtil;
import org.eclipse.xtext.JavaAction;
import org.eclipse.xtext.Keyword;
import org.eclipse.xtext.ParserRule;
import org.eclipse.xtext.RuleCall;
@ -652,6 +653,9 @@ public class SyntacticSequencerPDAProvider implements ISyntacticSequencerPDAProv
} else if (ele instanceof AbstractSemanticPredicate) {
// TODO sem-predicates: Do something useful here.
return SynStateType.ASSIGNED_ACTION_CALL;
} else if (ele instanceof JavaAction) {
// TODO sem-predicates: Do something useful here.
return SynStateType.ASSIGNED_ACTION_CALL;
} else if (GrammarUtil.containingCrossReference(ele) != null) {
if (ele instanceof RuleCall) {
RuleCall rc = (RuleCall) ele;