예제 #1
0
 @Nullable
 public static JetExpression getBaseExpressionIfLabeledExpression(
     @NotNull JetPrefixExpression expression) {
   if (isLabeledExpression(expression)) {
     return expression.getBaseExpression();
   }
   return null;
 }
예제 #2
0
 public static boolean isLabeledExpression(JetPrefixExpression expression) {
   return JetTokens.LABELS.contains(
       expression.getOperationReference().getReferencedNameElementType());
 }