package jetbrains.mps.lang.dataFlow.actions;

/*Generated by MPS */

import jetbrains.mps.openapi.actions.descriptor.NodeFactory;
import org.jetbrains.mps.openapi.model.SNode;
import org.jetbrains.mps.openapi.model.SModel;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SLinkOperations;
import org.jetbrains.mps.openapi.language.SConcept;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;
import org.jetbrains.mps.openapi.language.SContainmentLink;

public class BaseJumps {
  public static class NodeFactory_2557916264116455381 implements NodeFactory {
    public void setup(SNode newNode, SNode sampleNode, SNode enclosingNode, int index, SModel model) {
      {
        final SNode jump = sampleNode;
        if (SNodeOperations.isInstanceOf(jump, CONCEPTS.BaseEmitJumpStatement$9e)) {
          SLinkOperations.setTarget(newNode, LINKS.jumpTo$P0Qx, SLinkOperations.getTarget(jump, LINKS.jumpTo$P0Qx));
          SLinkOperations.setTarget(newNode, LINKS.position$hFoB, SLinkOperations.getTarget(jump, LINKS.position$hFoB));
        }
      }
    }
  }

  private static final class CONCEPTS {
    /*package*/ static final SConcept BaseEmitJumpStatement$9e = MetaAdapterFactory.getConcept(0x7fa12e9cb9494976L, 0xb4fa19accbc320b4L, 0x118e5bc8a99L, "jetbrains.mps.lang.dataFlow.structure.BaseEmitJumpStatement");
  }

  private static final class LINKS {
    /*package*/ static final SContainmentLink jumpTo$P0Qx = MetaAdapterFactory.getContainmentLink(0x7fa12e9cb9494976L, 0xb4fa19accbc320b4L, 0x118e5bc8a99L, 0x118e5bcba84L, "jumpTo");
    /*package*/ static final SContainmentLink position$hFoB = MetaAdapterFactory.getContainmentLink(0x7fa12e9cb9494976L, 0xb4fa19accbc320b4L, 0x118e5a42658L, 0x1160a375bea5106L, "position");
  }
}
