Permalink
Browse files

better methodRenames support

  • Loading branch information...
gregsh committed Mar 26, 2012
1 parent ad4a5fb commit f097de84320cc71f5221db035954353c28d770e9
Showing with 2 additions and 1 deletion.
  1. +2 −1 support/org/intellij/grammar/generator/ParserGenerator.java
@@ -1179,7 +1179,8 @@ else if (effectiveType == BNF_REFERENCE_OR_TOKEN) {
ruleName = treeRule.getName();
}
if (ruleName == null) return;
- String getterNameBody = getAttribute(rule, "methodRenames", "get" + toIdentifier(ruleName, ""), ruleName);
+ String defaultGetterName = "get" + toIdentifier(ruleName, "");
+ String getterNameBody = getAttribute(rule, "methodRenames", defaultGetterName, defaultGetterName);
String getterName = getterNameBody + (many ? "List" : "");
if (!intf) out("@Override");
if (type == REQUIRED) {

0 comments on commit f097de8

Please sign in to comment.