コード例 #1
0
 @NotNull
 @Override
 public String getText() {
   return JetBundle.message(
       "add.star.projections",
       TypeReconstructionUtil.getTypeNameAndStarProjectionsString("", argumentCount));
 }
コード例 #2
0
 @NotNull
 @Override
 public String getText() {
   String stars =
       TypeReconstructionUtil.getTypeNameAndStarProjectionsString(
           "", getElement().getTypeArgumentsAsTypes().size());
   return KotlinBundle.message("change.to.star.projection", stars);
 }
コード例 #3
0
  @Override
  public void invoke(@NotNull Project project, Editor editor, JetFile file)
      throws IncorrectOperationException {
    assert element.getTypeArguments().isEmpty();

    String typeString =
        TypeReconstructionUtil.getTypeNameAndStarProjectionsString(
            element.getText(), argumentCount);
    JetTypeElement replacement = JetPsiFactory(file).createType(typeString).getTypeElement();
    assert replacement != null : "No type element after parsing " + typeString;

    element.replace(replacement);
  }