note added

This commit is contained in:
sefftinge 2008-10-27 09:14:11 +00:00
parent c8f9edc9ba
commit 67ea1fce13

View file

@ -114,6 +114,7 @@ public class Xtext2ECoreInterpretationContext {
}
else if (element instanceof Group) {
Group group = (Group) element;
//TODO Too strict. What about : foo(Bar|Foo ';')
if (group.getAbstractTokens().size() != 1)
throw new IllegalArgumentException("Group must have exactly one element.");
return getCompatibleTypeNameOfAlternatives(group.getAbstractTokens().get(0));