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