Java Code Examples for org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias

The following are top voted examples for showing how to use org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: n4js   File: StableOrderSyntacticSequencerPDAProvider.java   View source code 6 votes vote down vote up
/**
 * Specialized to yield an {@link AbstractElementAlias} that has sorted alternatives where the occurrence in the
 * grammar defines the order of the output.
 */
@Override
public AbstractElementAlias getAmbiguousSyntax() {
	if (ambiguousSyntax != null)
		return ambiguousSyntax;
	Nfa<ISynState> nfa = getAmbiguousNfa();
	NfaToProduction prod = new NfaToProduction();

	// TODO remove with Xtext 2.13 if the patch makes it into the framework
	// FIX is here: We want to use a stable order
	Grammar grammar = getGrammar(nfa);
	GrammarElementDeclarationOrder order = GrammarElementDeclarationOrder.get(grammar);
	ambiguousSyntax = prod.nfaToGrammar(nfa, new GetGrammarElement(), order, new GrammarAliasFactory());
	// end fix
	return ambiguousSyntax;
}
 
Example 2
Project: n4js   File: TypesSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_PrimaryTypeExpression_LeftParenthesisKeyword_0_0_1_or___LeftParenthesisKeyword_3_0_q_LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__.equals(syntax))
			emit_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_PrimaryTypeExpression_LeftParenthesisKeyword_0_0_1_or___LeftParenthesisKeyword_3_0_q_LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_CallableCtor_SemicolonKeyword_3_q.equals(syntax))
			emit_CallableCtor_SemicolonKeyword_3_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_q.equals(syntax))
			emit_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_TAnnotation___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q.equals(syntax))
			emit_TAnnotation___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_TField_SemicolonKeyword_5_q.equals(syntax))
			emit_TField_SemicolonKeyword_5_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_TMethod_SemicolonKeyword_2_q.equals(syntax))
			emit_TMethod_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q.equals(syntax))
			emit_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 3
Project: n4js   File: TypeExpressionsSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_LeftParenthesisKeyword_0_0_1_or___LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__.equals(syntax))
			emit_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_LeftParenthesisKeyword_0_0_1_or___LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_a.equals(syntax))
			emit_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_p.equals(syntax))
			emit_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q.equals(syntax))
			emit_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 4
Project: n4js   File: RegularExpressionSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_Disjunction_VerticalLineKeyword_0_1_1_0_a.equals(syntax))
			emit_Disjunction_VerticalLineKeyword_0_1_1_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Disjunction_VerticalLineKeyword_0_1_1_0_p.equals(syntax))
			emit_Disjunction_VerticalLineKeyword_0_1_1_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Disjunction_VerticalLineKeyword_1_1_0_a.equals(syntax))
			emit_Disjunction_VerticalLineKeyword_1_1_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Disjunction_VerticalLineKeyword_1_1_0_p.equals(syntax))
			emit_Disjunction_VerticalLineKeyword_1_1_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 5
Project: jason-eclipse-plugin   File: AbstractAslSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_Body_formula___ExclamationMarkExclamationMarkKeyword_0_1_or_ExclamationMarkKeyword_0_0_or_QuestionMarkKeyword_0_2__q_or___HyphenMinusKeyword_0_4_0_PlusSignKeyword_0_4_1_q___or___PlusSignKeyword_0_3_0___GreaterThanSignKeyword_0_3_1_1_or_LessThanSignKeyword_0_3_1_2_or_PlusSignKeyword_0_3_1_0__q__.equals(syntax))
			emit_Body_formula___ExclamationMarkExclamationMarkKeyword_0_1_or_ExclamationMarkKeyword_0_0_or_QuestionMarkKeyword_0_2__q_or___HyphenMinusKeyword_0_4_0_PlusSignKeyword_0_4_1_q___or___PlusSignKeyword_0_3_0___GreaterThanSignKeyword_0_3_1_1_or_LessThanSignKeyword_0_3_1_2_or_PlusSignKeyword_0_3_1_0__q__(semanticObject, getLastNavigableState(), syntaxNodes);
		else if(match_Literal_ColonColonKeyword_0_0_1_q.equals(syntax))
			emit_Literal_ColonColonKeyword_0_0_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if(match_Plan_body_SemicolonKeyword_1_q.equals(syntax))
			emit_Plan_body_SemicolonKeyword_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if(match_Plan_term___LessThanSignHyphenMinusKeyword_2_3_0_or_SemicolonKeyword_2_3_1__q.equals(syntax))
			emit_Plan_term___LessThanSignHyphenMinusKeyword_2_3_0_or_SemicolonKeyword_2_3_1__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 6
Project: xtext-extras   File: PureXbaseSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_SpecialBlockExpression_SemicolonKeyword_1_1_q.equals(syntax))
			emit_SpecialBlockExpression_SemicolonKeyword_1_1_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);
	}
}
 
Example 7
Project: xtext-core   File: RegionAccessTestLanguageSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_Fragment_RecursionKeyword_2_0_a.equals(syntax))
			emit_Fragment_RecursionKeyword_2_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Mixed___LeftParenthesisKeyword_0___UnassignedKeyword_1_0___DatatypeParserRuleCall_1_1_1_or_IDTerminalRuleCall_1_1_0____q__a.equals(syntax))
			emit_Mixed___LeftParenthesisKeyword_0___UnassignedKeyword_1_0___DatatypeParserRuleCall_1_1_1_or_IDTerminalRuleCall_1_1_0____q__a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Mixed___LeftParenthesisKeyword_0___UnassignedKeyword_1_0___DatatypeParserRuleCall_1_1_1_or_IDTerminalRuleCall_1_1_0____q__p.equals(syntax))
			emit_Mixed___LeftParenthesisKeyword_0___UnassignedKeyword_1_0___DatatypeParserRuleCall_1_1_1_or_IDTerminalRuleCall_1_1_0____q__p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Parenthesized_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_Parenthesized_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Parenthesized_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_Parenthesized_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 8
Project: xtext-extras   File: Bug462047LangSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_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);
	}
}
 
Example 9
Project: xtext-extras   File: ContentAssistFragmentTestLangSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_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);
	}
}
 
Example 10
Project: Sparrow   File: ModelEditorSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_Access_AccessKeyword_1_0_or_AccessesKeyword_1_1.equals(syntax))
			emit_Access_AccessKeyword_1_0_or_AccessesKeyword_1_1(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Call_CallKeyword_1_0_or_CallsKeyword_1_1.equals(syntax))
			emit_Call_CallKeyword_1_0_or_CallsKeyword_1_1(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Class___BEGINTerminalRuleCall_5_0_ENDTerminalRuleCall_5_3__q.equals(syntax))
			emit_Class___BEGINTerminalRuleCall_5_0_ENDTerminalRuleCall_5_3__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Method___BEGINTerminalRuleCall_6_0_ENDTerminalRuleCall_6_5__q.equals(syntax))
			emit_Method___BEGINTerminalRuleCall_6_0_ENDTerminalRuleCall_6_5__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 11
Project: minitl   File: MinitlSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_ObjectTemplate_SemicolonKeyword_3_2_q.equals(syntax))
			emit_ObjectTemplate_SemicolonKeyword_3_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ObjectTemplate___LeftCurlyBracketKeyword_3_0_SemicolonKeyword_3_2_q_RightCurlyBracketKeyword_3_3__q.equals(syntax))
			emit_ObjectTemplate___LeftCurlyBracketKeyword_3_0_SemicolonKeyword_3_2_q_RightCurlyBracketKeyword_3_3__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Primary_LeftParenthesisKeyword_2_0_a.equals(syntax))
			emit_Primary_LeftParenthesisKeyword_2_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Primary_LeftParenthesisKeyword_2_0_p.equals(syntax))
			emit_Primary_LeftParenthesisKeyword_2_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 12
Project: xtext-core   File: PartialSerializationTestLanguageSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_Node_RefsKeyword_3_0_q.equals(syntax))
			emit_Node_RefsKeyword_3_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Node_SemicolonKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_3__.equals(syntax))
			emit_Node_SemicolonKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_3__(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_OptionalValue_Kw1Keyword_1_q.equals(syntax))
			emit_OptionalValue_Kw1Keyword_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_OptionalValue_Kw2Keyword_3_q.equals(syntax))
			emit_OptionalValue_Kw2Keyword_3_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 13
Project: xtext-core   File: ExBeeLangTestLanguageSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_ClosureExpression_VerticalLineKeyword_2_0_0_q.equals(syntax))
			emit_ClosureExpression_VerticalLineKeyword_2_0_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ConstructorCallExpression___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q.equals(syntax))
			emit_ConstructorCallExpression___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Function___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q.equals(syntax))
			emit_Function___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParanthesizedExpression_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_ParanthesizedExpression_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParanthesizedExpression_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_ParanthesizedExpression_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ProvidedCapability___LeftCurlyBracketKeyword_2_0_RightCurlyBracketKeyword_2_2__q.equals(syntax))
			emit_ProvidedCapability___LeftCurlyBracketKeyword_2_0_RightCurlyBracketKeyword_2_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 14
Project: xtext-core   File: BeeLangTestLanguageSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_ClosureExpression_VerticalLineKeyword_2_0_0_q.equals(syntax))
			emit_ClosureExpression_VerticalLineKeyword_2_0_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ConstructorCallExpression___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q.equals(syntax))
			emit_ConstructorCallExpression___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Function___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q.equals(syntax))
			emit_Function___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParanthesizedExpression_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_ParanthesizedExpression_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParanthesizedExpression_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_ParanthesizedExpression_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ProvidedCapability___LeftCurlyBracketKeyword_2_0_RightCurlyBracketKeyword_2_2__q.equals(syntax))
			emit_ProvidedCapability___LeftCurlyBracketKeyword_2_0_RightCurlyBracketKeyword_2_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 15
Project: xtext-core   File: SimpleBeeLangTestLanguageSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_ClosureExpression_VerticalLineKeyword_2_0_0_q.equals(syntax))
			emit_ClosureExpression_VerticalLineKeyword_2_0_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ConstructorCallExpression___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q.equals(syntax))
			emit_ConstructorCallExpression___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Function___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q.equals(syntax))
			emit_Function___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParanthesizedExpression_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_ParanthesizedExpression_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParanthesizedExpression_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_ParanthesizedExpression_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ProvidedCapability___LeftCurlyBracketKeyword_2_0_RightCurlyBracketKeyword_2_2__q.equals(syntax))
			emit_ProvidedCapability___LeftCurlyBracketKeyword_2_0_RightCurlyBracketKeyword_2_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 16
Project: xtext-core   File: ParametersTestLanguageSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_ParserRuleParameters_KeywordKeyword_1_10_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_KeywordKeyword_1_10_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_KeywordKeyword_1_11_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_KeywordKeyword_1_11_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_KeywordKeyword_1_8_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_KeywordKeyword_1_8_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_KeywordKeyword_1_9_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_KeywordKeyword_1_9_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 17
Project: xtext-core   File: TwoParametersTestLanguageSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_ParserRuleParameters_KeywordKeyword_1_10_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_KeywordKeyword_1_10_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_KeywordKeyword_1_11_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_KeywordKeyword_1_11_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_KeywordKeyword_1_8_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_KeywordKeyword_1_8_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_KeywordKeyword_1_9_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_KeywordKeyword_1_9_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 18
Project: xtext-core   File: NoParametersTestLanguageSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_ParserRuleParameters_KeywordKeyword_1_10_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_KeywordKeyword_1_10_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_KeywordKeyword_1_11_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_KeywordKeyword_1_11_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_KeywordKeyword_1_8_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_KeywordKeyword_1_8_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_KeywordKeyword_1_9_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_KeywordKeyword_1_9_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 19
Project: xtext-core   File: UnorderedGroupsTestLanguageSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_Model_Bug302585Keyword_1_16_0_or_DigitFiveKeyword_1_4_0_or_DigitFourKeyword_1_3_0_or_DigitOneDigitOneKeyword_1_10_0_or_DigitOneDigitZeroKeyword_1_9_0_or_DigitSevenKeyword_1_6_0_or_DigitSixKeyword_1_5_0_or_DigitThreeKeyword_1_2_0.equals(syntax))
			emit_Model_Bug302585Keyword_1_16_0_or_DigitFiveKeyword_1_4_0_or_DigitFourKeyword_1_3_0_or_DigitOneDigitOneKeyword_1_10_0_or_DigitOneDigitZeroKeyword_1_9_0_or_DigitSevenKeyword_1_6_0_or_DigitSixKeyword_1_5_0_or_DigitThreeKeyword_1_2_0(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_UnorderedSerialization_DigitOneKeyword_1_0_0_0_a.equals(syntax))
			emit_UnorderedSerialization_DigitOneKeyword_1_0_0_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_UnorderedSerialization_DigitOneKeyword_1_0_0_0_p.equals(syntax))
			emit_UnorderedSerialization_DigitOneKeyword_1_0_0_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_UnorderedSerialization___DigitOneKeyword_1_0_0_0_p_or_DigitThreeKeyword_1_2_0_or_DigitTwoKeyword_1_1_0__q.equals(syntax))
			emit_UnorderedSerialization___DigitOneKeyword_1_0_0_0_p_or_DigitThreeKeyword_1_2_0_or_DigitTwoKeyword_1_1_0__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 20
Project: xtext-core   File: AbstractBacktrackingBug325745TestLanguageSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_Expression_LeftSquareBracketKeyword_1_0_a.equals(syntax))
			emit_Expression_LeftSquareBracketKeyword_1_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Expression_LeftSquareBracketKeyword_2_0_q.equals(syntax))
			emit_Expression_LeftSquareBracketKeyword_2_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Expression_RightSquareBracketKeyword_2_2_q.equals(syntax))
			emit_Expression_RightSquareBracketKeyword_2_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Expression_RightSquareBracketKeyword_3_0_a.equals(syntax))
			emit_Expression_RightSquareBracketKeyword_3_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_SimpleTerm_AsteriskKeyword_0_1_q.equals(syntax))
			emit_SimpleTerm_AsteriskKeyword_0_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_SimpleTerm_ExclamationMarkKeyword_0_3_q.equals(syntax))
			emit_SimpleTerm_ExclamationMarkKeyword_0_3_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 21
Project: xtext-core   File: ExUnorderedGroupsTestLanguageSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_Model_Bug302585Keyword_1_16_0_or_DigitFiveKeyword_1_4_0_or_DigitFourKeyword_1_3_0_or_DigitOneDigitOneKeyword_1_10_0_or_DigitOneDigitZeroKeyword_1_9_0_or_DigitSevenKeyword_1_6_0_or_DigitSixKeyword_1_5_0_or_DigitThreeKeyword_1_2_0.equals(syntax))
			emit_Model_Bug302585Keyword_1_16_0_or_DigitFiveKeyword_1_4_0_or_DigitFourKeyword_1_3_0_or_DigitOneDigitOneKeyword_1_10_0_or_DigitOneDigitZeroKeyword_1_9_0_or_DigitSevenKeyword_1_6_0_or_DigitSixKeyword_1_5_0_or_DigitThreeKeyword_1_2_0(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_UnorderedSerialization_DigitOneKeyword_1_0_0_0_a.equals(syntax))
			emit_UnorderedSerialization_DigitOneKeyword_1_0_0_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_UnorderedSerialization_DigitOneKeyword_1_0_0_0_p.equals(syntax))
			emit_UnorderedSerialization_DigitOneKeyword_1_0_0_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_UnorderedSerialization___DigitOneKeyword_1_0_0_0_p_or_DigitThreeKeyword_1_2_0_or_DigitTwoKeyword_1_1_0__q.equals(syntax))
			emit_UnorderedSerialization___DigitOneKeyword_1_0_0_0_p_or_DigitThreeKeyword_1_2_0_or_DigitTwoKeyword_1_1_0__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 22
Project: xtext-core   File: SimpleBacktrackingBug325745TestLanguageSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_Expression_LeftSquareBracketKeyword_1_0_a.equals(syntax))
			emit_Expression_LeftSquareBracketKeyword_1_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Expression_LeftSquareBracketKeyword_2_0_q.equals(syntax))
			emit_Expression_LeftSquareBracketKeyword_2_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Expression_RightSquareBracketKeyword_2_2_q.equals(syntax))
			emit_Expression_RightSquareBracketKeyword_2_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Expression_RightSquareBracketKeyword_3_0_a.equals(syntax))
			emit_Expression_RightSquareBracketKeyword_3_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_SimpleTerm_AsteriskKeyword_0_1_q.equals(syntax))
			emit_SimpleTerm_AsteriskKeyword_0_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_SimpleTerm_ExclamationMarkKeyword_0_3_q.equals(syntax))
			emit_SimpleTerm_ExclamationMarkKeyword_0_3_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 23
Project: dsl-devkit   File: AbstractCheckCfgSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_CheckConfiguration___LeftCurlyBracketKeyword_5_0_RightCurlyBracketKeyword_5_2__q.equals(syntax))
			emit_CheckConfiguration___LeftCurlyBracketKeyword_5_0_RightCurlyBracketKeyword_5_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);
	}
}
 
Example 24
Project: dsl-devkit   File: AbstractFormatSyntacticSequencer.java   View source code 6 votes vote down vote up
@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_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);
	}
}
 
Example 25
Project: pokemon-tcgo-deck-generator   File: PkmntcgoSyntacticSequencer.java   View source code 5 votes vote down vote up
@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_Pokemon_PkmnKeyword_1_1_or_PokemonKeyword_1_0.equals(syntax))
			emit_Pokemon_PkmnKeyword_1_1_or_PokemonKeyword_1_0(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Trainer_TrainerKeyword_1_0_or_TrnrKeyword_1_1.equals(syntax))
			emit_Trainer_TrainerKeyword_1_0_or_TrnrKeyword_1_1(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 26
Project: n4js   File: UnicodeSyntacticSequencer.java   View source code 5 votes vote down vote up
@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);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 27
Project: n4js   File: N4MFSyntacticSequencer.java   View source code 5 votes vote down vote up
@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_ProjectDescription___RightCurlyBracketKeyword_17_3_SourcesKeyword_17_0_LeftCurlyBracketKeyword_17_1__q.equals(syntax))
			emit_ProjectDescription___RightCurlyBracketKeyword_17_3_SourcesKeyword_17_0_LeftCurlyBracketKeyword_17_1__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ProjectDescription___RightCurlyBracketKeyword_18_3_ModuleFiltersKeyword_18_0_LeftCurlyBracketKeyword_18_1__q.equals(syntax))
			emit_ProjectDescription___RightCurlyBracketKeyword_18_3_ModuleFiltersKeyword_18_0_LeftCurlyBracketKeyword_18_1__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_VersionConstraint_RightParenthesisKeyword_0_2_1_q.equals(syntax))
			emit_VersionConstraint_RightParenthesisKeyword_0_2_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 28
Project: Xtext_Xtend_HTML_Generator   File: MyDslSyntacticSequencer.java   View source code 5 votes vote down vote up
@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);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 29
Project: bromium   File: BromiumSyntacticSequencer.java   View source code 5 votes vote down vote up
@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);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 30
Project: gw4e.project   File: DSLPoliciesSyntacticSequencer.java   View source code 5 votes vote down vote up
@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_Model_NEWLINETerminalRuleCall_0_1_0_a.equals(syntax))
			emit_Model_NEWLINETerminalRuleCall_0_1_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Model_NEWLINETerminalRuleCall_1_a.equals(syntax))
			emit_Model_NEWLINETerminalRuleCall_1_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Model___NEWLINETerminalRuleCall_0_0_0_a_CommentParserRuleCall_0_0_1__q.equals(syntax))
			emit_Model___NEWLINETerminalRuleCall_0_0_0_a_CommentParserRuleCall_0_0_1__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_PathGeneratorStopCondition_WSTerminalRuleCall_5_a.equals(syntax))
			emit_PathGeneratorStopCondition_WSTerminalRuleCall_5_a(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);
	}
}
 
Example 31
Project: lcdsl   File: LcDslSyntacticSequencer.java   View source code 5 votes vote down vote up
@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);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 32
Project: Saturn   File: KronusSyntacticSequencer.java   View source code 5 votes vote down vote up
@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_Primary_LeftParenthesisKeyword_1_0_a.equals(syntax))
			emit_Primary_LeftParenthesisKeyword_1_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if(match_Primary_LeftParenthesisKeyword_1_0_p.equals(syntax))
			emit_Primary_LeftParenthesisKeyword_1_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 33
Project: gemoc-studio   File: DslSyntacticSequencer.java   View source code 5 votes vote down vote up
@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_Dsl_LineFeedKeyword_7_q.equals(syntax))
			emit_Dsl_LineFeedKeyword_7_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Dsl_SPACETerminalRuleCall_0_a.equals(syntax))
			emit_Dsl_SPACETerminalRuleCall_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Dsl_SPACETerminalRuleCall_2_a.equals(syntax))
			emit_Dsl_SPACETerminalRuleCall_2_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Dsl_SPACETerminalRuleCall_4_a.equals(syntax))
			emit_Dsl_SPACETerminalRuleCall_4_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Dsl_SPACETerminalRuleCall_6_a.equals(syntax))
			emit_Dsl_SPACETerminalRuleCall_6_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Entry_LineFeedKeyword_7_q.equals(syntax))
			emit_Entry_LineFeedKeyword_7_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Entry_SPACETerminalRuleCall_0_a.equals(syntax))
			emit_Entry_SPACETerminalRuleCall_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Entry_SPACETerminalRuleCall_2_a.equals(syntax))
			emit_Entry_SPACETerminalRuleCall_2_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Entry_SPACETerminalRuleCall_4_a.equals(syntax))
			emit_Entry_SPACETerminalRuleCall_4_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Entry_SPACETerminalRuleCall_6_a.equals(syntax))
			emit_Entry_SPACETerminalRuleCall_6_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 34
Project: gemoc-studio   File: AbstractGExpressionsSyntacticSequencer.java   View source code 5 votes vote down vote up
@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_GProgram_SemicolonKeyword_1_1_0_q.equals(syntax))
			emit_GProgram_SemicolonKeyword_1_1_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 35
Project: org.xtext.dsl.restaurante   File: RestauranteSyntacticSequencer.java   View source code 5 votes vote down vote up
@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);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 36
Project: OCCI-Studio   File: OCCISyntacticSequencer.java   View source code 5 votes vote down vote up
@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_Extension___AsKeyword_6_2_0_IDTerminalRuleCall_6_2_1__q.equals(syntax))
			emit_Extension___AsKeyword_6_2_0_IDTerminalRuleCall_6_2_1__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 37
Project: SurveyDSL   File: AbstractQueryITSyntacticSequencer.java   View source code 5 votes vote down vote up
@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);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 38
Project: jason-eclipse-plugin   File: AbstractMas2jSyntacticSequencer.java   View source code 5 votes vote down vote up
@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);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 39
Project: xtext-core   File: FormatterTestLanguageSyntacticSequencer.java   View source code 5 votes vote down vote up
@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);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example 40
Project: xtext-extras   File: AbstractXtypeSyntacticSequencer.java   View source code 5 votes vote down vote up
@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_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 acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}