Skip to content

Commit a7f79dd

Browse files
committed
set EnumConstant in the FieldSymbol of EnumConstantDeclarations
1 parent 110577f commit a7f79dd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

javaDSL/src/main/java/de/monticore/java/JavaDSLTool.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ protected void storeSymbolsInFolder(ASTCompilationUnit compilationUnit, String f
312312
* "a/b/c"
313313
*
314314
* @param compilationUnit The ast of the model
315+
* @return the relative file path as String based on the models qualified name
315316
*/
316317
protected String getRelativeFilePath(ASTCompilationUnit compilationUnit) {
317318
Optional<ASTMCQualifiedName> qualifiedName = Optional.empty();

javaDSL/src/main/java/de/monticore/java/javadsl/_symboltable/JavaDSLSymbolTableCompleter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public void endVisit(ASTEnumConstantDeclaration node) {
7979
symbol.setIsFinal(true);
8080
symbol.setIsReadOnly(true);
8181
symbol.setIsPublic(true);
82+
symbol.setIsEnumConstant(true);
8283

8384
final String enumName = node.getEnclosingScope().getName();
8485
final Optional<TypeDeclarationSymbol> enumDeclaration =

0 commit comments

Comments
 (0)