use of org.eclipse.xtext.serializer.acceptor.SequenceFeeder in project xtext-core by eclipse.
the class EpatchTestLanguageSemanticSequencer method sequence_EPackageImport.
/**
* Contexts:
* Import returns EPackageImport
* ModelImport returns EPackageImport
* EPackageImport returns EPackageImport
*
* Constraint:
* (name=ID nsURI=STRING)
*/
protected void sequence_EPackageImport(ISerializationContext context, EPackageImport semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, EpatchTestLanguagePackage.Literals.MODEL_IMPORT__NAME) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EpatchTestLanguagePackage.Literals.MODEL_IMPORT__NAME));
if (transientValues.isValueTransient(semanticObject, EpatchTestLanguagePackage.Literals.EPACKAGE_IMPORT__NS_URI) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EpatchTestLanguagePackage.Literals.EPACKAGE_IMPORT__NS_URI));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getEPackageImportAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());
feeder.accept(grammarAccess.getEPackageImportAccess().getNsURISTRINGTerminalRuleCall_3_0(), semanticObject.getNsURI());
feeder.finish();
}
use of org.eclipse.xtext.serializer.acceptor.SequenceFeeder in project xtext-core by eclipse.
the class EpatchTestLanguageSemanticSequencer method sequence_MonoSingleAssignment.
/**
* Contexts:
* MonoSingleAssignment returns SingleAssignment
*
* Constraint:
* (feature=ID leftValue=SingleAssignmentValue)
*/
protected void sequence_MonoSingleAssignment(ISerializationContext context, SingleAssignment semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, EpatchTestLanguagePackage.Literals.ASSIGNMENT__FEATURE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EpatchTestLanguagePackage.Literals.ASSIGNMENT__FEATURE));
if (transientValues.isValueTransient(semanticObject, EpatchTestLanguagePackage.Literals.SINGLE_ASSIGNMENT__LEFT_VALUE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EpatchTestLanguagePackage.Literals.SINGLE_ASSIGNMENT__LEFT_VALUE));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getMonoSingleAssignmentAccess().getFeatureIDTerminalRuleCall_0_0(), semanticObject.getFeature());
feeder.accept(grammarAccess.getMonoSingleAssignmentAccess().getLeftValueSingleAssignmentValueParserRuleCall_2_0(), semanticObject.getLeftValue());
feeder.finish();
}
use of org.eclipse.xtext.serializer.acceptor.SequenceFeeder in project xtext-core by eclipse.
the class AbstractFragmentTestLanguageSemanticSequencer method sequence_NamedInParentheses.
/**
* Contexts:
* NamedInParentheses returns PRFNamed
*
* Constraint:
* name=ID
*/
protected void sequence_NamedInParentheses(ISerializationContext context, PRFNamed semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, FragmentTestLanguagePackage.Literals.PRF_NAMED__NAME) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FragmentTestLanguagePackage.Literals.PRF_NAMED__NAME));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getNamedInParenthesesAccess().getNameIDTerminalRuleCall_1_1_0(), semanticObject.getName());
feeder.finish();
}
use of org.eclipse.xtext.serializer.acceptor.SequenceFeeder in project xtext-core by eclipse.
the class AbstractFragmentTestLanguageSemanticSequencer method sequence_PRFNamedRecursive_RecursiveFromFragment.
/**
* Contexts:
* PRFNamedRecursive returns PRFNamedWithAction
*
* Constraint:
* (name=ID prev=NamedInParentheses)
*/
protected void sequence_PRFNamedRecursive_RecursiveFromFragment(ISerializationContext context, PRFNamedWithAction semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, FragmentTestLanguagePackage.Literals.PRF_NAMED__NAME) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FragmentTestLanguagePackage.Literals.PRF_NAMED__NAME));
if (transientValues.isValueTransient(semanticObject, FragmentTestLanguagePackage.Literals.PRF_NAMED_WITH_ACTION__PREV) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FragmentTestLanguagePackage.Literals.PRF_NAMED_WITH_ACTION__PREV));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getPRFNamedRecursiveAccess().getNameIDTerminalRuleCall_0_0(), semanticObject.getName());
feeder.accept(grammarAccess.getRecursiveFromFragmentAccess().getPrevNamedInParenthesesParserRuleCall_0(), semanticObject.getPrev());
feeder.finish();
}
use of org.eclipse.xtext.serializer.acceptor.SequenceFeeder in project xtext-core by eclipse.
the class HiddenTerminalsTestLanguageSemanticSequencer method sequence_WithHiddens.
/**
* Contexts:
* Model returns WithHiddens
* WithHiddens returns WithHiddens
*
* Constraint:
* valid?=';'
*/
protected void sequence_WithHiddens(ISerializationContext context, WithHiddens semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, HiddenTerminalsTestLanguagePackage.Literals.MODEL__VALID) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, HiddenTerminalsTestLanguagePackage.Literals.MODEL__VALID));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getWithHiddensAccess().getValidSemicolonKeyword_2_0(), semanticObject.isValid());
feeder.finish();
}
Aggregations