use of org.eclipse.xtext.Parameter in project xtext-core by eclipse.
the class AbstractUnassignedTextTestLanguageSemanticSequencer method sequence.
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == UnassignedtextPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case UnassignedtextPackage.CASE_INSENSITIVE_KEYWORD_RULE:
sequence_CaseInsensitiveKeywordRule(context, (CaseInsensitiveKeywordRule) semanticObject);
return;
case UnassignedtextPackage.COMMON_TERMINALS_RULE:
sequence_CommonTerminalsRule(context, (CommonTerminalsRule) semanticObject);
return;
case UnassignedtextPackage.DATATYPE_RULE:
sequence_DatatypeRule(context, (DatatypeRule) semanticObject);
return;
case UnassignedtextPackage.MULTI_RULE:
sequence_MultiRule(context, (MultiRule) semanticObject);
return;
case UnassignedtextPackage.PLURAL_RULE:
sequence_PluralRule(context, (PluralRule) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.Parameter in project xtext-core by eclipse.
the class FormatterTestLanguageSemanticSequencer method sequence.
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == FormattertestlanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case FormattertestlanguagePackage.ASSIGN:
sequence_Assign(context, (Assign) semanticObject);
return;
case FormattertestlanguagePackage.DATATYPES:
sequence_Datatypes(context, (Datatypes) semanticObject);
return;
case FormattertestlanguagePackage.DECL:
sequence_Decl(context, (Decl) semanticObject);
return;
case FormattertestlanguagePackage.ENUMERATION:
sequence_Enumeration(context, (Enumeration) semanticObject);
return;
case FormattertestlanguagePackage.FQN_OBJ:
sequence_FqnObj(context, (FqnObj) semanticObject);
return;
case FormattertestlanguagePackage.FQN_REF:
sequence_FqnRef(context, (FqnRef) semanticObject);
return;
case FormattertestlanguagePackage.METH:
sequence_Meth(context, (Meth) semanticObject);
return;
case FormattertestlanguagePackage.PARAM:
sequence_Param(context, (Param) semanticObject);
return;
case FormattertestlanguagePackage.SPACE:
sequence_Space(context, (Space) semanticObject);
return;
case FormattertestlanguagePackage.SUPPRESSED_HIDDEN:
sequence_SuppressedHidden(context, (SuppressedHidden) semanticObject);
return;
case FormattertestlanguagePackage.SUPPRESSED_HIDDEN_SUB_ID:
sequence_SuppressedHiddenSubID(context, (SuppressedHiddenSubID) semanticObject);
return;
case FormattertestlanguagePackage.SUPPRESSED_HIDDEN_SUB_SUB:
sequence_SuppressedHiddenSubSub(context, (SuppressedHiddenSubSub) semanticObject);
return;
case FormattertestlanguagePackage.TEST_INDENTATION:
sequence_TestIndentation(context, (TestIndentation) semanticObject);
return;
case FormattertestlanguagePackage.TEST_LINEWRAP:
sequence_TestLinewrap(context, (TestLinewrap) semanticObject);
return;
case FormattertestlanguagePackage.TEST_LINEWRAP_MIN_MAX:
sequence_TestLinewrapMinMax(context, (TestLinewrapMinMax) semanticObject);
return;
case FormattertestlanguagePackage.WRAPPING_DATA_TYPE_TEST:
sequence_WrappingDataTypeTest(context, (WrappingDataTypeTest) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.Parameter in project xtext-core by eclipse.
the class Bug305397SemanticSequencer method sequence.
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == Bug305397Package.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug305397Package.ELEMENT:
sequence_Element(context, (Element) semanticObject);
return;
case Bug305397Package.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.Parameter in project xtext-core by eclipse.
the class CommentAssociationTestLanguageSemanticSequencer method sequence.
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == CommentAssociationPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case CommentAssociationPackage.ELEMENT:
if (rule == grammarAccess.getElementRule()) {
sequence_Element(context, (Element) semanticObject);
return;
} else if (action == grammarAccess.getElementAccess().getElementChildAction_2_0()) {
sequence_Element_Element_2_0(context, (Element) semanticObject);
return;
} else
break;
case CommentAssociationPackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.Parameter in project xtext-core by eclipse.
the class Bug299395TestLanguageSemanticSequencer method sequence.
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == Bug299395Package.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug299395Package.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case Bug299395Package.SUB_MODEL:
sequence_SubModel(context, (SubModel) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations