package jetbrains.mps.kotlin.typesystem;

/*Generated by MPS */

import jetbrains.mps.errors.QuickFix_Runtime;
import jetbrains.mps.smodel.SNodePointer;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.kotlin.behavior.IClassSuperSpecifier__BehaviorDescriptor;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations;

public class ClassSuperSpecifier_ChangeToConstructor_QuickFix extends QuickFix_Runtime {
  public ClassSuperSpecifier_ChangeToConstructor_QuickFix() {
    super(new SNodePointer("r:aff09eac-afd3-4057-bdd8-e02a572d1436(jetbrains.mps.kotlin.typesystem)", "1806979145068180660"));
  }
  public String getDescription(SNode node) {
    return "Change to constructor invocation";
  }
  public void execute(SNode node) {
    SNode constructor = IClassSuperSpecifier__BehaviorDescriptor.convertToConstructor_id1$jFvlEWuyJ.invoke(((SNode) ClassSuperSpecifier_ChangeToConstructor_QuickFix.this.getField("classSpecifier")[0]));
    if (constructor != ((SNode) ClassSuperSpecifier_ChangeToConstructor_QuickFix.this.getField("classSpecifier")[0])) {
      SNodeOperations.replaceWithAnother(((SNode) ClassSuperSpecifier_ChangeToConstructor_QuickFix.this.getField("classSpecifier")[0]), constructor);
    }
  }
}
