use of org.elixir_lang.psi.ElixirNoParenthesesOneArgument in project intellij-elixir by KronicDeth.
the class FieldWithDefaultValue method is.
/*
* Static Methods
*/
public static boolean is(QuotableKeywordPair quotableKeywordPair) {
boolean fieldWithDefaultValue = false;
PsiElement parent = quotableKeywordPair.getParent();
if (parent instanceof QuotableKeywordList) {
PsiElement grandParent = parent.getParent();
if (grandParent instanceof ElixirNoParenthesesOneArgument) {
PsiElement greatGrandParent = grandParent.getParent();
if (greatGrandParent instanceof Call) {
Call greatGrandParentCall = (Call) greatGrandParent;
fieldWithDefaultValue = Structure.is(greatGrandParentCall);
}
}
}
return fieldWithDefaultValue;
}
use of org.elixir_lang.psi.ElixirNoParenthesesOneArgument in project intellij-elixir by KronicDeth.
the class Field method is.
/*
* Static Methods
*/
public static boolean is(ElixirAtom atom) {
boolean field = false;
PsiElement parent = atom.getParent();
if (parent instanceof ElixirAccessExpression && parent.getChildren().length == 1) {
PsiElement grandParent = parent.getParent();
if (grandParent instanceof ElixirList) {
PsiElement greatGrandParent = grandParent.getParent();
if (greatGrandParent instanceof ElixirAccessExpression && greatGrandParent.getChildren().length == 1) {
PsiElement greatGreatGrandParent = greatGrandParent.getParent();
if (greatGreatGrandParent instanceof ElixirNoParenthesesOneArgument) {
PsiElement greatGreatGreatGrandParent = greatGreatGrandParent.getParent();
if (greatGreatGreatGrandParent instanceof Call) {
Call greatGreatGreatGrandParentCall = (Call) greatGreatGreatGrandParent;
field = Structure.is(greatGreatGreatGrandParentCall);
}
}
}
}
}
return field;
}
Aggregations