Java Code Examples for org.eclipse.xtext.serializer.ISerializationContext#getAssignedAction()
The following examples show how to use
org.eclipse.xtext.serializer.ISerializationContext#getAssignedAction() .
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: Bug381381TestLanguageSemanticSequencer.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
@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 == Bug381381TestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case Bug381381TestLanguagePackage.COPY_FIELD_NAME_TO_VARIABLE_STMT: sequence_CopyFieldNameToVariableStmt(context, (CopyFieldNameToVariableStmt) semanticObject); return; case Bug381381TestLanguagePackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 2
Source File: DatatypeRuleTestLanguageSemanticSequencer.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
@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 == DatatypeRuleTestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case DatatypeRuleTestPackage.COMPOSITE_TYPE: sequence_CompositeType(context, (CompositeType) semanticObject); return; case DatatypeRuleTestPackage.COMPOSITE_TYPE_ENTRY: sequence_CompositeTypeEntry(context, (CompositeTypeEntry) semanticObject); return; case DatatypeRuleTestPackage.SIMPLE_TYPE: sequence_SimpleType(context, (SimpleType) semanticObject); return; case DatatypeRuleTestPackage.TYPES: sequence_Types(context, (Types) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 3
Source File: Bug287184TestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
@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 == Bug287184TestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case Bug287184TestPackage.ASSOCIATED_DETAIL: sequence_AssociatedDetail(context, (AssociatedDetail) semanticObject); return; case Bug287184TestPackage.DETAIL: sequence_Detail(context, (Detail) semanticObject); return; case Bug287184TestPackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 4
Source File: XmlSemanticSequencer.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
@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 == SimplexmlPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case SimplexmlPackage.ATTRIBUTE: sequence_Attribute(context, (Attribute) semanticObject); return; case SimplexmlPackage.CONTENT: sequence_Content(context, (Content) semanticObject); return; case SimplexmlPackage.TAG: sequence_Tag(context, (Tag) semanticObject); return; case SimplexmlPackage.XML_DOCUMENT: sequence_XmlDocument(context, (XmlDocument) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 5
Source File: HiddenTokenSequencerTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
@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 == HiddentokensequencertestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case HiddentokensequencertestPackage.DOMAIN_MODEL: sequence_DomainModel(context, (DomainModel) semanticObject); return; case HiddentokensequencertestPackage.ENTITY: sequence_Entity(context, (Entity) semanticObject); return; case HiddentokensequencertestPackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 6
Source File: FormatterTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
@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.ID_LIST: sequence_IDList(context, (IDList) semanticObject); return; case FormattertestlanguagePackage.KW_LIST: sequence_KWList(context, (KWList) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 7
Source File: QuickfixCrossrefTestLanguageSemanticSequencer.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
@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 == QuickfixCrossrefPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case QuickfixCrossrefPackage.ELEMENT: sequence_Element(context, (Element) semanticObject); return; case QuickfixCrossrefPackage.MAIN: sequence_Main(context, (Main) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 8
Source File: AbstractAbstractTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
@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 == AmetamodelPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case AmetamodelPackage.AMODEL: if (rule == grammarAccess.getAbstractCallExtendedParserRuleRule()) { sequence_AbstractCallExtendedParserRule(context, (AModel) semanticObject); return; } else if (rule == grammarAccess.getAbstractCallOverridenParserRuleRule()) { sequence_AbstractCallOverridenParserRule(context, (AModel) semanticObject); return; } else break; case AmetamodelPackage.ATYPE: if (rule == grammarAccess.getExtendableParserRuleRule()) { sequence_ExtendableParserRule(context, (AType) semanticObject); return; } else if (rule == grammarAccess.getInheritedParserRuleRule()) { sequence_InheritedParserRule(context, (AType) semanticObject); return; } else if (rule == grammarAccess.getOverridableParserRule2Rule()) { sequence_OverridableParserRule2(context, (AType) semanticObject); return; } else if (rule == grammarAccess.getOverridableParserRuleRule()) { sequence_OverridableParserRule(context, (AType) semanticObject); return; } else break; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 9
Source File: ParametersTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
@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 == ParametersTestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case ParametersTestLanguagePackage.PARSER_RULE_PARAMETERS: sequence_ParserRuleParameters(context, (ParserRuleParameters) semanticObject); return; case ParametersTestLanguagePackage.SCENARIO: if (rule == grammarAccess.getScenario1Rule() && (parameters.isEmpty())) { sequence_Scenario1$Param$false$(context, (Scenario) semanticObject); return; } else if (rule == grammarAccess.getScenario1Rule() && (ImmutableSet.of(grammarAccess.getScenario1Rule().getParameters().get(0/*Param*/)).equals(parameters))) { sequence_Scenario1$Param$true$(context, (Scenario) semanticObject); return; } else if (rule == grammarAccess.getScenario2Rule()) { sequence_Scenario2(context, (Scenario) semanticObject); return; } else if (rule == grammarAccess.getScenario3Rule()) { sequence_Scenario3(context, (Scenario) semanticObject); return; } else if (rule == grammarAccess.getScenario4Rule()) { sequence_Scenario4(context, (Scenario) semanticObject); return; } else break; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 10
Source File: EObjectAtOffsetTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
@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 == EObjectAtOffsetTestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case EObjectAtOffsetTestLanguagePackage.BAR: if (rule == grammarAccess.getAbstractBarRule()) { sequence_AbstractBar_Bar(context, (Bar) semanticObject); return; } else if (action == grammarAccess.getAbstractBarAccess().getFooBarBarAction_3_0() || rule == grammarAccess.getBarRule()) { sequence_Bar(context, (Bar) semanticObject); return; } else break; case EObjectAtOffsetTestLanguagePackage.FOO: sequence_Foo(context, (Foo) semanticObject); return; case EObjectAtOffsetTestLanguagePackage.FOO_BAR: sequence_AbstractBar(context, (FooBar) semanticObject); return; case EObjectAtOffsetTestLanguagePackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 11
Source File: EnumAndReferenceTestLanguageSemanticSequencer.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
@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 == EnumAndReferenceTestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case EnumAndReferenceTestLanguagePackage.ENTITY_WITH_ENUM_AND_REFERENCE: sequence_EntityWithEnumAndReference(context, (EntityWithEnumAndReference) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 12
Source File: MultiRuleEnumTestLanguageSemanticSequencer.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
@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 == MultiRuleenumsPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case MultiRuleenumsPackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 13
Source File: SerializationBug269362TestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
@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 == SerializationBug269362TestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case SerializationBug269362TestLanguagePackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 14
Source File: JSONSemanticSequencer.java From n4js with Eclipse Public License 1.0 | 5 votes |
@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 == JSONPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case JSONPackage.JSON_ARRAY: sequence_JSONArray(context, (JSONArray) semanticObject); return; case JSONPackage.JSON_BOOLEAN_LITERAL: sequence_JSONBooleanLiteral(context, (JSONBooleanLiteral) semanticObject); return; case JSONPackage.JSON_DOCUMENT: sequence_JSONDocument(context, (JSONDocument) semanticObject); return; case JSONPackage.JSON_NULL_LITERAL: sequence_JSONNullLiteral(context, (JSONNullLiteral) semanticObject); return; case JSONPackage.JSON_NUMERIC_LITERAL: sequence_JSONNumericLiteral(context, (JSONNumericLiteral) semanticObject); return; case JSONPackage.JSON_OBJECT: sequence_JSONObject(context, (JSONObject) semanticObject); return; case JSONPackage.JSON_STRING_LITERAL: sequence_JSONStringLiteral(context, (JSONStringLiteral) semanticObject); return; case JSONPackage.NAME_VALUE_PAIR: sequence_NameValuePair(context, (NameValuePair) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 15
Source File: EnumRulesUiTestLanguageSemanticSequencer.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@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 == EnumRulesUiTestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case EnumRulesUiTestLanguagePackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 16
Source File: PartialParserTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
@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 == PartialParserTestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case PartialParserTestLanguagePackage.ABSTRACT_CHILDREN: sequence_AbstractChildren(context, (AbstractChildren) semanticObject); return; case PartialParserTestLanguagePackage.CHILD: sequence_Child(context, (Child) semanticObject); return; case PartialParserTestLanguagePackage.CHILDREN: sequence_Children(context, (Children) semanticObject); return; case PartialParserTestLanguagePackage.FIRST_CONCRETE: sequence_FirstConcrete(context, (FirstConcrete) semanticObject); return; case PartialParserTestLanguagePackage.NAMED: sequence_Named(context, (Named) semanticObject); return; case PartialParserTestLanguagePackage.NESTED: sequence_Nested(context, (Nested) semanticObject); return; case PartialParserTestLanguagePackage.SECOND_CONCRETE: sequence_SecondConcrete(context, (SecondConcrete) semanticObject); return; case PartialParserTestLanguagePackage.SOME_CONTAINER: sequence_SomeContainer(context, (SomeContainer) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 17
Source File: KeywordsTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
@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 == KeywordsTestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case KeywordsTestLanguagePackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 18
Source File: LocationProviderTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
@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 == LocationprovidertestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case LocationprovidertestPackage.BUS: if (rule == grammarAccess.getBusRule()) { sequence_Bus(context, (Bus) semanticObject); return; } else if (rule == grammarAccess.getComponentRule()) { sequence_Bus_Component(context, (Bus) semanticObject); return; } else break; case LocationprovidertestPackage.DATA: sequence_Data(context, (Data) semanticObject); return; case LocationprovidertestPackage.ELEMENT: sequence_Element(context, (Element) semanticObject); return; case LocationprovidertestPackage.MODE: sequence_Mode(context, (Mode) semanticObject); return; case LocationprovidertestPackage.MODEL: sequence_Model(context, (Model) semanticObject); return; case LocationprovidertestPackage.PORT: sequence_Port(context, (Port) semanticObject); return; case LocationprovidertestPackage.PROCESSOR: if (rule == grammarAccess.getComponentRule()) { sequence_Component_Processor(context, (Processor) semanticObject); return; } else if (rule == grammarAccess.getProcessorRule()) { sequence_Processor(context, (Processor) semanticObject); return; } else break; case LocationprovidertestPackage.TRANSITION: sequence_Transition(context, (Transition) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 19
Source File: Bug287941TestLanguageSemanticSequencer.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@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 == Bug287941TestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case Bug287941TestLanguagePackage.ALIAS_WHERE_ENTRY: sequence_AliasWhereEntry(context, (AliasWhereEntry) semanticObject); return; case Bug287941TestLanguagePackage.AND_WHERE_ENTRY: sequence_AndWhereEntry(context, (AndWhereEntry) semanticObject); return; case Bug287941TestLanguagePackage.BOOLEAN_ATTRIBUTE_WHERE_ENTRY: sequence_BooleanAttributeWhereEntry(context, (BooleanAttributeWhereEntry) semanticObject); return; case Bug287941TestLanguagePackage.DOUBLE_WHERE_ENTRY: sequence_DoubleWhereEntry(context, (DoubleWhereEntry) semanticObject); return; case Bug287941TestLanguagePackage.ELEMENT_SCOPE: sequence_ElementScope(context, (ElementScope) semanticObject); return; case Bug287941TestLanguagePackage.FROM_ENTRY: sequence_FromEntry(context, (FromEntry) semanticObject); return; case Bug287941TestLanguagePackage.IMPORT: sequence_Import(context, (Import) semanticObject); return; case Bug287941TestLanguagePackage.LONG_WHERE_ENTRY: sequence_LongWhereEntry(context, (LongWhereEntry) semanticObject); return; case Bug287941TestLanguagePackage.MQ_LQUERY: sequence_MQLquery(context, (MQLquery) semanticObject); return; case Bug287941TestLanguagePackage.MODEL: sequence_Model(context, (Model) semanticObject); return; case Bug287941TestLanguagePackage.NULL_WHERE_ENTRY: sequence_NullWhereEntry(context, (NullWhereEntry) semanticObject); return; case Bug287941TestLanguagePackage.OR_WHERE_ENTRY: sequence_WhereEntry(context, (OrWhereEntry) semanticObject); return; case Bug287941TestLanguagePackage.REFERENCE_ALIAS_WHERE_ENTRY: sequence_ReferenceAliasWhereEntry(context, (ReferenceAliasWhereEntry) semanticObject); return; case Bug287941TestLanguagePackage.RESOURCE_SCOPE: sequence_ResourceScope(context, (ResourceScope) semanticObject); return; case Bug287941TestLanguagePackage.SCOPE_CLAUSE: sequence_ScopeClause(context, (ScopeClause) semanticObject); return; case Bug287941TestLanguagePackage.SELECT_ENTRY: sequence_SelectEntry(context, (SelectEntry) semanticObject); return; case Bug287941TestLanguagePackage.STRING_ATTRIBUTE_WHERE_ENTRY: sequence_StringAttributeWhereEntry(context, (StringAttributeWhereEntry) semanticObject); return; case Bug287941TestLanguagePackage.SUBSELECT_WHERE_ENTRY: sequence_SubselectWhereEntry(context, (SubselectWhereEntry) semanticObject); return; case Bug287941TestLanguagePackage.VARIABLE_WHERE_ENTRY: sequence_VariableWhereEntry(context, (VariableWhereEntry) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 20
Source File: Bug303200TestLanguageSemanticSequencer.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@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 == Bug303200TestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case Bug303200TestLanguagePackage.ATTRIBUTE: sequence_Attribute(context, (Attribute) semanticObject); return; case Bug303200TestLanguagePackage.BLOCK: sequence_Block(context, (Block) semanticObject); return; case Bug303200TestLanguagePackage.BRACKET_ATTRIBUTE: sequence_Attribute(context, (BracketAttribute) semanticObject); return; case Bug303200TestLanguagePackage.EXPRESSION_STATEMENT: sequence_Statement(context, (ExpressionStatement) semanticObject); return; case Bug303200TestLanguagePackage.FUNCTION_DEFINITION: sequence_FunctionDefinition(context, (FunctionDefinition) semanticObject); return; case Bug303200TestLanguagePackage.FUNCTION_EXPRESSION: sequence_PrimaryExpression(context, (FunctionExpression) semanticObject); return; case Bug303200TestLanguagePackage.IDENTIFIER: sequence_PrimaryExpression(context, (Identifier) semanticObject); return; case Bug303200TestLanguagePackage.INVOCATION: sequence_PostfixExpression(context, (Invocation) semanticObject); return; case Bug303200TestLanguagePackage.LIST_EXPRESSION: sequence_ListExpression(context, (ListExpression) semanticObject); return; case Bug303200TestLanguagePackage.PARAMETERS: sequence_Parameters(context, (Parameters) semanticObject); return; case Bug303200TestLanguagePackage.POSTFIX_EXPRESSION: sequence_PostfixExpression(context, (PostfixExpression) semanticObject); return; case Bug303200TestLanguagePackage.PROGRAM: sequence_Program(context, (Program) semanticObject); return; case Bug303200TestLanguagePackage.PROPERTY_OPERATOR: sequence_PropertyOperator(context, (PropertyOperator) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }