use of org.eclipse.xtext.serializer.acceptor.SequenceFeeder in project applause by applause.
the class ApplauseDslSemanticSequencer method sequence_RESTMethodCall.
/**
* Constraint:
* (datasource=[DataSourceCall|ID] restMethod=[DataSourceAccessMethod|ID])
*/
protected void sequence_RESTMethodCall(EObject context, RESTMethodCall semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, ApplauseDslPackage.Literals.REST_METHOD_CALL__DATASOURCE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ApplauseDslPackage.Literals.REST_METHOD_CALL__DATASOURCE));
if (transientValues.isValueTransient(semanticObject, ApplauseDslPackage.Literals.REST_METHOD_CALL__REST_METHOD) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ApplauseDslPackage.Literals.REST_METHOD_CALL__REST_METHOD));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getRESTMethodCallAccess().getDatasourceDataSourceCallIDTerminalRuleCall_0_0_1(), semanticObject.getDatasource());
feeder.accept(grammarAccess.getRESTMethodCallAccess().getRestMethodDataSourceAccessMethodIDTerminalRuleCall_2_0_1(), semanticObject.getRestMethod());
feeder.finish();
}
use of org.eclipse.xtext.serializer.acceptor.SequenceFeeder in project applause by applause.
the class ApplauseDslSemanticSequencer method sequence_DataType.
/**
* Constraint:
* name=KeywordedID
*/
protected void sequence_DataType(EObject context, DataType semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, ApplauseDslPackage.Literals.NAMED_ELEMENT__NAME) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ApplauseDslPackage.Literals.NAMED_ELEMENT__NAME));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getDataTypeAccess().getNameKeywordedIDParserRuleCall_1_0(), semanticObject.getName());
feeder.finish();
}
use of org.eclipse.xtext.serializer.acceptor.SequenceFeeder in project xtext-xtend by eclipse.
the class AbstractXtendSemanticSequencer method sequence_RichStringLiteral.
/**
* Contexts:
* RichStringLiteral returns RichStringLiteral
*
* Constraint:
* value=RICH_TEXT
*/
protected void sequence_RichStringLiteral(ISerializationContext context, RichStringLiteral 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.getRichStringLiteralAccess().getValueRICH_TEXTTerminalRuleCall_1_0(), semanticObject.getValue());
feeder.finish();
}
use of org.eclipse.xtext.serializer.acceptor.SequenceFeeder in project xtext-xtend by eclipse.
the class AbstractXtendSemanticSequencer method sequence_TypeReferenceNoTypeArgs.
/**
* Contexts:
* TypeReferenceNoTypeArgs returns JvmParameterizedTypeReference
* TypeReferenceWithTypeArgs.JvmGenericArrayTypeReference_1_1_0_0 returns JvmParameterizedTypeReference
*
* Constraint:
* type=[JvmType|QualifiedName]
*/
protected void sequence_TypeReferenceNoTypeArgs(ISerializationContext context, JvmParameterizedTypeReference semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getTypeReferenceNoTypeArgsAccess().getTypeJvmTypeQualifiedNameParserRuleCall_0_1(), semanticObject.eGet(TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE, false));
feeder.finish();
}
use of org.eclipse.xtext.serializer.acceptor.SequenceFeeder in project xtext-xtend by eclipse.
the class AbstractXtendSemanticSequencer method sequence_TypeReferenceWithTypeArgs_JvmGenericArrayTypeReference_0_1_0_0.
/**
* Contexts:
* TypeReferenceWithTypeArgs.JvmGenericArrayTypeReference_0_1_0_0 returns JvmGenericArrayTypeReference
*
* Constraint:
* componentType=TypeReferenceWithTypeArgs_JvmGenericArrayTypeReference_0_1_0_0
*/
protected void sequence_TypeReferenceWithTypeArgs_JvmGenericArrayTypeReference_0_1_0_0(ISerializationContext context, JvmGenericArrayTypeReference semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, TypesPackage.Literals.JVM_GENERIC_ARRAY_TYPE_REFERENCE__COMPONENT_TYPE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TypesPackage.Literals.JVM_GENERIC_ARRAY_TYPE_REFERENCE__COMPONENT_TYPE));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getTypeReferenceWithTypeArgsAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_0_1_0_0(), semanticObject.getComponentType());
feeder.finish();
}
Aggregations