org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable Java Examples

The following examples show how to use org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable. 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: AbstractSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
protected void acceptNodes(ISynNavigable fromState, INode fromNode, INode toNode) {
	RuleCallStack stack = contexts.peek().stack.clone();
	List<INode> nodes = collectNodes(fromNode, toNode);
	if (nodes != null) {
		for (INode next : nodes) {
			List<ISynState> path = fromState.getShortestPathTo((AbstractElement) next.getGrammarElement(), stack);
			if (path != null) {
				if (path.get(path.size() - 1) instanceof ISynEmitterState)
					fromState = (ISynEmitterState) path.get(path.size() - 1);
				else
					return;
				acceptNode(next);
			}
		}
	}
}
 
Example #2
Source File: ThingSyntacticSequencerExtension.java    From smarthome with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emit_ModelThing_ThingKeyword_0_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
    ILeafNode node = nodes != null && nodes.size() == 1 && nodes.get(0) instanceof ILeafNode ? (ILeafNode) nodes
            .get(0) : null;
    Keyword keyword = grammarAccess.getModelThingAccess().getThingKeyword_0();
    acceptUnassignedKeyword(keyword, keyword.getValue(), node);
}
 
Example #3
Source File: Bug291022TestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     ';' | ('{' '}')
 *
 * This ambiguous syntax occurs at:
 *     firstReference=[ModelElement|ID] (ambiguity) (rule end)
 *     name=ID (ambiguity) (rule end)
 *     secondReference=[ModelElement|ID] (ambiguity) (rule end)
 */
protected void emit_ModelElement_SemicolonKeyword_3_0_or___LeftCurlyBracketKeyword_3_1_0_RightCurlyBracketKeyword_3_1_2__(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #4
Source File: ParametersTestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     'trailing'?
 *
 * This ambiguous syntax occurs at:
 *     scenario=Scenario2 (ambiguity) (rule end)
 */
protected void emit_ParserRuleParameters_TrailingKeyword_1_10_1_1_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #5
Source File: Bug348199TestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     NL+
 *
 * This ambiguous syntax occurs at:
 *     time+=TimeDef1 (ambiguity) 'otherelement' alias+=ID
 *     time+=TimeDef1 (ambiguity) 'timeperiod_name' name+=ID
 *     time+=TimeDef1 (ambiguity) time+=TimeDef1
 */
protected void emit_Timeperiod_NLTerminalRuleCall_3_6_3_1_p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #6
Source File: Bug303200TestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     LT*
 *
 * This ambiguous syntax occurs at:
 *     (rule start) '(' (ambiguity) ')' (rule start)
 *     (rule start) '(' (ambiguity) params+=ID
 */
protected void emit_Parameters_LTTerminalRuleCall_2_a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #7
Source File: TwoParametersTestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     'include' | 'trailing'
 *
 * This ambiguous syntax occurs at:
 *     (rule start) (ambiguity) (rule start)
 */
protected void emit_Scenario5_IncludeKeyword_0_1_or_TrailingKeyword_1_1(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #8
Source File: SimpleBeeLangTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     ('(' ')')?
 *
 * This ambiguous syntax occurs at:
 *     name=ID (ambiguity) ':' funcExpr=Expression
 *     name=ID (ambiguity) 'when' guard=GuardExpression
 *     name=ID (ambiguity) funcExpr=BlockExpression
 */
protected void emit_Function___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #9
Source File: AbstractFormatSyntacticSequencer.java    From dsl-devkit with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     ';'?
 *
 * This ambiguous syntax occurs at:
 *     expressions+=XExpressionOrVarDeclaration (ambiguity) (rule end)
 *     expressions+=XExpressionOrVarDeclaration (ambiguity) expressions+=XExpressionOrVarDeclaration
 */
protected void emit_XExpressionInClosure_SemicolonKeyword_1_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #10
Source File: RenameTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     ('{' '}')?
 *
 * This ambiguous syntax occurs at:
 *     name=ID (ambiguity) (rule end)
 *     superType=[TypeDeclaration|ID] (ambiguity) (rule end)
 */
protected void emit_TypeDeclaration___LeftCurlyBracketKeyword_3_0_RightCurlyBracketKeyword_3_1__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #11
Source File: Bug303200TestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     LT*
 *
 * This ambiguous syntax occurs at:
 *     (rule start) (ambiguity) (rule start)
 *     directives+=ProgramDirective (ambiguity) (rule end)
 */
protected void emit_Program_LTTerminalRuleCall_2_a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #12
Source File: AbstractSyntacticSequencerTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     (
  *         'kw1' | 
  *         'kw2' | 
  *         'kw3' | 
  *         'kw4' | 
  *         'kw5' | 
  *         'kw6' | 
  *         'kw7' | 
  *         'kw8'
  *     )*
 *
 * This ambiguous syntax occurs at:
 *     foo=ID (ambiguity) '!' (rule end)
 *     val1+=ID (ambiguity) '!' (rule end)
 *     val2+=ID (ambiguity) '!' (rule end)
 *     val3+=ID (ambiguity) '!' (rule end)
 *     val4+=ID (ambiguity) '!' (rule end)
 *     val5+=ID (ambiguity) '!' (rule end)
 *     val6+=ID (ambiguity) '!' (rule end)
 *     val7+=ID (ambiguity) '!' (rule end)
 *     val8+=ID (ambiguity) '!' (rule end)
 */
protected void emit_LongAlternative___Kw1Keyword_2_0_0_or_Kw2Keyword_2_1_0_or_Kw3Keyword_2_2_0_or_Kw4Keyword_2_3_0_or_Kw5Keyword_2_4_0_or_Kw6Keyword_2_5_0_or_Kw7Keyword_2_6_0_or_Kw8Keyword_2_7_0__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #13
Source File: Bug303200TestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     LT*
 *
 * This ambiguous syntax occurs at:
 *     (rule start) (ambiguity) directives+=ProgramDirective
 *     directives+=ProgramDirective (ambiguity) directives+=ProgramDirective
 */
protected void emit_Program_LTTerminalRuleCall_1_0_a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #14
Source File: ExBeeLangTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     '('+
 *
 * This ambiguous syntax occurs at:
 *     (rule start) (ambiguity) 'cached' expr=OrExpression
 *     (rule start) (ambiguity) 'new' typeExpr=ID
 *     (rule start) (ambiguity) 'with' ':' funcExpr=Expression
 *     (rule start) (ambiguity) 'with' 'context' expr=Expression
 *     (rule start) (ambiguity) 'with' '{' funcExpr=BlockExpressionWithoutBrackets
 *     (rule start) (ambiguity) 'with' referencedAdvice+=ID
 *     (rule start) (ambiguity) '{' '<' returnType=TypeRef
 *     (rule start) (ambiguity) '{' '|' funcExpr=OneOrManyExpressions
 *     (rule start) (ambiguity) '{' '|'? parameters+=ParameterDeclaration
 *     (rule start) (ambiguity) '{' '}' ')' (rule start)
 *     (rule start) (ambiguity) '{' expressions+=TopLevelExpression
 *     (rule start) (ambiguity) '{' varArgs?='...'
 *     (rule start) (ambiguity) functionName='!'
 *     (rule start) (ambiguity) functionName='++'
 *     (rule start) (ambiguity) functionName='-'
 *     (rule start) (ambiguity) functionName='--'
 *     (rule start) (ambiguity) name='builder'
 *     (rule start) (ambiguity) name='input'
 *     (rule start) (ambiguity) name='output'
 *     (rule start) (ambiguity) name='properties'
 *     (rule start) (ambiguity) name='source'
 *     (rule start) (ambiguity) name='this'
 *     (rule start) (ambiguity) name='unit'
 *     (rule start) (ambiguity) name=ID
 *     (rule start) (ambiguity) value=STRING
 *     (rule start) (ambiguity) {AndExpression.leftExpr=}
 *     (rule start) (ambiguity) {AssignmentExpression.leftExpr=}
 *     (rule start) (ambiguity) {AtExpression.objExpr=}
 *     (rule start) (ambiguity) {BinaryOpExpression.leftExpr=}
 *     (rule start) (ambiguity) {CallFeature.funcExpr=}
 *     (rule start) (ambiguity) {CallFunction.funcExpr=}
 *     (rule start) (ambiguity) {FeatureExpression.objExpr=}
 *     (rule start) (ambiguity) {OrExpression.leftExpr=}
 *     (rule start) (ambiguity) {UnaryPostOpExpression.expr=}
 */
protected void emit_ParanthesizedExpression_LeftParenthesisKeyword_0_p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #15
Source File: AbstractXbaseSyntacticSequencer.java    From xtext-extras with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     ';'?
 *
 * This ambiguous syntax occurs at:
 *     importedNamespace=QualifiedNameWithWildcard (ambiguity) (rule end)
 *     importedType=[JvmDeclaredType|QualifiedName] (ambiguity) (rule end)
 *     memberName=ValidID (ambiguity) (rule end)
 *     wildcard?='*' (ambiguity) (rule end)
 */
protected void emit_XImportDeclaration_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #16
Source File: Bug304681TestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     ('parameters' ';')+
 *
 * This ambiguous syntax occurs at:
 *     type=ID '{' (ambiguity) '}' (rule end)
 */
protected void emit_ConstraintDefinition___ParametersKeyword_3_0_0_SemicolonKeyword_3_0_2__p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #17
Source File: SARLSyntacticSequencer.java    From sarl with Apache License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     ('(' ')')?
 *
 * This ambiguous syntax occurs at:
 *     modifiers+=CommonModifier 'new' (ambiguity) 'throws' exceptions+=JvmTypeReference
 *     modifiers+=CommonModifier 'new' (ambiguity) 'with' typeParameters+=JvmTypeParameter
 *     modifiers+=CommonModifier 'new' (ambiguity) expression=XBlockExpression
 *     typeParameters+=JvmTypeParameter '>' (ambiguity) 'throws' exceptions+=JvmTypeReference
 *     typeParameters+=JvmTypeParameter '>' (ambiguity) 'with' typeParameters+=JvmTypeParameter
 *     typeParameters+=JvmTypeParameter '>' (ambiguity) expression=XBlockExpression
 *     {SarlConstructor.annotationInfo=} 'new' (ambiguity) 'throws' exceptions+=JvmTypeReference
 *     {SarlConstructor.annotationInfo=} 'new' (ambiguity) 'with' typeParameters+=JvmTypeParameter
 *     {SarlConstructor.annotationInfo=} 'new' (ambiguity) expression=XBlockExpression
 */
protected void emit_EventMember___LeftParenthesisKeyword_2_1_4_0_RightParenthesisKeyword_2_1_4_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #18
Source File: AbstractDomainmodelSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     '('+
 *
 * This ambiguous syntax occurs at:
 *     (rule start) (ambiguity) '#' '[' ']' ')' (rule start)
 *     (rule start) (ambiguity) '#' '[' elements+=XExpression
 *     (rule start) (ambiguity) '#' '{' '}' ')' (rule start)
 *     (rule start) (ambiguity) '#' '{' elements+=XExpression
 *     (rule start) (ambiguity) '<' typeArguments+=JvmArgumentTypeReference
 *     (rule start) (ambiguity) '[' declaredFormalParameters+=JvmFormalParameter
 *     (rule start) (ambiguity) '[' explicitSyntax?='|'
 *     (rule start) (ambiguity) '[' expression=XExpressionInClosure
 *     (rule start) (ambiguity) 'do' body=XExpression
 *     (rule start) (ambiguity) 'false' ')' (rule start)
 *     (rule start) (ambiguity) 'for' '(' ';' ';' ')' eachExpression=XExpression
 *     (rule start) (ambiguity) 'for' '(' ';' ';' updateExpressions+=XExpression
 *     (rule start) (ambiguity) 'for' '(' ';' expression=XExpression
 *     (rule start) (ambiguity) 'for' '(' declaredParam=JvmFormalParameter
 *     (rule start) (ambiguity) 'for' '(' initExpressions+=XExpressionOrVarDeclaration
 *     (rule start) (ambiguity) 'if' '(' if=XExpression
 *     (rule start) (ambiguity) 'new' constructor=[JvmConstructor|QualifiedName]
 *     (rule start) (ambiguity) 'null' ')' (rule start)
 *     (rule start) (ambiguity) 'return' ')' (rule start)
 *     (rule start) (ambiguity) 'return' expression=XExpression
 *     (rule start) (ambiguity) 'switch' '(' declaredParam=JvmFormalParameter
 *     (rule start) (ambiguity) 'switch' declaredParam=JvmFormalParameter
 *     (rule start) (ambiguity) 'switch' switch=XExpression
 *     (rule start) (ambiguity) 'synchronized' '(' param=XExpression
 *     (rule start) (ambiguity) 'throw' expression=XExpression
 *     (rule start) (ambiguity) 'try' expression=XExpression
 *     (rule start) (ambiguity) 'typeof' '(' type=[JvmType|QualifiedName]
 *     (rule start) (ambiguity) 'while' '(' predicate=XExpression
 *     (rule start) (ambiguity) '{' '}' ')' (rule start)
 *     (rule start) (ambiguity) '{' expressions+=XExpressionOrVarDeclaration
 *     (rule start) (ambiguity) feature=[JvmIdentifiableElement|FeatureCallID]
 *     (rule start) (ambiguity) feature=[JvmIdentifiableElement|IdOrSuper]
 *     (rule start) (ambiguity) feature=[JvmIdentifiableElement|OpUnary]
 *     (rule start) (ambiguity) isTrue?='true'
 *     (rule start) (ambiguity) value=Number
 *     (rule start) (ambiguity) value=STRING
 *     (rule start) (ambiguity) {XAssignment.assignable=}
 *     (rule start) (ambiguity) {XBinaryOperation.leftOperand=}
 *     (rule start) (ambiguity) {XCastedExpression.target=}
 *     (rule start) (ambiguity) {XInstanceOfExpression.expression=}
 *     (rule start) (ambiguity) {XMemberFeatureCall.memberCallTarget=}
 *     (rule start) (ambiguity) {XPostfixOperation.operand=}
 */
protected void emit_XParenthesizedExpression_LeftParenthesisKeyword_0_p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #19
Source File: Bug348199TestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     NL+
 *
 * This ambiguous syntax occurs at:
 *     alias+=ID (ambiguity) time+=TimeDef3
 *     time+=TimeDef3 (ambiguity) time+=TimeDef3
 */
protected void emit_Timeperiod_NLTerminalRuleCall_3_2_3_1_3_0_p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #20
Source File: ExBeeLangTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     ('(' ')')?
 *
 * This ambiguous syntax occurs at:
 *     name=ID (ambiguity) ':' funcExpr=Expression
 *     name=ID (ambiguity) 'when' guard=GuardExpression
 *     name=ID (ambiguity) funcExpr=BlockExpression
 */
protected void emit_Function___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #21
Source File: Bug299395TestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     ('}' '{')*
 *
 * This ambiguous syntax occurs at:
 *     (rule start) '{' (ambiguity) strings+=STRING
 */
protected void emit_Model___RightCurlyBracketKeyword_1_2_LeftCurlyBracketKeyword_1_0__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #22
Source File: AbstractEntitiesSyntacticSequencer.java    From xtext-web with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     ('(' ')')?
 *
 * This ambiguous syntax occurs at:
 *     (rule start) (ambiguity) '=>' returnType=JvmTypeReference
 */
protected void emit_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #23
Source File: YangSyntacticSequencer.java    From yang-design-studio with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Syntax:
 *     ('{' '}') | ';'
 */
protected void emit_ContactStatement_SemicolonKeyword_2_0_or___LeftCurlyBracketKeyword_2_1_0_RightCurlyBracketKeyword_2_1_2__(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #24
Source File: PureXbaseSyntacticSequencer.java    From xtext-extras with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     ';'?
 *
 * This ambiguous syntax occurs at:
 *     importedNamespace=QualifiedNameWithWildcard (ambiguity) (rule end)
 *     importedType=[JvmDeclaredType|QualifiedName] (ambiguity) (rule end)
 *     memberName=ValidID (ambiguity) (rule end)
 *     wildcard?='*' (ambiguity) (rule end)
 */
protected void emit_XImportDeclaration_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #25
Source File: YangSyntacticSequencer.java    From yang-design-studio with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Syntax:
 *     ('{' '}') | ';'
 */
protected void emit_ListStatement_SemicolonKeyword_2_0_or___LeftCurlyBracketKeyword_2_1_0_RightCurlyBracketKeyword_2_1_2__(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #26
Source File: XtextTerminalsTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     '('*
 *
 * This ambiguous syntax occurs at:
 *     (rule start) (ambiguity) '{' type=TypeRef
 *     (rule start) (ambiguity) feature=ID
 *     (rule start) (ambiguity) rule=[AbstractRule|ID]
 *     (rule start) (ambiguity) value=STRING
 *     (rule start) (ambiguity) {Alternatives.groups+=}
 *     (rule start) (ambiguity) {Group.tokens+=}
 */
protected void emit_ParenthesizedElement_LeftParenthesisKeyword_0_a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #27
Source File: AbstractEntitiesSyntacticSequencer.java    From xtext-web with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     ';'?
 *
 * This ambiguous syntax occurs at:
 *     expressions+=XExpressionOrVarDeclaration (ambiguity) '}' ')' (rule end)
 *     expressions+=XExpressionOrVarDeclaration (ambiguity) '}' (rule end)
 *     expressions+=XExpressionOrVarDeclaration (ambiguity) expressions+=XExpressionOrVarDeclaration
 */
protected void emit_XBlockExpression_SemicolonKeyword_2_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #28
Source File: Bug381381TestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     (',' 'TYPE' '=' 'REPLACE')+
 *
 * This ambiguous syntax occurs at:
 *     (rule start) 'FIELD-NAME-TO-VARIABLE' (ambiguity) (rule start)
 */
protected void emit_CopyFieldNameToVariableStmt___CommaKeyword_1_2_0_TYPEKeyword_1_2_1_EqualsSignKeyword_1_2_2_REPLACEKeyword_1_2_3__p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #29
Source File: N4JSSyntacticSequencer.java    From n4js with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     (';' | ',')?
 *
 * This ambiguous syntax occurs at:
 *     astStructuralMembers+=TStructMember (ambiguity) '}' (rule end)
 *     astStructuralMembers+=TStructMember (ambiguity) '}' dynamic?='+'
 *     astStructuralMembers+=TStructMember (ambiguity) '}' followedByQuestionMark?='?'
 *     astStructuralMembers+=TStructMember (ambiguity) astStructuralMembers+=TStructMember
 */
protected void emit_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
Example #30
Source File: ContentAssistFragmentTestLangSyntacticSequencer.java    From xtext-extras with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Ambiguous syntax:
 *     '('*
 *
 * This ambiguous syntax occurs at:
 *     (rule start) (ambiguity) '#' '[' ']' (rule start)
 *     (rule start) (ambiguity) '#' '[' elements+=XExpression
 *     (rule start) (ambiguity) '#' '{' '}' (rule start)
 *     (rule start) (ambiguity) '#' '{' elements+=XExpression
 *     (rule start) (ambiguity) '<' typeArguments+=JvmArgumentTypeReference
 *     (rule start) (ambiguity) '[' declaredFormalParameters+=JvmFormalParameter
 *     (rule start) (ambiguity) '[' explicitSyntax?='|'
 *     (rule start) (ambiguity) '[' expression=XExpressionInClosure
 *     (rule start) (ambiguity) 'do' body=XExpression
 *     (rule start) (ambiguity) 'false' (rule start)
 *     (rule start) (ambiguity) 'for' '(' ';' ';' ')' eachExpression=XExpression
 *     (rule start) (ambiguity) 'for' '(' ';' ';' updateExpressions+=XExpression
 *     (rule start) (ambiguity) 'for' '(' ';' expression=XExpression
 *     (rule start) (ambiguity) 'for' '(' declaredParam=JvmFormalParameter
 *     (rule start) (ambiguity) 'for' '(' initExpressions+=XExpressionOrVarDeclaration
 *     (rule start) (ambiguity) 'if' '(' if=XExpression
 *     (rule start) (ambiguity) 'new' constructor=[JvmConstructor|QualifiedName]
 *     (rule start) (ambiguity) 'null' (rule start)
 *     (rule start) (ambiguity) 'return' (rule start)
 *     (rule start) (ambiguity) 'return' expression=XExpression
 *     (rule start) (ambiguity) 'switch' '(' declaredParam=JvmFormalParameter
 *     (rule start) (ambiguity) 'switch' declaredParam=JvmFormalParameter
 *     (rule start) (ambiguity) 'switch' switch=XExpression
 *     (rule start) (ambiguity) 'synchronized' '(' param=XExpression
 *     (rule start) (ambiguity) 'throw' expression=XExpression
 *     (rule start) (ambiguity) 'try' expression=XExpression
 *     (rule start) (ambiguity) 'typeof' '(' type=[JvmType|QualifiedName]
 *     (rule start) (ambiguity) 'while' '(' predicate=XExpression
 *     (rule start) (ambiguity) '{' '}' (rule start)
 *     (rule start) (ambiguity) '{' expressions+=XExpressionOrVarDeclaration
 *     (rule start) (ambiguity) feature=[JvmIdentifiableElement|FeatureCallID]
 *     (rule start) (ambiguity) feature=[JvmIdentifiableElement|IdOrSuper]
 *     (rule start) (ambiguity) feature=[JvmIdentifiableElement|OpUnary]
 *     (rule start) (ambiguity) isTrue?='true'
 *     (rule start) (ambiguity) value=Number
 *     (rule start) (ambiguity) value=STRING
 *     (rule start) (ambiguity) {XAssignment.assignable=}
 *     (rule start) (ambiguity) {XBinaryOperation.leftOperand=}
 *     (rule start) (ambiguity) {XCastedExpression.target=}
 *     (rule start) (ambiguity) {XInstanceOfExpression.expression=}
 *     (rule start) (ambiguity) {XMemberFeatureCall.memberCallTarget=}
 *     (rule start) (ambiguity) {XPostfixOperation.operand=}
 */
protected void emit_XParenthesizedExpression_LeftParenthesisKeyword_0_a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}