public IElementType terminatorType() { String promoter = getPromoter(); Base group = getGroup(); IElementType terminatorType; if (Base.isHeredocPromoter(promoter)) { terminatorType = group.heredocTerminatorType; } else { terminatorType = group.terminatorType; } return terminatorType; }
public IElementType promoterType() { String promoter = getPromoter(); Base group = getGroup(); IElementType promoterType; if (Base.isHeredocPromoter(promoter)) { promoterType = group.heredocPromoterType; } else { promoterType = group.promoterType; } return promoterType; }