Skip to content

Emfatic language does not allow setting the 'literal' attribute of EEnumLiteral #2

Description

@eclipsewebmaster

Jörn Guy Süß CLA 2022-12-14 00:48:24 EST
The grammar of Emfatic defines an EEnumliteral like this:

sequence enumLiteral : leadingAnnotations=annotations name=ID (EQUALS val=INT_LITERAL)? trailingAnnotations=annotations SEMI ;

But Ecore defines it like this:
https://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EEnumLiteral.html

with an extra attribute literal, defined as

This is the literal, string value that represents this enumerator value. This is used in persisting instances of enumerated type. If set to null, it will return the name, instead.

Checking the source code of Emfatic, there is no call to the setLiteral() method anywhere. This, together with the grammar, seems to indicate that Emfatic does not offer this feature.

Could this please be added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions