use of com.amazonaws.services.s3.model 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 com.amazonaws.services.s3.model in project xtext-core by eclipse.
the class Bug250313Test method testSTRINGConversion_01.
@Test
public void testSTRINGConversion_01() throws Exception {
Model model = (Model) getModel("1 'str'");
assertEquals("str", model.getValue());
assertNotNull(lexerRule);
assertEquals("org.eclipse.xtext.common.Terminals.STRING", lexerRule);
assertTrue(node instanceof ILeafNode);
assertEquals("'str'", string);
assertEquals(1, convertCallCount);
}
use of com.amazonaws.services.s3.model in project xtext-core by eclipse.
the class Bug250313Test method testIDConversion_03.
@Test
public void testIDConversion_03() throws Exception {
Model model = (Model) getModel("str");
assertEquals("str", model.getValue());
assertEquals("org.eclipse.xtext.common.Terminals.ID", lexerRule);
assertTrue(node instanceof ILeafNode);
assertEquals("str", string);
assertEquals(1, convertCallCount);
}
use of com.amazonaws.services.s3.model in project xtext-core by eclipse.
the class Bug250313Test method testSTRINGConversion_05.
@Test
public void testSTRINGConversion_05() throws Exception {
Model model = (Model) getModel("2+ 'str'");
assertEquals("[str]", model.getMultiValue().toString());
assertEquals("org.eclipse.xtext.common.Terminals.STRING", lexerRule);
assertTrue(node instanceof ILeafNode);
assertEquals("'str'", string);
assertEquals(1, convertCallCount);
}
use of com.amazonaws.services.s3.model in project xtext-core by eclipse.
the class Bug250313Test method testIDConversion_02.
@Test
public void testIDConversion_02() throws Exception {
Model model = (Model) getModel("1 ^str");
assertEquals("str", model.getValue());
assertEquals("org.eclipse.xtext.common.Terminals.ID", lexerRule);
assertTrue(node instanceof ILeafNode);
assertEquals("^str", string);
assertEquals(1, convertCallCount);
}
Aggregations