package jetbrains.mps.baseLanguage.closures.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.lang.smodel.generator.smodelAdapter.SPropertyOperations;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations;
import org.jetbrains.mps.openapi.language.SInterfaceConcept;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;
import org.jetbrains.mps.openapi.language.SProperty;

public class closure_variable_renameToUnused_QuickFix extends QuickFix_Runtime {
  public closure_variable_renameToUnused_QuickFix() {
    super(new SNodePointer("r:00000000-0000-4000-0000-011c89590337(jetbrains.mps.baseLanguage.closures.typesystem)", "8531787244795976425"));
  }
  public String getDescription(SNode node) {
    return "Rename to " + ((String) closure_variable_renameToUnused_QuickFix.this.getField("suggestedName")[0]);
  }
  public void execute(SNode node) {
    SPropertyOperations.assign(SNodeOperations.as(node, CONCEPTS.INamedConcept$Kd), PROPS.name$MnvL, ((String) closure_variable_renameToUnused_QuickFix.this.getField("suggestedName")[0]));
  }

  private static final class CONCEPTS {
    /*package*/ static final SInterfaceConcept INamedConcept$Kd = MetaAdapterFactory.getInterfaceConcept(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, "jetbrains.mps.lang.core.structure.INamedConcept");
  }

  private static final class PROPS {
    /*package*/ static final SProperty name$MnvL = MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name");
  }
}
