/*
* $Id$
*
* File is automatically generated by the Xtext language generator.
* Do not change it.
*
* SARL is an general-purpose agent programming language.
* More details on http://www.sarl.io
*
* Copyright (C) 2014-2017 the original authors or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.sarl.lang.serializer;
import com.google.inject.Inject;
import io.sarl.lang.services.SARLGrammarAccess;
import java.util.List;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.xtext.IGrammarAccess;
import org.eclipse.xtext.RuleCall;
import org.eclipse.xtext.nodemodel.INode;
import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
import org.eclipse.xtext.serializer.analysis.GrammarAlias.GroupAlias;
import org.eclipse.xtext.serializer.analysis.GrammarAlias.TokenAlias;
import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable;
import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
@SuppressWarnings("all")
public class SARLSyntacticSequencer extends AbstractSyntacticSequencer {
protected SARLGrammarAccess grammarAccess;
protected AbstractElementAlias match_AOPMember_SemicolonKeyword_2_1_4_q;
protected AbstractElementAlias match_AOPMember_SemicolonKeyword_2_2_4_q;
protected AbstractElementAlias match_AOPMember_SemicolonKeyword_2_3_4_q;
protected AbstractElementAlias match_AOPMember_SemicolonKeyword_2_5_9_1_q;
protected AbstractElementAlias match_AOPMember_SemicolonKeyword_2_8_6_q;
protected AbstractElementAlias match_AOPMember___LeftParenthesisKeyword_2_4_4_0_RightParenthesisKeyword_2_4_4_2__q;
protected AbstractElementAlias match_AOPMember___LeftParenthesisKeyword_2_5_6_0_RightParenthesisKeyword_2_5_6_2__q;
protected AbstractElementAlias match_AnnotationField_SemicolonKeyword_2_0_7_q;
protected AbstractElementAlias match_AnnotationField_SemicolonKeyword_2_3_6_q;
protected AbstractElementAlias match_CapacityMember_SemicolonKeyword_11_1_q;
protected AbstractElementAlias match_CapacityMember___LeftParenthesisKeyword_8_0_RightParenthesisKeyword_8_2__q;
protected AbstractElementAlias match_EventMember_SemicolonKeyword_2_0_4_q;
protected AbstractElementAlias match_EventMember___LeftParenthesisKeyword_2_1_4_0_RightParenthesisKeyword_2_1_4_2__q;
protected AbstractElementAlias match_File_SemicolonKeyword_0_2_q;
protected AbstractElementAlias match_Member_SemicolonKeyword_2_0_4_q;
protected AbstractElementAlias match_Member_SemicolonKeyword_2_2_9_1_q;
protected AbstractElementAlias match_Member_SemicolonKeyword_2_5_6_q;
protected AbstractElementAlias match_Member___LeftParenthesisKeyword_2_1_4_0_RightParenthesisKeyword_2_1_4_2__q;
protected AbstractElementAlias match_Member___LeftParenthesisKeyword_2_2_6_0_RightParenthesisKeyword_2_2_6_2__q;
protected AbstractElementAlias match_SarlScript_SemicolonKeyword_1_2_q;
protected AbstractElementAlias match_Type_SemicolonKeyword_2_9_6_q;
protected AbstractElementAlias match_Type___LeftCurlyBracketKeyword_2_0_5_0_RightCurlyBracketKeyword_2_0_5_2__q;
protected AbstractElementAlias match_XAnnotation___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q;
protected AbstractElementAlias match_XBlockExpression_SemicolonKeyword_2_1_q;
protected AbstractElementAlias match_XExpressionInClosure_SemicolonKeyword_1_1_q;
protected AbstractElementAlias match_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q;
protected AbstractElementAlias match_XImportDeclaration_SemicolonKeyword_2_q;
protected AbstractElementAlias match_XParenthesizedExpression_LeftParenthesisKeyword_0_a;
protected AbstractElementAlias match_XParenthesizedExpression_LeftParenthesisKeyword_0_p;
@Inject
protected void init(IGrammarAccess access) {
grammarAccess = (SARLGrammarAccess) access;
match_AOPMember_SemicolonKeyword_2_1_4_q = new TokenAlias(false, true, grammarAccess.getAOPMemberAccess().getSemicolonKeyword_2_1_4());
match_AOPMember_SemicolonKeyword_2_2_4_q = new TokenAlias(false, true, grammarAccess.getAOPMemberAccess().getSemicolonKeyword_2_2_4());
match_AOPMember_SemicolonKeyword_2_3_4_q = new TokenAlias(false, true, grammarAccess.getAOPMemberAccess().getSemicolonKeyword_2_3_4());
match_AOPMember_SemicolonKeyword_2_5_9_1_q = new TokenAlias(false, true, grammarAccess.getAOPMemberAccess().getSemicolonKeyword_2_5_9_1());
match_AOPMember_SemicolonKeyword_2_8_6_q = new TokenAlias(false, true, grammarAccess.getAOPMemberAccess().getSemicolonKeyword_2_8_6());
match_AOPMember___LeftParenthesisKeyword_2_4_4_0_RightParenthesisKeyword_2_4_4_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getAOPMemberAccess().getLeftParenthesisKeyword_2_4_4_0()), new TokenAlias(false, false, grammarAccess.getAOPMemberAccess().getRightParenthesisKeyword_2_4_4_2()));
match_AOPMember___LeftParenthesisKeyword_2_5_6_0_RightParenthesisKeyword_2_5_6_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getAOPMemberAccess().getLeftParenthesisKeyword_2_5_6_0()), new TokenAlias(false, false, grammarAccess.getAOPMemberAccess().getRightParenthesisKeyword_2_5_6_2()));
match_AnnotationField_SemicolonKeyword_2_0_7_q = new TokenAlias(false, true, grammarAccess.getAnnotationFieldAccess().getSemicolonKeyword_2_0_7());
match_AnnotationField_SemicolonKeyword_2_3_6_q = new TokenAlias(false, true, grammarAccess.getAnnotationFieldAccess().getSemicolonKeyword_2_3_6());
match_CapacityMember_SemicolonKeyword_11_1_q = new TokenAlias(false, true, grammarAccess.getCapacityMemberAccess().getSemicolonKeyword_11_1());
match_CapacityMember___LeftParenthesisKeyword_8_0_RightParenthesisKeyword_8_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getCapacityMemberAccess().getLeftParenthesisKeyword_8_0()), new TokenAlias(false, false, grammarAccess.getCapacityMemberAccess().getRightParenthesisKeyword_8_2()));
match_EventMember_SemicolonKeyword_2_0_4_q = new TokenAlias(false, true, grammarAccess.getEventMemberAccess().getSemicolonKeyword_2_0_4());
match_EventMember___LeftParenthesisKeyword_2_1_4_0_RightParenthesisKeyword_2_1_4_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getEventMemberAccess().getLeftParenthesisKeyword_2_1_4_0()), new TokenAlias(false, false, grammarAccess.getEventMemberAccess().getRightParenthesisKeyword_2_1_4_2()));
match_File_SemicolonKeyword_0_2_q = new TokenAlias(false, true, grammarAccess.getFileAccess().getSemicolonKeyword_0_2());
match_Member_SemicolonKeyword_2_0_4_q = new TokenAlias(false, true, grammarAccess.getMemberAccess().getSemicolonKeyword_2_0_4());
match_Member_SemicolonKeyword_2_2_9_1_q = new TokenAlias(false, true, grammarAccess.getMemberAccess().getSemicolonKeyword_2_2_9_1());
match_Member_SemicolonKeyword_2_5_6_q = new TokenAlias(false, true, grammarAccess.getMemberAccess().getSemicolonKeyword_2_5_6());
match_Member___LeftParenthesisKeyword_2_1_4_0_RightParenthesisKeyword_2_1_4_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getMemberAccess().getLeftParenthesisKeyword_2_1_4_0()), new TokenAlias(false, false, grammarAccess.getMemberAccess().getRightParenthesisKeyword_2_1_4_2()));
match_Member___LeftParenthesisKeyword_2_2_6_0_RightParenthesisKeyword_2_2_6_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getMemberAccess().getLeftParenthesisKeyword_2_2_6_0()), new TokenAlias(false, false, grammarAccess.getMemberAccess().getRightParenthesisKeyword_2_2_6_2()));
match_SarlScript_SemicolonKeyword_1_2_q = new TokenAlias(false, true, grammarAccess.getSarlScriptAccess().getSemicolonKeyword_1_2());
match_Type_SemicolonKeyword_2_9_6_q = new TokenAlias(false, true, grammarAccess.getTypeAccess().getSemicolonKeyword_2_9_6());
match_Type___LeftCurlyBracketKeyword_2_0_5_0_RightCurlyBracketKeyword_2_0_5_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getTypeAccess().getLeftCurlyBracketKeyword_2_0_5_0()), new TokenAlias(false, false, grammarAccess.getTypeAccess().getRightCurlyBracketKeyword_2_0_5_2()));
match_XAnnotation___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getXAnnotationAccess().getLeftParenthesisKeyword_3_0()), new TokenAlias(false, false, grammarAccess.getXAnnotationAccess().getRightParenthesisKeyword_3_2()));
match_XBlockExpression_SemicolonKeyword_2_1_q = new TokenAlias(false, true, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1());
match_XExpressionInClosure_SemicolonKeyword_1_1_q = new TokenAlias(false, true, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1());
match_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()), new TokenAlias(false, false, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()));
match_XImportDeclaration_SemicolonKeyword_2_q = new TokenAlias(false, true, grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_2());
match_XParenthesizedExpression_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0());
match_XParenthesizedExpression_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0());
}
@Override
protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
if (ruleCall.getRule() == grammarAccess.getArrayBracketsRule())
return getArrayBracketsToken(semanticObject, ruleCall, node);
else if (ruleCall.getRule() == grammarAccess.getOpSingleAssignRule())
return getOpSingleAssignToken(semanticObject, ruleCall, node);
return "";
}
/**
* ArrayBrackets :
* '[' ']'
* ;
*/
protected String getArrayBracketsToken(EObject semanticObject, RuleCall ruleCall, INode node) {
if (node != null)
return getTokenText(node);
return "[]";
}
/**
* OpSingleAssign:
* '='
* ;
*/
protected String getOpSingleAssignToken(EObject semanticObject, RuleCall ruleCall, INode node) {
if (node != null)
return getTokenText(node);
return "=";
}
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
if (transition.getAmbiguousSyntaxes().isEmpty()) return;
List<INode> transitionNodes = collectNodes(fromNode, toNode);
for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
if (match_AOPMember_SemicolonKeyword_2_1_4_q.equals(syntax))
emit_AOPMember_SemicolonKeyword_2_1_4_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_AOPMember_SemicolonKeyword_2_2_4_q.equals(syntax))
emit_AOPMember_SemicolonKeyword_2_2_4_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_AOPMember_SemicolonKeyword_2_3_4_q.equals(syntax))
emit_AOPMember_SemicolonKeyword_2_3_4_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_AOPMember_SemicolonKeyword_2_5_9_1_q.equals(syntax))
emit_AOPMember_SemicolonKeyword_2_5_9_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_AOPMember_SemicolonKeyword_2_8_6_q.equals(syntax))
emit_AOPMember_SemicolonKeyword_2_8_6_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_AOPMember___LeftParenthesisKeyword_2_4_4_0_RightParenthesisKeyword_2_4_4_2__q.equals(syntax))
emit_AOPMember___LeftParenthesisKeyword_2_4_4_0_RightParenthesisKeyword_2_4_4_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_AOPMember___LeftParenthesisKeyword_2_5_6_0_RightParenthesisKeyword_2_5_6_2__q.equals(syntax))
emit_AOPMember___LeftParenthesisKeyword_2_5_6_0_RightParenthesisKeyword_2_5_6_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_AnnotationField_SemicolonKeyword_2_0_7_q.equals(syntax))
emit_AnnotationField_SemicolonKeyword_2_0_7_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_AnnotationField_SemicolonKeyword_2_3_6_q.equals(syntax))
emit_AnnotationField_SemicolonKeyword_2_3_6_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_CapacityMember_SemicolonKeyword_11_1_q.equals(syntax))
emit_CapacityMember_SemicolonKeyword_11_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_CapacityMember___LeftParenthesisKeyword_8_0_RightParenthesisKeyword_8_2__q.equals(syntax))
emit_CapacityMember___LeftParenthesisKeyword_8_0_RightParenthesisKeyword_8_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_EventMember_SemicolonKeyword_2_0_4_q.equals(syntax))
emit_EventMember_SemicolonKeyword_2_0_4_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_EventMember___LeftParenthesisKeyword_2_1_4_0_RightParenthesisKeyword_2_1_4_2__q.equals(syntax))
emit_EventMember___LeftParenthesisKeyword_2_1_4_0_RightParenthesisKeyword_2_1_4_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_File_SemicolonKeyword_0_2_q.equals(syntax))
emit_File_SemicolonKeyword_0_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_Member_SemicolonKeyword_2_0_4_q.equals(syntax))
emit_Member_SemicolonKeyword_2_0_4_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_Member_SemicolonKeyword_2_2_9_1_q.equals(syntax))
emit_Member_SemicolonKeyword_2_2_9_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_Member_SemicolonKeyword_2_5_6_q.equals(syntax))
emit_Member_SemicolonKeyword_2_5_6_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_Member___LeftParenthesisKeyword_2_1_4_0_RightParenthesisKeyword_2_1_4_2__q.equals(syntax))
emit_Member___LeftParenthesisKeyword_2_1_4_0_RightParenthesisKeyword_2_1_4_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_Member___LeftParenthesisKeyword_2_2_6_0_RightParenthesisKeyword_2_2_6_2__q.equals(syntax))
emit_Member___LeftParenthesisKeyword_2_2_6_0_RightParenthesisKeyword_2_2_6_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_SarlScript_SemicolonKeyword_1_2_q.equals(syntax))
emit_SarlScript_SemicolonKeyword_1_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_Type_SemicolonKeyword_2_9_6_q.equals(syntax))
emit_Type_SemicolonKeyword_2_9_6_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_Type___LeftCurlyBracketKeyword_2_0_5_0_RightCurlyBracketKeyword_2_0_5_2__q.equals(syntax))
emit_Type___LeftCurlyBracketKeyword_2_0_5_0_RightCurlyBracketKeyword_2_0_5_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_XAnnotation___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q.equals(syntax))
emit_XAnnotation___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_XBlockExpression_SemicolonKeyword_2_1_q.equals(syntax))
emit_XBlockExpression_SemicolonKeyword_2_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_XExpressionInClosure_SemicolonKeyword_1_1_q.equals(syntax))
emit_XExpressionInClosure_SemicolonKeyword_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q.equals(syntax))
emit_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_XImportDeclaration_SemicolonKeyword_2_q.equals(syntax))
emit_XImportDeclaration_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_XParenthesizedExpression_LeftParenthesisKeyword_0_a.equals(syntax))
emit_XParenthesizedExpression_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_XParenthesizedExpression_LeftParenthesisKeyword_0_p.equals(syntax))
emit_XParenthesizedExpression_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
else acceptNodes(getLastNavigableState(), syntaxNodes);
}
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* capacities+=JvmParameterizedTypeReference (ambiguity) (rule end)
*/
protected void emit_AOPMember_SemicolonKeyword_2_1_4_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* capacities+=JvmParameterizedTypeReference (ambiguity) (rule end)
*/
protected void emit_AOPMember_SemicolonKeyword_2_2_4_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* initialValue=XExpression (ambiguity) (rule end)
* name=ValidID (ambiguity) (rule end)
* type=JvmTypeReference (ambiguity) (rule end)
*/
protected void emit_AOPMember_SemicolonKeyword_2_3_4_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* exceptions+=JvmTypeReference (ambiguity) (rule end)
* firedEvents+=JvmTypeReference (ambiguity) (rule end)
* name=FunctionID ('(' ')')? (ambiguity) (rule end)
* parameters+=Parameter ')' (ambiguity) (rule end)
* returnType=TypeReferenceNoTypeArgs (ambiguity) (rule end)
* returnType=TypeReferenceWithTypeArgs (ambiguity) (rule end)
* typeParameters+=JvmTypeParameter (ambiguity) (rule end)
*/
protected void emit_AOPMember_SemicolonKeyword_2_5_9_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* members+=XtendEnumLiteral (ambiguity) '}' (rule end)
* name=ValidID '{' (ambiguity) '}' (rule end)
*/
protected void emit_AOPMember_SemicolonKeyword_2_8_6_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ('(' ')')?
*
* This ambiguous syntax occurs at:
* modifiers+=CommonModifier 'new' (ambiguity) 'throws' exceptions+=JvmTypeReference
* modifiers+=CommonModifier 'new' (ambiguity) 'with' typeParameters+=JvmTypeParameter
* modifiers+=CommonModifier 'new' (ambiguity) expression=XBlockExpression
* typeParameters+=JvmTypeParameter '>' (ambiguity) 'throws' exceptions+=JvmTypeReference
* typeParameters+=JvmTypeParameter '>' (ambiguity) 'with' typeParameters+=JvmTypeParameter
* typeParameters+=JvmTypeParameter '>' (ambiguity) expression=XBlockExpression
* {SarlConstructor.annotationInfo=} 'new' (ambiguity) 'throws' exceptions+=JvmTypeReference
* {SarlConstructor.annotationInfo=} 'new' (ambiguity) 'with' typeParameters+=JvmTypeParameter
* {SarlConstructor.annotationInfo=} 'new' (ambiguity) expression=XBlockExpression
*/
protected void emit_AOPMember___LeftParenthesisKeyword_2_4_4_0_RightParenthesisKeyword_2_4_4_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ('(' ')')?
*
* This ambiguous syntax occurs at:
* name=FunctionID (ambiguity) ':' returnType=TypeReferenceNoTypeArgs
* name=FunctionID (ambiguity) ':' returnType=TypeReferenceWithTypeArgs
* name=FunctionID (ambiguity) ';'? (rule end)
* name=FunctionID (ambiguity) 'fires' firedEvents+=JvmTypeReference
* name=FunctionID (ambiguity) 'throws' exceptions+=JvmTypeReference
* name=FunctionID (ambiguity) 'with' typeParameters+=JvmTypeParameter
* name=FunctionID (ambiguity) expression=XBlockExpression
*/
protected void emit_AOPMember___LeftParenthesisKeyword_2_5_6_0_RightParenthesisKeyword_2_5_6_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* initialValue=XAnnotationElementValue (ambiguity) (rule end)
* name=ValidID (ambiguity) (rule end)
* type=JvmTypeReference (ambiguity) (rule end)
*/
protected void emit_AnnotationField_SemicolonKeyword_2_0_7_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* members+=XtendEnumLiteral (ambiguity) '}' (rule end)
* name=ValidID '{' (ambiguity) '}' (rule end)
*/
protected void emit_AnnotationField_SemicolonKeyword_2_3_6_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* exceptions+=JvmTypeReference (ambiguity) (rule end)
* firedEvents+=JvmTypeReference (ambiguity) (rule end)
* name=FunctionID ('(' ')')? (ambiguity) (rule end)
* parameters+=Parameter ')' (ambiguity) (rule end)
* returnType=TypeReferenceNoTypeArgs (ambiguity) (rule end)
* returnType=TypeReferenceWithTypeArgs (ambiguity) (rule end)
* typeParameters+=JvmTypeParameter (ambiguity) (rule end)
*/
protected void emit_CapacityMember_SemicolonKeyword_11_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ('(' ')')?
*
* This ambiguous syntax occurs at:
* name=FunctionID (ambiguity) ':' returnType=TypeReferenceNoTypeArgs
* name=FunctionID (ambiguity) ':' returnType=TypeReferenceWithTypeArgs
* name=FunctionID (ambiguity) ';'? (rule end)
* name=FunctionID (ambiguity) 'fires' firedEvents+=JvmTypeReference
* name=FunctionID (ambiguity) 'throws' exceptions+=JvmTypeReference
* name=FunctionID (ambiguity) 'with' typeParameters+=JvmTypeParameter
* name=FunctionID (ambiguity) expression=XBlockExpression
*/
protected void emit_CapacityMember___LeftParenthesisKeyword_8_0_RightParenthesisKeyword_8_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* initialValue=XExpression (ambiguity) (rule end)
* name=ValidID (ambiguity) (rule end)
* type=JvmTypeReference (ambiguity) (rule end)
*/
protected void emit_EventMember_SemicolonKeyword_2_0_4_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ('(' ')')?
*
* This ambiguous syntax occurs at:
* modifiers+=CommonModifier 'new' (ambiguity) 'throws' exceptions+=JvmTypeReference
* modifiers+=CommonModifier 'new' (ambiguity) 'with' typeParameters+=JvmTypeParameter
* modifiers+=CommonModifier 'new' (ambiguity) expression=XBlockExpression
* typeParameters+=JvmTypeParameter '>' (ambiguity) 'throws' exceptions+=JvmTypeReference
* typeParameters+=JvmTypeParameter '>' (ambiguity) 'with' typeParameters+=JvmTypeParameter
* typeParameters+=JvmTypeParameter '>' (ambiguity) expression=XBlockExpression
* {SarlConstructor.annotationInfo=} 'new' (ambiguity) 'throws' exceptions+=JvmTypeReference
* {SarlConstructor.annotationInfo=} 'new' (ambiguity) 'with' typeParameters+=JvmTypeParameter
* {SarlConstructor.annotationInfo=} 'new' (ambiguity) expression=XBlockExpression
*/
protected void emit_EventMember___LeftParenthesisKeyword_2_1_4_0_RightParenthesisKeyword_2_1_4_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* package=QualifiedName (ambiguity) (rule end)
* package=QualifiedName (ambiguity) importSection=XImportSection
* package=QualifiedName (ambiguity) xtendTypes+=Type
*/
protected void emit_File_SemicolonKeyword_0_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* initialValue=XExpression (ambiguity) (rule end)
* name=ValidID (ambiguity) (rule end)
* type=JvmTypeReference (ambiguity) (rule end)
*/
protected void emit_Member_SemicolonKeyword_2_0_4_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* exceptions+=JvmTypeReference (ambiguity) (rule end)
* firedEvents+=JvmTypeReference (ambiguity) (rule end)
* name=FunctionID ('(' ')')? (ambiguity) (rule end)
* parameters+=Parameter ')' (ambiguity) (rule end)
* returnType=TypeReferenceNoTypeArgs (ambiguity) (rule end)
* returnType=TypeReferenceWithTypeArgs (ambiguity) (rule end)
* typeParameters+=JvmTypeParameter (ambiguity) (rule end)
*/
protected void emit_Member_SemicolonKeyword_2_2_9_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* members+=XtendEnumLiteral (ambiguity) '}' (rule end)
* name=ValidID '{' (ambiguity) '}' (rule end)
*/
protected void emit_Member_SemicolonKeyword_2_5_6_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ('(' ')')?
*
* This ambiguous syntax occurs at:
* modifiers+=CommonModifier 'new' (ambiguity) 'throws' exceptions+=JvmTypeReference
* modifiers+=CommonModifier 'new' (ambiguity) 'with' typeParameters+=JvmTypeParameter
* modifiers+=CommonModifier 'new' (ambiguity) expression=XBlockExpression
* typeParameters+=JvmTypeParameter '>' (ambiguity) 'throws' exceptions+=JvmTypeReference
* typeParameters+=JvmTypeParameter '>' (ambiguity) 'with' typeParameters+=JvmTypeParameter
* typeParameters+=JvmTypeParameter '>' (ambiguity) expression=XBlockExpression
* {SarlConstructor.annotationInfo=} 'new' (ambiguity) 'throws' exceptions+=JvmTypeReference
* {SarlConstructor.annotationInfo=} 'new' (ambiguity) 'with' typeParameters+=JvmTypeParameter
* {SarlConstructor.annotationInfo=} 'new' (ambiguity) expression=XBlockExpression
*/
protected void emit_Member___LeftParenthesisKeyword_2_1_4_0_RightParenthesisKeyword_2_1_4_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ('(' ')')?
*
* This ambiguous syntax occurs at:
* name=FunctionID (ambiguity) ':' returnType=TypeReferenceNoTypeArgs
* name=FunctionID (ambiguity) ':' returnType=TypeReferenceWithTypeArgs
* name=FunctionID (ambiguity) ';'? (rule end)
* name=FunctionID (ambiguity) 'fires' firedEvents+=JvmTypeReference
* name=FunctionID (ambiguity) 'throws' exceptions+=JvmTypeReference
* name=FunctionID (ambiguity) 'with' typeParameters+=JvmTypeParameter
* name=FunctionID (ambiguity) expression=XBlockExpression
*/
protected void emit_Member___LeftParenthesisKeyword_2_2_6_0_RightParenthesisKeyword_2_2_6_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* package=QualifiedName (ambiguity) (rule end)
* package=QualifiedName (ambiguity) importSection=XImportSection
* package=QualifiedName (ambiguity) xtendTypes+=Type
*/
protected void emit_SarlScript_SemicolonKeyword_1_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* members+=XtendEnumLiteral (ambiguity) '}' (rule end)
* name=ValidID '{' (ambiguity) '}' (rule end)
*/
protected void emit_Type_SemicolonKeyword_2_9_6_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ('{' '}')?
*
* This ambiguous syntax occurs at:
* extends=JvmParameterizedTypeReference (ambiguity) (rule end)
* name=ValidID (ambiguity) (rule end)
*/
protected void emit_Type___LeftCurlyBracketKeyword_2_0_5_0_RightCurlyBracketKeyword_2_0_5_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ('(' ')')?
*
* This ambiguous syntax occurs at:
* annotationType=[JvmAnnotationType|QualifiedName] (ambiguity) (rule end)
*/
protected void emit_XAnnotation___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* expressions+=XExpressionOrVarDeclaration (ambiguity) '}' ')' (rule end)
* expressions+=XExpressionOrVarDeclaration (ambiguity) '}' (rule end)
* expressions+=XExpressionOrVarDeclaration (ambiguity) expressions+=XExpressionOrVarDeclaration
*/
protected void emit_XBlockExpression_SemicolonKeyword_2_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* expressions+=XExpressionOrVarDeclaration (ambiguity) (rule end)
* expressions+=XExpressionOrVarDeclaration (ambiguity) expressions+=XExpressionOrVarDeclaration
*/
protected void emit_XExpressionInClosure_SemicolonKeyword_1_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ('(' ')')?
*
* This ambiguous syntax occurs at:
* (rule start) (ambiguity) '=>' returnType=JvmTypeReference
*/
protected void emit_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ';'?
*
* This ambiguous syntax occurs at:
* importedNamespace=QualifiedNameWithWildcard (ambiguity) (rule end)
* importedType=[JvmDeclaredType|QualifiedName] (ambiguity) (rule end)
* memberName=ValidID (ambiguity) (rule end)
* wildcard?='*' (ambiguity) (rule end)
*/
protected void emit_XImportDeclaration_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* '('*
*
* This ambiguous syntax occurs at:
* (rule start) (ambiguity) '#' '[' ']' (rule start)
* (rule start) (ambiguity) '#' '[' elements+=XExpression
* (rule start) (ambiguity) '#' '{' '}' (rule start)
* (rule start) (ambiguity) '#' '{' elements+=XExpression
* (rule start) (ambiguity) '<' typeArguments+=JvmArgumentTypeReference
* (rule start) (ambiguity) '[' declaredFormalParameters+=JvmFormalParameter
* (rule start) (ambiguity) '[' explicitSyntax?='|'
* (rule start) (ambiguity) '[' expression=XExpressionInClosure
* (rule start) (ambiguity) 'break' (rule start)
* (rule start) (ambiguity) 'do' body=XExpression
* (rule start) (ambiguity) 'false' (rule start)
* (rule start) (ambiguity) 'for' '(' ';' ';' ')' eachExpression=XExpression
* (rule start) (ambiguity) 'for' '(' ';' ';' updateExpressions+=XExpression
* (rule start) (ambiguity) 'for' '(' ';' expression=XExpression
* (rule start) (ambiguity) 'for' '(' declaredParam=SarlXLoopFormalParameter
* (rule start) (ambiguity) 'for' '(' initExpressions+=XExpressionOrVarDeclaration
* (rule start) (ambiguity) 'if' '(' if=XExpression
* (rule start) (ambiguity) 'new' constructor=[JvmConstructor|QualifiedName]
* (rule start) (ambiguity) 'null' (rule start)
* (rule start) (ambiguity) 'return' (rule start)
* (rule start) (ambiguity) 'return' expression=XExpression
* (rule start) (ambiguity) 'switch' '(' declaredParam=JvmFormalParameter
* (rule start) (ambiguity) 'switch' declaredParam=JvmFormalParameter
* (rule start) (ambiguity) 'switch' switch=XExpression
* (rule start) (ambiguity) 'synchronized' '(' param=XExpression
* (rule start) (ambiguity) 'throw' expression=XExpression
* (rule start) (ambiguity) 'try' expression=XExpression
* (rule start) (ambiguity) 'typeof' '(' type=[JvmType|QualifiedName]
* (rule start) (ambiguity) 'while' '(' predicate=XExpression
* (rule start) (ambiguity) '{' '}' (rule start)
* (rule start) (ambiguity) '{' expressions+=XExpressionOrVarDeclaration
* (rule start) (ambiguity) expressions+=RichStringLiteral
* (rule start) (ambiguity) expressions+=RichStringLiteralStart
* (rule start) (ambiguity) feature=[JvmIdentifiableElement|FeatureCallID]
* (rule start) (ambiguity) feature=[JvmIdentifiableElement|IdOrSuper]
* (rule start) (ambiguity) feature=[JvmIdentifiableElement|OpUnary]
* (rule start) (ambiguity) isTrue?='true'
* (rule start) (ambiguity) value=Number
* (rule start) (ambiguity) value=STRING
* (rule start) (ambiguity) {AnonymousClass.constructorCall=}
* (rule start) (ambiguity) {XAssignment.assignable=}
* (rule start) (ambiguity) {XBinaryOperation.leftOperand=}
* (rule start) (ambiguity) {XCastedExpression.target=}
* (rule start) (ambiguity) {XInstanceOfExpression.expression=}
* (rule start) (ambiguity) {XMemberFeatureCall.memberCallTarget=}
* (rule start) (ambiguity) {XPostfixOperation.operand=}
*/
protected void emit_XParenthesizedExpression_LeftParenthesisKeyword_0_a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* '('+
*
* This ambiguous syntax occurs at:
* (rule start) (ambiguity) '#' '[' ']' ')' (rule start)
* (rule start) (ambiguity) '#' '[' elements+=XExpression
* (rule start) (ambiguity) '#' '{' '}' ')' (rule start)
* (rule start) (ambiguity) '#' '{' elements+=XExpression
* (rule start) (ambiguity) '<' typeArguments+=JvmArgumentTypeReference
* (rule start) (ambiguity) '[' declaredFormalParameters+=JvmFormalParameter
* (rule start) (ambiguity) '[' explicitSyntax?='|'
* (rule start) (ambiguity) '[' expression=XExpressionInClosure
* (rule start) (ambiguity) 'break' ')' (rule start)
* (rule start) (ambiguity) 'do' body=XExpression
* (rule start) (ambiguity) 'false' ')' (rule start)
* (rule start) (ambiguity) 'for' '(' ';' ';' ')' eachExpression=XExpression
* (rule start) (ambiguity) 'for' '(' ';' ';' updateExpressions+=XExpression
* (rule start) (ambiguity) 'for' '(' ';' expression=XExpression
* (rule start) (ambiguity) 'for' '(' declaredParam=SarlXLoopFormalParameter
* (rule start) (ambiguity) 'for' '(' initExpressions+=XExpressionOrVarDeclaration
* (rule start) (ambiguity) 'if' '(' if=XExpression
* (rule start) (ambiguity) 'new' constructor=[JvmConstructor|QualifiedName]
* (rule start) (ambiguity) 'null' ')' (rule start)
* (rule start) (ambiguity) 'return' ')' (rule start)
* (rule start) (ambiguity) 'return' expression=XExpression
* (rule start) (ambiguity) 'switch' '(' declaredParam=JvmFormalParameter
* (rule start) (ambiguity) 'switch' declaredParam=JvmFormalParameter
* (rule start) (ambiguity) 'switch' switch=XExpression
* (rule start) (ambiguity) 'synchronized' '(' param=XExpression
* (rule start) (ambiguity) 'throw' expression=XExpression
* (rule start) (ambiguity) 'try' expression=XExpression
* (rule start) (ambiguity) 'typeof' '(' type=[JvmType|QualifiedName]
* (rule start) (ambiguity) 'while' '(' predicate=XExpression
* (rule start) (ambiguity) '{' '}' ')' (rule start)
* (rule start) (ambiguity) '{' expressions+=XExpressionOrVarDeclaration
* (rule start) (ambiguity) expressions+=RichStringLiteral
* (rule start) (ambiguity) expressions+=RichStringLiteralStart
* (rule start) (ambiguity) feature=[JvmIdentifiableElement|FeatureCallID]
* (rule start) (ambiguity) feature=[JvmIdentifiableElement|IdOrSuper]
* (rule start) (ambiguity) feature=[JvmIdentifiableElement|OpUnary]
* (rule start) (ambiguity) isTrue?='true'
* (rule start) (ambiguity) value=Number
* (rule start) (ambiguity) value=STRING
* (rule start) (ambiguity) {AnonymousClass.constructorCall=}
* (rule start) (ambiguity) {XAssignment.assignable=}
* (rule start) (ambiguity) {XBinaryOperation.leftOperand=}
* (rule start) (ambiguity) {XCastedExpression.target=}
* (rule start) (ambiguity) {XInstanceOfExpression.expression=}
* (rule start) (ambiguity) {XMemberFeatureCall.memberCallTarget=}
* (rule start) (ambiguity) {XPostfixOperation.operand=}
*/
protected void emit_XParenthesizedExpression_LeftParenthesisKeyword_0_p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
}