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

fix regression

parent 8ee3c366
Branches
Tags
No related merge requests found
...@@ -7,7 +7,7 @@ import org.jastadd.tooling.psi.RelAstGrammarTypeDecl; ...@@ -7,7 +7,7 @@ import org.jastadd.tooling.psi.RelAstGrammarTypeDecl;
public class RelAstGrammarPsiImplUtil { public class RelAstGrammarPsiImplUtil {
public static String getName(RelAstGrammarTypeDecl element) { public static String getName(RelAstGrammarTypeDecl element) {
// this finds the *first* ID, which is what we want // 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) { if (keyNode != null) {
// IMPORTANT: Convert embedded escaped spaces to simple spaces // IMPORTANT: Convert embedded escaped spaces to simple spaces
return keyNode.getText(); return keyNode.getText();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment