protected String _localVar(final EnumLiteralDeclaration it) { EnumRule _containingEnumRule = GrammarUtil.containingEnumRule(it); AbstractElement _alternatives = _containingEnumRule.getAlternatives(); List<AbstractElement> _contentsAsList = this.contentsAsList(_alternatives); int _indexOf = _contentsAsList.indexOf(it); return ("enumLiteral_" + Integer.valueOf(_indexOf)); }
@Override public Boolean caseEnumRule(EnumRule object) { return doSwitch(object.getAlternatives()); }