From 279e98eb6b67fd2d71c233361cc4f54850169780 Mon Sep 17 00:00:00 2001 From: Johannes Mey <johannes.mey@tu-dresden.de> Date: Sun, 27 Dec 2020 23:07:43 +0100 Subject: [PATCH] fix regression --- .../org/jastadd/tooling/psi/impl/RelAstGrammarPsiImplUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jastadd/tooling/psi/impl/RelAstGrammarPsiImplUtil.java b/src/main/java/org/jastadd/tooling/psi/impl/RelAstGrammarPsiImplUtil.java index 573ac98..e859616 100644 --- a/src/main/java/org/jastadd/tooling/psi/impl/RelAstGrammarPsiImplUtil.java +++ b/src/main/java/org/jastadd/tooling/psi/impl/RelAstGrammarPsiImplUtil.java @@ -7,7 +7,7 @@ import org.jastadd.tooling.psi.RelAstGrammarTypeDecl; public class RelAstGrammarPsiImplUtil { public static String getName(RelAstGrammarTypeDecl element) { // this finds the *first* ID, which is what we want - ASTNode keyNode = element.getNode().findChildByType(RelAstGrammarTypes.ID); + ASTNode keyNode = element.getNode().findChildByType(RelAstGrammarTypes.DECLARED_NAME); if (keyNode != null) { // IMPORTANT: Convert embedded escaped spaces to simple spaces return keyNode.getText(); -- GitLab