当前位置: 首页>>代码示例>>Java>>正文


Java ISynTransition.getAmbiguousSyntaxes方法代码示例

本文整理汇总了Java中org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition.getAmbiguousSyntaxes方法的典型用法代码示例。如果您正苦于以下问题:Java ISynTransition.getAmbiguousSyntaxes方法的具体用法?Java ISynTransition.getAmbiguousSyntaxes怎么用?Java ISynTransition.getAmbiguousSyntaxes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition的用法示例。


在下文中一共展示了ISynTransition.getAmbiguousSyntaxes方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; //导入方法依赖的package包/类
@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);
	}
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:24,代码来源:TypesSyntacticSequencer.java

示例2: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; //导入方法依赖的package包/类
@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);
	}
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:18,代码来源:TypeExpressionsSyntacticSequencer.java

示例3: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; //导入方法依赖的package包/类
@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);
	}
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:18,代码来源:RegularExpressionSyntacticSequencer.java

示例4: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; //导入方法依赖的package包/类
@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_KeywordKeyword_1_10_1_1_1_q.equals(syntax))
			emit_ParametersTestLanguageParserRuleParameters_KeywordKeyword_1_10_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParametersTestLanguageParserRuleParameters_KeywordKeyword_1_11_1_1_1_q.equals(syntax))
			emit_ParametersTestLanguageParserRuleParameters_KeywordKeyword_1_11_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParametersTestLanguageParserRuleParameters_KeywordKeyword_1_8_1_1_1_q.equals(syntax))
			emit_ParametersTestLanguageParserRuleParameters_KeywordKeyword_1_8_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParametersTestLanguageParserRuleParameters_KeywordKeyword_1_9_1_1_1_q.equals(syntax))
			emit_ParametersTestLanguageParserRuleParameters_KeywordKeyword_1_9_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:18,代码来源:ParametersTestLanguageExSyntacticSequencer.java

示例5: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; //导入方法依赖的package包/类
@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);
	}
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:22,代码来源:Bug462047LangSyntacticSequencer.java

示例6: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; //导入方法依赖的package包/类
@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);
	}
}
 
开发者ID:rehne93,项目名称:pokemon-tcgo-deck-generator,代码行数:14,代码来源:PkmntcgoSyntacticSequencer.java

示例7: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; //导入方法依赖的package包/类
@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);
	}
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:10,代码来源:UnicodeSyntacticSequencer.java

示例8: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; //导入方法依赖的package包/类
@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);
	}
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:16,代码来源:N4MFSyntacticSequencer.java

示例9: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; //导入方法依赖的package包/类
@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);
	}
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:30,代码来源:DSLPoliciesSyntacticSequencer.java

示例10: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; //导入方法依赖的package包/类
@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);
	}
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:14,代码来源:KronusSyntacticSequencer.java

示例11: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; //导入方法依赖的package包/类
@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);
	}
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:30,代码来源:DslSyntacticSequencer.java

示例12: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; //导入方法依赖的package包/类
@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);
	}
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:12,代码来源:AbstractGExpressionsSyntacticSequencer.java

示例13: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; //导入方法依赖的package包/类
@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);
	}
}
 
开发者ID:occiware,项目名称:OCCI-Studio,代码行数:12,代码来源:OCCISyntacticSequencer.java

示例14: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; //导入方法依赖的package包/类
@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_INTTerminalRuleCall_1_p.equals(syntax))
			emit_Model_INTTerminalRuleCall_1_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:12,代码来源:UnassignedRuleCallTestLanguageSyntacticSequencer.java

示例15: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; //导入方法依赖的package包/类
@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_TreeNode___INDENTTerminalRuleCall_1_0_DEDENTTerminalRuleCall_1_2__q.equals(syntax))
			emit_TreeNode___INDENTTerminalRuleCall_1_0_DEDENTTerminalRuleCall_1_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:12,代码来源:AbstractIndentationAwareTestLanguageSyntacticSequencer.java


注:本文中的org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition.getAmbiguousSyntaxes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。