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

The following examples show how to use org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractXbaseSyntacticSequencer.java    From xtext-extras with Eclipse Public License 2.0 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 #2
Source File: RegionAccessTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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 #3
Source File: BeeLangTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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 #4
Source File: SimpleUnorderedGroupsTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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 #5
Source File: TwoParametersTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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 #6
Source File: SyntacticSequencerPDAProvider.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
@Override
public List<AbstractElementAlias> getAmbiguousSyntaxes() {
	if (ambiguousSyntaxes != null)
		return ambiguousSyntaxes;
	if (!isSyntacticallyAmbiguous())
		return ambiguousSyntaxes = Collections.emptyList();
	ambiguousSyntaxes = Lists.newArrayList();
	AbstractElementAlias syntax = getAmbiguousSyntax();
	if (syntax instanceof GroupAlias) {
		GroupAlias group = (GroupAlias) syntax;
		for (AbstractElementAlias child : group.getChildren())
			if (child.isMany() || child.isOptional() || child instanceof AlternativeAlias)
				ambiguousSyntaxes.add(child);
	} else
		ambiguousSyntaxes.add(syntax);
	return ambiguousSyntaxes;
}
 
Example #7
Source File: UnorderedGroupsTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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 #8
Source File: NoParametersTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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 #9
Source File: XtextGrammarTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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_ParenthesizedAssignableElement_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_ParenthesizedAssignableElement_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParenthesizedAssignableElement_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_ParenthesizedAssignableElement_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParenthesizedCrossReferenceableElement_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_ParenthesizedCrossReferenceableElement_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParenthesizedCrossReferenceableElement_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_ParenthesizedCrossReferenceableElement_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParenthesizedElement_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_ParenthesizedElement_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParenthesizedElement_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_ParenthesizedElement_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParenthesizedTerminalElement_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_ParenthesizedTerminalElement_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParenthesizedTerminalElement_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_ParenthesizedTerminalElement_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #10
Source File: ParametersTestLanguageExSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 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_ParametersTestLanguageParserRuleParameters_TrailingKeyword_1_10_1_1_1_q.equals(syntax))
			emit_ParametersTestLanguageParserRuleParameters_TrailingKeyword_1_10_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParametersTestLanguageParserRuleParameters_TrailingKeyword_1_11_1_1_1_q.equals(syntax))
			emit_ParametersTestLanguageParserRuleParameters_TrailingKeyword_1_11_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParametersTestLanguageParserRuleParameters_TrailingKeyword_1_8_1_1_1_q.equals(syntax))
			emit_ParametersTestLanguageParserRuleParameters_TrailingKeyword_1_8_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParametersTestLanguageParserRuleParameters_TrailingKeyword_1_9_1_1_1_q.equals(syntax))
			emit_ParametersTestLanguageParserRuleParameters_TrailingKeyword_1_9_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Scenario5_IncludeKeyword_0_1_or_TrailingKeyword_1_1.equals(syntax))
			emit_Scenario5_IncludeKeyword_0_1_or_TrailingKeyword_1_1(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Scenario5_IncludeKeyword_2_2_0_q.equals(syntax))
			emit_Scenario5_IncludeKeyword_2_2_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #11
Source File: ParametersTestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 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_TrailingKeyword_1_10_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_TrailingKeyword_1_10_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_TrailingKeyword_1_11_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_TrailingKeyword_1_11_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_TrailingKeyword_1_8_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_TrailingKeyword_1_8_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_TrailingKeyword_1_9_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_TrailingKeyword_1_9_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Scenario5_IncludeKeyword_0_1_or_TrailingKeyword_1_1.equals(syntax))
			emit_Scenario5_IncludeKeyword_0_1_or_TrailingKeyword_1_1(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Scenario5_IncludeKeyword_2_2_0_q.equals(syntax))
			emit_Scenario5_IncludeKeyword_2_2_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #12
Source File: TwoParametersTestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 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_TrailingKeyword_1_10_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_TrailingKeyword_1_10_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_TrailingKeyword_1_11_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_TrailingKeyword_1_11_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_TrailingKeyword_1_8_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_TrailingKeyword_1_8_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_TrailingKeyword_1_9_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_TrailingKeyword_1_9_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Scenario10_IncludeKeyword_0_1_or_TrailingKeyword_1_1.equals(syntax))
			emit_Scenario10_IncludeKeyword_0_1_or_TrailingKeyword_1_1(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Scenario10_IncludeKeyword_2_2_0_q.equals(syntax))
			emit_Scenario10_IncludeKeyword_2_2_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Scenario5_IncludeKeyword_0_1_or_TrailingKeyword_1_1.equals(syntax))
			emit_Scenario5_IncludeKeyword_0_1_or_TrailingKeyword_1_1(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Scenario5_IncludeKeyword_2_2_0_q.equals(syntax))
			emit_Scenario5_IncludeKeyword_2_2_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #13
Source File: SimpleBeeLangTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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
Source File: SemverSyntacticSequencer.java    From n4js with Eclipse Public License 1.0 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_NPMVersionRequirement_WSTerminalRuleCall_0_0_q.equals(syntax))
			emit_NPMVersionRequirement_WSTerminalRuleCall_0_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_NPMVersionRequirement_WSTerminalRuleCall_1_1_q.equals(syntax))
			emit_NPMVersionRequirement_WSTerminalRuleCall_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_SimpleVersion_WSTerminalRuleCall_0_1_q.equals(syntax))
			emit_SimpleVersion_WSTerminalRuleCall_0_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_VersionRangeSetRequirement_WSTerminalRuleCall_1_1_0_q.equals(syntax))
			emit_VersionRangeSetRequirement_WSTerminalRuleCall_1_1_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_VersionRangeSetRequirement_WSTerminalRuleCall_1_1_2_q.equals(syntax))
			emit_VersionRangeSetRequirement_WSTerminalRuleCall_1_1_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_VersionRangeSetRequirement_WSTerminalRuleCall_1_2_q.equals(syntax))
			emit_VersionRangeSetRequirement_WSTerminalRuleCall_1_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #15
Source File: ParametersTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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 #16
Source File: Bug348427TestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 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 #17
Source File: SingleCodetemplateSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 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_Variable_WSTerminalRuleCall_1_a.equals(syntax))
			emit_Variable_WSTerminalRuleCall_1_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Variable_WSTerminalRuleCall_2_1_0_1_a.equals(syntax))
			emit_Variable_WSTerminalRuleCall_2_1_0_1_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Variable_WSTerminalRuleCall_2_1_2_a.equals(syntax))
			emit_Variable_WSTerminalRuleCall_2_1_2_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Variable_WSTerminalRuleCall_2_1_4_0_a.equals(syntax))
			emit_Variable_WSTerminalRuleCall_2_1_4_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Variable_WSTerminalRuleCall_2_1_4_2_a.equals(syntax))
			emit_Variable_WSTerminalRuleCall_2_1_4_2_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Variable_WSTerminalRuleCall_2_1_4_3_1_0_a.equals(syntax))
			emit_Variable_WSTerminalRuleCall_2_1_4_3_1_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Variable_WSTerminalRuleCall_2_1_4_3_1_2_a.equals(syntax))
			emit_Variable_WSTerminalRuleCall_2_1_4_3_1_2_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Variable_WSTerminalRuleCall_2_1_4_3_2_a.equals(syntax))
			emit_Variable_WSTerminalRuleCall_2_1_4_3_2_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Variable_WSTerminalRuleCall_3_a.equals(syntax))
			emit_Variable_WSTerminalRuleCall_3_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #18
Source File: FormatterTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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 #19
Source File: Bug311337TestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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 #20
Source File: AbstractUnassignedTextTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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 #21
Source File: BacktrackingLexerTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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 #22
Source File: ContentAssistNoTerminalExtensionTestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 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 #23
Source File: ActionTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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 #24
Source File: Bug443221TestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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 #25
Source File: Bug287184TestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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 #26
Source File: GH341TestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 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
Source File: ComplexReconstrTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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_Parens_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_Parens_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Parens_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_Parens_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #28
Source File: Bug289187TestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 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
Source File: Bug291022TestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 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_ModelElement_SemicolonKeyword_3_0_or___LeftCurlyBracketKeyword_3_1_0_RightCurlyBracketKeyword_3_1_2__.equals(syntax))
			emit_ModelElement_SemicolonKeyword_3_0_or___LeftCurlyBracketKeyword_3_1_0_RightCurlyBracketKeyword_3_1_2__(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_RootModel___LeftCurlyBracketKeyword_3_0_RightCurlyBracketKeyword_3_2__q.equals(syntax))
			emit_RootModel___LeftCurlyBracketKeyword_3_0_RightCurlyBracketKeyword_3_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #30
Source File: TransientValuesTestSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 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);
	}
}