Search in sources :

Example 1 with Base

use of org.elixir_lang.lexer.group.Base in project intellij-elixir by KronicDeth.

the class StackFrame method terminatorType.

public IElementType terminatorType() {
    String promoter = getPromoter();
    Base group = getGroup();
    IElementType terminatorType;
    if (Base.isHeredocPromoter(promoter)) {
        terminatorType = group.heredocTerminatorType;
    } else {
        terminatorType = group.terminatorType;
    }
    return terminatorType;
}
Also used : IElementType(com.intellij.psi.tree.IElementType) Base(org.elixir_lang.lexer.group.Base)

Example 2 with Base

use of org.elixir_lang.lexer.group.Base in project intellij-elixir by KronicDeth.

the class StackFrame method promoterType.

public IElementType promoterType() {
    String promoter = getPromoter();
    Base group = getGroup();
    IElementType promoterType;
    if (Base.isHeredocPromoter(promoter)) {
        promoterType = group.heredocPromoterType;
    } else {
        promoterType = group.promoterType;
    }
    return promoterType;
}
Also used : IElementType(com.intellij.psi.tree.IElementType) Base(org.elixir_lang.lexer.group.Base)

Aggregations

IElementType (com.intellij.psi.tree.IElementType)2 Base (org.elixir_lang.lexer.group.Base)2