use of org.eclipse.xtext.serializer.acceptor.SequenceFeeder in project xtext-core by eclipse.
the class Bug362902SemanticSequencer method sequence_Greeting.
/**
* Contexts:
* Greeting returns Greeting
*
* Constraint:
* name=MyId
*/
protected void sequence_Greeting(ISerializationContext context, Greeting semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, Bug362902Package.Literals.GREETING__NAME) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug362902Package.Literals.GREETING__NAME));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getGreetingAccess().getNameMyIdParserRuleCall_1_0(), semanticObject.getName());
feeder.finish();
}
use of org.eclipse.xtext.serializer.acceptor.SequenceFeeder in project xtext-core by eclipse.
the class IgnoreCaseImportsTestLanguageSemanticSequencer method sequence_Import.
/**
* Contexts:
* Import returns Import
*
* Constraint:
* importURI=STRING
*/
protected void sequence_Import(ISerializationContext context, Import semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, IgnoreCaseImportsTestPackage.Literals.IMPORT__IMPORT_URI) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, IgnoreCaseImportsTestPackage.Literals.IMPORT__IMPORT_URI));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_0(), semanticObject.getImportURI());
feeder.finish();
}
use of org.eclipse.xtext.serializer.acceptor.SequenceFeeder in project xtext-core by eclipse.
the class ImportUriTestLanguageSemanticSequencer method sequence_Import.
/**
* Contexts:
* Import returns Import
*
* Constraint:
* importURI=STRING
*/
protected void sequence_Import(ISerializationContext context, Import semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, ImportedURIPackage.Literals.IMPORT__IMPORT_URI) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ImportedURIPackage.Literals.IMPORT__IMPORT_URI));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_1_0(), semanticObject.getImportURI());
feeder.finish();
}
use of org.eclipse.xtext.serializer.acceptor.SequenceFeeder in project xtext-core by eclipse.
the class ImportUriTestLanguageSemanticSequencer method sequence_Type.
/**
* Contexts:
* Type returns Type
*
* Constraint:
* (name=ID extends=[Type|ID])
*/
protected void sequence_Type(ISerializationContext context, Type semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, ImportedURIPackage.Literals.TYPE__NAME) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ImportedURIPackage.Literals.TYPE__NAME));
if (transientValues.isValueTransient(semanticObject, ImportedURIPackage.Literals.TYPE__EXTENDS) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ImportedURIPackage.Literals.TYPE__EXTENDS));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getTypeAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());
feeder.accept(grammarAccess.getTypeAccess().getExtendsTypeIDTerminalRuleCall_3_0_1(), semanticObject.eGet(ImportedURIPackage.Literals.TYPE__EXTENDS, false));
feeder.finish();
}
use of org.eclipse.xtext.serializer.acceptor.SequenceFeeder in project xtext-core by eclipse.
the class EnumAndReferenceTestLanguageSemanticSequencer method sequence_EntityWithEnumAndReference.
/**
* Contexts:
* EntityWithEnumAndReference returns EntityWithEnumAndReference
*
* Constraint:
* (type=KindOfKeyword name=ID ref=[EntityWithEnumAndReference|ID])
*/
protected void sequence_EntityWithEnumAndReference(ISerializationContext context, EntityWithEnumAndReference semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, EnumAndReferenceTestLanguagePackage.Literals.ENTITY_WITH_ENUM_AND_REFERENCE__TYPE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EnumAndReferenceTestLanguagePackage.Literals.ENTITY_WITH_ENUM_AND_REFERENCE__TYPE));
if (transientValues.isValueTransient(semanticObject, EnumAndReferenceTestLanguagePackage.Literals.ENTITY_WITH_ENUM_AND_REFERENCE__NAME) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EnumAndReferenceTestLanguagePackage.Literals.ENTITY_WITH_ENUM_AND_REFERENCE__NAME));
if (transientValues.isValueTransient(semanticObject, EnumAndReferenceTestLanguagePackage.Literals.ENTITY_WITH_ENUM_AND_REFERENCE__REF) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EnumAndReferenceTestLanguagePackage.Literals.ENTITY_WITH_ENUM_AND_REFERENCE__REF));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getEntityWithEnumAndReferenceAccess().getTypeKindOfKeywordEnumRuleCall_0_0(), semanticObject.getType());
feeder.accept(grammarAccess.getEntityWithEnumAndReferenceAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());
feeder.accept(grammarAccess.getEntityWithEnumAndReferenceAccess().getRefEntityWithEnumAndReferenceIDTerminalRuleCall_3_0_1(), semanticObject.eGet(EnumAndReferenceTestLanguagePackage.Literals.ENTITY_WITH_ENUM_AND_REFERENCE__REF, false));
feeder.finish();
}
Aggregations