Java Code Examples for org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient#YES
The following examples show how to use
org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient#YES .
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: Bug309949TestLanguageSemanticSequencer.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Annotation returns Annotation * * Constraint: * name=ID */ protected void sequence_Annotation(ISerializationContext context, Annotation semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, Bug309949TestLanguagePackage.Literals.ANNOTATION__NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug309949TestLanguagePackage.Literals.ANNOTATION__NAME)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getAnnotationAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName()); feeder.finish(); }
Example 2
Source File: Bug347012TestLanguageSemanticSequencer.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Identifier returns Identifier * MyPrimary returns Identifier * * Constraint: * name=ID */ protected void sequence_Identifier(ISerializationContext context, Identifier semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, Bug347012TestLanguagePackage.Literals.IDENTIFIER__NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug347012TestLanguagePackage.Literals.IDENTIFIER__NAME)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getIdentifierAccess().getNameIDTerminalRuleCall_0(), semanticObject.getName()); feeder.finish(); }
Example 3
Source File: AbstractScopeSemanticSequencer.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
/** * Contexts: * SimpleScopeExpression returns SimpleScopeExpression * * Constraint: * expr=Expression */ protected void sequence_SimpleScopeExpression(ISerializationContext context, SimpleScopeExpression semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, ScopePackage.Literals.SIMPLE_SCOPE_EXPRESSION__EXPR) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ScopePackage.Literals.SIMPLE_SCOPE_EXPRESSION__EXPR)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getSimpleScopeExpressionAccess().getExprExpressionParserRuleCall_0(), semanticObject.getExpr()); feeder.finish(); }
Example 4
Source File: DomainModelTestLanguageSemanticSequencer.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Property returns Attribute * Attribute returns Attribute * * Constraint: * (name=ID type=[DataType|ID]) */ protected void sequence_Attribute(ISerializationContext context, Attribute semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, DomainModelTestPackage.Literals.PROPERTY__NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DomainModelTestPackage.Literals.PROPERTY__NAME)); if (transientValues.isValueTransient(semanticObject, DomainModelTestPackage.Literals.ATTRIBUTE__TYPE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DomainModelTestPackage.Literals.ATTRIBUTE__TYPE)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getAttributeAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName()); feeder.accept(grammarAccess.getAttributeAccess().getTypeDataTypeIDTerminalRuleCall_3_0_1(), semanticObject.eGet(DomainModelTestPackage.Literals.ATTRIBUTE__TYPE, false)); feeder.finish(); }
Example 5
Source File: StatemachineSemanticSequencer.java From xtext-web with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Signal returns OutputSignal * * Constraint: * name=ID */ protected void sequence_OutputSignal_Signal(ISerializationContext context, OutputSignal semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.SIGNAL__NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.SIGNAL__NAME)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getSignalAccess().getNameIDTerminalRuleCall_2_0(), semanticObject.getName()); feeder.finish(); }
Example 6
Source File: AbstractCheckSemanticSequencer.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
/** * Contexts: * XConstantUnaryOperation returns XUnaryOperation * XFormalParameterDefaultValueLiteral returns XUnaryOperation * * Constraint: * (feature=[JvmIdentifiableElement|OpUnary] operand=XConstantUnaryOperation) */ protected void sequence_XConstantUnaryOperation(ISerializationContext context, XUnaryOperation semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, XbasePackage.Literals.XABSTRACT_FEATURE_CALL__FEATURE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, XbasePackage.Literals.XABSTRACT_FEATURE_CALL__FEATURE)); if (transientValues.isValueTransient(semanticObject, XbasePackage.Literals.XUNARY_OPERATION__OPERAND) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, XbasePackage.Literals.XUNARY_OPERATION__OPERAND)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getXConstantUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1(), semanticObject.eGet(XbasePackage.Literals.XABSTRACT_FEATURE_CALL__FEATURE, false)); feeder.accept(grammarAccess.getXConstantUnaryOperationAccess().getOperandXConstantUnaryOperationParserRuleCall_0_2_0(), semanticObject.getOperand()); feeder.finish(); }
Example 7
Source File: AbstractCheckSemanticSequencer.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
/** * Contexts: * SeverityRange returns SeverityRange * * Constraint: * (minSeverity=SeverityKind maxSeverity=SeverityKind) */ protected void sequence_SeverityRange(ISerializationContext context, SeverityRange semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, CheckPackage.Literals.SEVERITY_RANGE__MIN_SEVERITY) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CheckPackage.Literals.SEVERITY_RANGE__MIN_SEVERITY)); if (transientValues.isValueTransient(semanticObject, CheckPackage.Literals.SEVERITY_RANGE__MAX_SEVERITY) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CheckPackage.Literals.SEVERITY_RANGE__MAX_SEVERITY)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getSeverityRangeAccess().getMinSeveritySeverityKindEnumRuleCall_3_0(), semanticObject.getMinSeverity()); feeder.accept(grammarAccess.getSeverityRangeAccess().getMaxSeveritySeverityKindEnumRuleCall_5_0(), semanticObject.getMaxSeverity()); feeder.finish(); }
Example 8
Source File: XtextSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Parameter returns Parameter * * Constraint: * name=ID */ protected void sequence_Parameter(ISerializationContext context, Parameter semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, XtextPackage.Literals.PARAMETER__NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, XtextPackage.Literals.PARAMETER__NAME)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getParameterAccess().getNameIDTerminalRuleCall_0(), semanticObject.getName()); feeder.finish(); }
Example 9
Source File: MyDslSemanticSequencer.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
/** * Contexts: * Greeting returns Greeting * * Constraint: * name=ID */ protected void sequence_Greeting(ISerializationContext context, Greeting semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.GREETING__NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.GREETING__NAME)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getGreetingAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName()); feeder.finish(); }
Example 10
Source File: ComplexReconstrTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Root returns TrickyG * TrickyG returns TrickyG * * Constraint: * tree=TrickyG1 */ protected void sequence_TrickyG(ISerializationContext context, TrickyG semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, ComplexrewritetestPackage.Literals.TRICKY_G__TREE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ComplexrewritetestPackage.Literals.TRICKY_G__TREE)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getTrickyGAccess().getTreeTrickyG1ParserRuleCall_1_0(), semanticObject.getTree()); feeder.finish(); }
Example 11
Source File: SequencerTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Delegation<D> returns Delegation * Delegation returns Delegation * * Constraint: * np=INT */ protected void sequence_Delegation$P$false$(ISerializationContext context, Delegation semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, SequencertestPackage.Literals.DELEGATION__NP) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SequencertestPackage.Literals.DELEGATION__NP)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getDelegationAccess().getNpINTTerminalRuleCall_0_0_1_0_0(), semanticObject.getNp()); feeder.finish(); }
Example 12
Source File: AbstractAbstractTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * InheritedParserRule returns AType * * Constraint: * name=ID */ protected void sequence_InheritedParserRule(ISerializationContext context, AType semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, AmetamodelPackage.Literals.ATYPE__NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AmetamodelPackage.Literals.ATYPE__NAME)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getInheritedParserRuleAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName()); feeder.finish(); }
Example 13
Source File: SequencerTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * NullCrossRefGenerated returns NullCrossRef * * Constraint: * ref=[EObject|ID] */ protected void sequence_NullCrossRefGenerated(ISerializationContext context, NullCrossRef semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, SequencertestPackage.Literals.NULL_CROSS_REF__REF) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SequencertestPackage.Literals.NULL_CROSS_REF__REF)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getNullCrossRefGeneratedAccess().getRefEObjectIDTerminalRuleCall_1_0_1(), semanticObject.eGet(SequencertestPackage.Literals.NULL_CROSS_REF__REF, false)); feeder.finish(); }
Example 14
Source File: AbstractSyntacticSequencerTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Exp1 returns Add1 * Addition1 returns Add1 * Addition1.Add1_1_0 returns Add1 * Prim1 returns Add1 * * Constraint: * (left=Addition1_Add1_1_0 right=Prim1) */ protected void sequence_Addition1(ISerializationContext context, Add1 semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, SyntacticsequencertestPackage.Literals.ADD1__LEFT) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SyntacticsequencertestPackage.Literals.ADD1__LEFT)); if (transientValues.isValueTransient(semanticObject, SyntacticsequencertestPackage.Literals.ADD1__RIGHT) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SyntacticsequencertestPackage.Literals.ADD1__RIGHT)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getAddition1Access().getAdd1LeftAction_1_0(), semanticObject.getLeft()); feeder.accept(grammarAccess.getAddition1Access().getRightPrim1ParserRuleCall_1_2_0(), semanticObject.getRight()); feeder.finish(); }
Example 15
Source File: AbstractUnassignedTextTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Model returns DatatypeRule * DatatypeRule returns DatatypeRule * * Constraint: * val=INT */ protected void sequence_DatatypeRule(ISerializationContext context, DatatypeRule semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, UnassignedtextPackage.Literals.DATATYPE_RULE__VAL) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UnassignedtextPackage.Literals.DATATYPE_RULE__VAL)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getDatatypeRuleAccess().getValINTTerminalRuleCall_1_0(), semanticObject.getVal()); feeder.finish(); }
Example 16
Source File: Bug303200TestLanguageSemanticSequencer.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * ProgramDirective returns ExpressionStatement * Statement returns ExpressionStatement * * Constraint: * expression=PostfixExpression */ protected void sequence_Statement(ISerializationContext context, ExpressionStatement semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, Bug303200TestLanguagePackage.Literals.EXPRESSION_STATEMENT__EXPRESSION) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug303200TestLanguagePackage.Literals.EXPRESSION_STATEMENT__EXPRESSION)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getStatementAccess().getExpressionPostfixExpressionParserRuleCall_1_1_0(), semanticObject.getExpression()); feeder.finish(); }
Example 17
Source File: Bug385636SemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 3 votes |
/** * Contexts: * Statement returns Expression_Not_Greater * Statement.Expression_Larger_Equal_1_0_1 returns Expression_Not_Greater * Statement.Expression_Smaller_1_1_1 returns Expression_Not_Greater * Statement.Expression_Smaller_Equal_1_2_1 returns Expression_Not_Greater * Statement.Expression_Equal_1_3_1 returns Expression_Not_Greater * Statement.Expression_Not_Equal_1_4_1 returns Expression_Not_Greater * Statement.Expression_Not_Less_1_5_1 returns Expression_Not_Greater * Statement.Expression_Not_Greater_1_6_1 returns Expression_Not_Greater * * Constraint: * (left=Statement_Expression_Not_Greater_1_6_1 right=Expression_VariableName) */ protected void sequence_Statement(ISerializationContext context, Expression_Not_Greater semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, Bug385636Package.Literals.EXPRESSION_NOT_GREATER__LEFT) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug385636Package.Literals.EXPRESSION_NOT_GREATER__LEFT)); if (transientValues.isValueTransient(semanticObject, Bug385636Package.Literals.EXPRESSION_NOT_GREATER__RIGHT) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug385636Package.Literals.EXPRESSION_NOT_GREATER__RIGHT)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getStatementAccess().getExpression_Not_GreaterLeftAction_1_6_1(), semanticObject.getLeft()); feeder.accept(grammarAccess.getStatementAccess().getRightExpression_VariableNameParserRuleCall_1_6_2_0(), semanticObject.getRight()); feeder.finish(); }
Example 18
Source File: AbstractExpressionSemanticSequencer.java From dsl-devkit with Eclipse Public License 1.0 | 3 votes |
/** * Contexts: * Expression returns RealLiteral * SyntaxElement returns RealLiteral * ChainExpression returns RealLiteral * ChainExpression.ChainExpression_1_0 returns RealLiteral * ChainedExpression returns RealLiteral * IfExpressionTri returns RealLiteral * IfExpressionTri.IfExpression_1_0 returns RealLiteral * OrExpression returns RealLiteral * OrExpression.BooleanOperation_1_0 returns RealLiteral * AndExpression returns RealLiteral * AndExpression.BooleanOperation_1_0 returns RealLiteral * ImpliesExpression returns RealLiteral * ImpliesExpression.BooleanOperation_1_0 returns RealLiteral * RelationalExpression returns RealLiteral * RelationalExpression.BooleanOperation_1_0 returns RealLiteral * AdditiveExpression returns RealLiteral * AdditiveExpression.OperationCall_1_0 returns RealLiteral * MultiplicativeExpression returns RealLiteral * MultiplicativeExpression.OperationCall_1_0 returns RealLiteral * UnaryOrInfixExpression returns RealLiteral * InfixExpression returns RealLiteral * InfixExpression.OperationCall_1_0_0 returns RealLiteral * InfixExpression.FeatureCall_1_1_0 returns RealLiteral * InfixExpression.TypeSelectExpression_1_2_0 returns RealLiteral * InfixExpression.CollectionExpression_1_3_0 returns RealLiteral * PrimaryExpression returns RealLiteral * Literal returns RealLiteral * RealLiteral returns RealLiteral * ParanthesizedExpression returns RealLiteral * * Constraint: * val=REAL */ protected void sequence_RealLiteral(ISerializationContext context, RealLiteral semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, ExpressionPackage.Literals.REAL_LITERAL__VAL) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ExpressionPackage.Literals.REAL_LITERAL__VAL)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getRealLiteralAccess().getValREALTerminalRuleCall_0(), semanticObject.getVal()); feeder.finish(); }
Example 19
Source File: AbstractXtendSemanticSequencer.java From xtext-xtend with Eclipse Public License 2.0 | 3 votes |
/** * Contexts: * XAssignment returns XStringLiteral * XAssignment.XBinaryOperation_1_1_0_0_0 returns XStringLiteral * XConditionalExpression returns XStringLiteral * XConditionalExpression.XIfExpression_1_0_0_0 returns XStringLiteral * XStringLiteral returns XStringLiteral * XExpressionOrSimpleConstructorCall returns XStringLiteral * SimpleStringLiteral returns XStringLiteral * RichStringPart returns XStringLiteral * XAnnotationElementValueOrCommaList returns XStringLiteral * XAnnotationElementValueOrCommaList.XListLiteral_1_1_0 returns XStringLiteral * XAnnotationElementValue returns XStringLiteral * XAnnotationOrExpression returns XStringLiteral * XExpression returns XStringLiteral * XOrExpression returns XStringLiteral * XOrExpression.XBinaryOperation_1_0_0_0 returns XStringLiteral * XAndExpression returns XStringLiteral * XAndExpression.XBinaryOperation_1_0_0_0 returns XStringLiteral * XEqualityExpression returns XStringLiteral * XEqualityExpression.XBinaryOperation_1_0_0_0 returns XStringLiteral * XRelationalExpression returns XStringLiteral * XRelationalExpression.XInstanceOfExpression_1_0_0_0_0 returns XStringLiteral * XRelationalExpression.XBinaryOperation_1_1_0_0_0 returns XStringLiteral * XOtherOperatorExpression returns XStringLiteral * XOtherOperatorExpression.XBinaryOperation_1_0_0_0 returns XStringLiteral * XAdditiveExpression returns XStringLiteral * XAdditiveExpression.XBinaryOperation_1_0_0_0 returns XStringLiteral * XMultiplicativeExpression returns XStringLiteral * XMultiplicativeExpression.XBinaryOperation_1_0_0_0 returns XStringLiteral * XUnaryOperation returns XStringLiteral * XCastedExpression returns XStringLiteral * XCastedExpression.XCastedExpression_1_0_0_0 returns XStringLiteral * XPostfixOperation returns XStringLiteral * XPostfixOperation.XPostfixOperation_1_0_0 returns XStringLiteral * XMemberFeatureCall returns XStringLiteral * XMemberFeatureCall.XAssignment_1_0_0_0_0 returns XStringLiteral * XMemberFeatureCall.XMemberFeatureCall_1_1_0_0_0 returns XStringLiteral * XPrimaryExpression returns XStringLiteral * XLiteral returns XStringLiteral * XParenthesizedExpression returns XStringLiteral * XExpressionOrVarDeclaration returns XStringLiteral * * Constraint: * value=STRING */ protected void sequence_SimpleStringLiteral(ISerializationContext context, XStringLiteral semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, XbasePackage.Literals.XSTRING_LITERAL__VALUE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, XbasePackage.Literals.XSTRING_LITERAL__VALUE)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getSimpleStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0(), semanticObject.getValue()); feeder.finish(); }
Example 20
Source File: BeeLangTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 3 votes |
/** * Contexts: * TopLevelExpression returns FeatureExpression * Expression returns FeatureExpression * AssignmentExpression returns FeatureExpression * AssignmentExpression.AssignmentExpression_1_0 returns FeatureExpression * CachedExpression returns FeatureExpression * OrExpression returns FeatureExpression * OrExpression.OrExpression_1_0 returns FeatureExpression * AndExpression returns FeatureExpression * AndExpression.AndExpression_1_0 returns FeatureExpression * RelationalExpression returns FeatureExpression * RelationalExpression.BinaryOpExpression_1_0 returns FeatureExpression * AdditiveExpression returns FeatureExpression * AdditiveExpression.BinaryOpExpression_1_0 returns FeatureExpression * MultiplicativeExpression returns FeatureExpression * MultiplicativeExpression.BinaryOpExpression_1_0 returns FeatureExpression * SetExpression returns FeatureExpression * SetExpression.BinaryOpExpression_1_0 returns FeatureExpression * UnaryOrInfixExpression returns FeatureExpression * PostopExpression returns FeatureExpression * PostopExpression.UnaryPostOpExpression_1_0 returns FeatureExpression * InfixExpression returns FeatureExpression * InfixExpression.CallFeature_1_0_0 returns FeatureExpression * InfixExpression.AtExpression_1_1_0 returns FeatureExpression * InfixExpression.FeatureExpression_1_2_0 returns FeatureExpression * CallExpression returns FeatureExpression * CallExpression.CallFunction_1_0 returns FeatureExpression * PrimaryExpression returns FeatureExpression * OneOrManyExpressions returns FeatureExpression * ParanthesizedExpression returns FeatureExpression * * Constraint: * (objExpr=InfixExpression_FeatureExpression_1_2_0 featureName=ID) */ protected void sequence_InfixExpression(ISerializationContext context, FeatureExpression semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, BeeLangTestLanguagePackage.Literals.FEATURE_EXPRESSION__OBJ_EXPR) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, BeeLangTestLanguagePackage.Literals.FEATURE_EXPRESSION__OBJ_EXPR)); if (transientValues.isValueTransient(semanticObject, BeeLangTestLanguagePackage.Literals.FEATURE_EXPRESSION__FEATURE_NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, BeeLangTestLanguagePackage.Literals.FEATURE_EXPRESSION__FEATURE_NAME)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getInfixExpressionAccess().getFeatureExpressionObjExprAction_1_2_0(), semanticObject.getObjExpr()); feeder.accept(grammarAccess.getInfixExpressionAccess().getFeatureNameIDTerminalRuleCall_1_2_2_0(), semanticObject.getFeatureName()); feeder.finish(); }