package jetbrains.mps.lang.editor.diagram.testLanguage.structure;

/*Generated by MPS */

import jetbrains.mps.lang.smodel.LanguageConceptIndex;
import jetbrains.mps.lang.smodel.LanguageConceptIndexBuilder;
import jetbrains.mps.smodel.adapter.ids.SConceptId;
import org.jetbrains.mps.openapi.language.SAbstractConcept;

public final class LanguageConceptSwitch {
  private final LanguageConceptIndex myIndex;
  public static final int Diagram1 = 0;
  public static final int Diagram2 = 1;
  public static final int InputPort = 2;
  public static final int Node = 3;
  public static final int NodeWithName = 4;
  public static final int NodeWithPortQueries = 5;
  public static final int NodeWithPorts = 6;
  public static final int NodeWithSize = 7;
  public static final int OutputPort = 8;
  public static final int OutputToInputPortConnector = 9;
  public static final int RectangleNode = 10;

  public LanguageConceptSwitch() {
    LanguageConceptIndexBuilder builder = new LanguageConceptIndexBuilder(0x50560c9658e49c5L, 0xb8e79e4db4c7e97fL);
    builder.put(0x71771b7f74c017aL, Diagram1);
    builder.put(0x7a0afda102e1dce2L, Diagram2);
    builder.put(0x4ce40ecaf41f71f2L, InputPort);
    builder.put(0x7a0afda102e1de05L, Node);
    builder.put(0xb6a495df3833bdeL, NodeWithName);
    builder.put(0x1f9eb8946b56ad09L, NodeWithPortQueries);
    builder.put(0x4ce40ecaf41f71d1L, NodeWithPorts);
    builder.put(0x7a0afda102e202aaL, NodeWithSize);
    builder.put(0x4ce40ecaf41f722aL, OutputPort);
    builder.put(0x4ce40ecaf4106a9bL, OutputToInputPortConnector);
    builder.put(0x71771b7f74c01b3L, RectangleNode);
    myIndex = builder.seal();
  }

  /*package*/ int index(SConceptId cid) {
    return myIndex.index(cid);
  }

  public int index(SAbstractConcept concept) {
    return myIndex.index(concept);
  }
}
