Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
fix EnumeratedTypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Jun 24, 2016
1 parent d5fc346 commit 03a67bf
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -341,7 +341,12 @@ public static int getTokenLength(CommonToken token) {
}

public static String[] nameProposals(Node node) {
return nameProposals(node, false);
if (node instanceof Tree.Term || node instanceof Tree.Type) {
return nameProposals(node, false);
}
else {
return new String[] {"it"};
}
}
public static String[] nameProposals(Node node, boolean unplural) {
return toJavaStringArray(delegate.nameProposals(node, null, unplural));
Expand Down

0 comments on commit 03a67bf

Please sign in to comment.