Skip to content
Snippets Groups Projects
Commit 279e98eb authored by Johannes Mey's avatar Johannes Mey
Browse files

fix regression

parent 8ee3c366
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment