Exemplo n.º 1
0
 private boolean isMutatingOperation(@NotNull LighterASTNode element) {
   return LightTreeUtil.firstChildOfType(tree, element, JavaTokenType.PLUSPLUS) != null
       || LightTreeUtil.firstChildOfType(tree, element, JavaTokenType.MINUSMINUS) != null;
 }
Exemplo n.º 2
0
 private boolean isCall(@NotNull LighterASTNode element, IElementType type) {
   return type == NEW_EXPRESSION
           && LightTreeUtil.firstChildOfType(tree, element, EXPRESSION_LIST) != null
       || type == METHOD_CALL_EXPRESSION;
 }