package jetbrains.mps.lang.smodel.query.migration;
/*Generated by MPS */
import jetbrains.mps.lang.migration.runtime.base.MigrationScriptBase;
import org.jetbrains.mps.openapi.model.SNode;
import org.jetbrains.mps.openapi.module.SModule;
import org.jetbrains.mps.openapi.module.SearchScope;
import jetbrains.mps.lang.smodel.query.runtime.CommandUtil;
import jetbrains.mps.lang.smodel.query.runtime.QueryExecutionContext;
import jetbrains.mps.internal.collections.runtime.Sequence;
import jetbrains.mps.internal.collections.runtime.IWhereFilter;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SConceptOperations;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;
import jetbrains.mps.internal.collections.runtime.IVisitor;
import jetbrains.mps.lang.structure.plugin.RefactoringRuntime;
import jetbrains.mps.lang.migration.runtime.base.Problem;
import jetbrains.mps.internal.collections.runtime.ISequenceClosure;
import java.util.Iterator;
import jetbrains.mps.baseLanguage.closures.runtime.YieldingIterator;
import jetbrains.mps.internal.collections.runtime.ISelector;
import jetbrains.mps.lang.migration.runtime.base.DeprecatedConceptNotMigratedProblem;
import jetbrains.mps.lang.migration.runtime.base.DeprecatedConceptMemberNotMigratedProblem;
import jetbrains.mps.lang.migration.runtime.base.MigrationScriptReference;
public class MigrationScript_0 extends MigrationScriptBase {
public String getCaption() {
return "Move nodes refactoring";
}
@Override
public boolean isRerunnable() {
return true;
}
public SNode execute(final SModule m) {
doExecute(m);
return null;
}
public void doExecute(final SModule m) {
{
final SearchScope scope = CommandUtil.createScope(m);
QueryExecutionContext context = new QueryExecutionContext() {
public SearchScope getDefaultSearchScope() {
return scope;
}
};
Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x3bc64421763adda2L, "jetbrains.mps.lang.smodel.query.structure.ProjectScope_old")));
}
}).visitAll(new IVisitor<SNode>() {
public void visit(SNode node) {
RefactoringRuntime.replaceWithNewConcept(node, MetaAdapterFactory.getConcept(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x3bc64421763adda2L, "jetbrains.mps.console.base.structure.ProjectScope"));
}
});
Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0xa721a59126bb908L, "jetbrains.mps.lang.smodel.query.structure.ProjectExpression_old")));
}
}).visitAll(new IVisitor<SNode>() {
public void visit(SNode node) {
RefactoringRuntime.replaceWithNewConcept(node, MetaAdapterFactory.getConcept(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0xa721a59126bb908L, "jetbrains.mps.console.base.structure.ProjectExpression"));
}
});
Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6c8954f469a7c420L, "jetbrains.mps.lang.smodel.query.structure.AbstractPrintExpression_old")));
}
}).visitAll(new IVisitor<SNode>() {
public void visit(SNode node) {
RefactoringRuntime.replaceWithNewConcept(node, MetaAdapterFactory.getConcept(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x6c8954f469a7c420L, "jetbrains.mps.console.base.structure.AbstractPrintExpression"));
}
});
Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x4c7a26b31bd03b59L, "jetbrains.mps.lang.smodel.query.structure.PrintNodeExpression_old")));
}
}).visitAll(new IVisitor<SNode>() {
public void visit(SNode node) {
RefactoringRuntime.replaceWithNewConcept(node, MetaAdapterFactory.getConcept(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x4c7a26b31bd03b59L, "jetbrains.mps.console.base.structure.PrintNodeExpression"));
}
});
Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x5f195a051bd9bddcL, "jetbrains.mps.lang.smodel.query.structure.PrintNodeReferenceExpression_old")));
}
}).visitAll(new IVisitor<SNode>() {
public void visit(SNode node) {
RefactoringRuntime.replaceWithNewConcept(node, MetaAdapterFactory.getConcept(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x5f195a051bd9bddcL, "jetbrains.mps.console.base.structure.PrintNodeReferenceExpression"));
}
});
Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6a40a3596560a9d9L, "jetbrains.mps.lang.smodel.query.structure.BLExpression_old")));
}
}).visitAll(new IVisitor<SNode>() {
public void visit(SNode node) {
RefactoringRuntime.replaceWithNewConcept(node, MetaAdapterFactory.getConcept(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x6a40a3596560a9d9L, "jetbrains.mps.console.base.structure.BLExpression"));
}
});
Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x7417cca3eb1feca9L, "jetbrains.mps.lang.smodel.query.structure.PrintTextExpression_old")));
}
}).visitAll(new IVisitor<SNode>() {
public void visit(SNode node) {
RefactoringRuntime.replaceWithNewConcept(node, MetaAdapterFactory.getConcept(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x7417cca3eb1feca9L, "jetbrains.mps.console.base.structure.PrintTextExpression"));
}
});
Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6979f0787b2a9377L, "jetbrains.mps.lang.smodel.query.structure.PrintExpression_old")));
}
}).visitAll(new IVisitor<SNode>() {
public void visit(SNode node) {
RefactoringRuntime.replaceWithNewConcept(node, MetaAdapterFactory.getConcept(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x6979f0787b2a9377L, "jetbrains.mps.console.base.structure.PrintExpression"));
}
});
Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6979f0787b7db64fL, "jetbrains.mps.lang.smodel.query.structure.PrintSequenceExpression_old")));
}
}).visitAll(new IVisitor<SNode>() {
public void visit(SNode node) {
RefactoringRuntime.replaceWithNewConcept(node, MetaAdapterFactory.getConcept(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x6979f0787b7db64fL, "jetbrains.mps.console.base.structure.PrintSequenceExpression"));
}
});
Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x4bd43869e610f3e9L, "jetbrains.mps.lang.smodel.query.structure.BLCommand_old")));
}
}).visitAll(new IVisitor<SNode>() {
public void visit(SNode node) {
RefactoringRuntime.replaceWithNewConcept(node, MetaAdapterFactory.getConcept(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x4bd43869e610f3e9L, "jetbrains.mps.console.base.structure.BLCommand"));
}
});
Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SNodeOperations.isInstanceOf(it, SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6a40a3596560a9d9L, "jetbrains.mps.lang.smodel.query.structure.BLExpression_old")));
}
}).visitAll(new IVisitor<SNode>() {
public void visit(SNode node) {
RefactoringRuntime.changeContainmentLinkInstance(node, MetaAdapterFactory.getContainmentLink(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6a40a3596560a9d9L, 0x6a40a3596560aa42L, "expression_old"), MetaAdapterFactory.getContainmentLink(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x6a40a3596560a9d9L, 0x6a40a3596560aa42L, "expression"));
}
});
Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SNodeOperations.isInstanceOf(it, SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x4bd43869e610f3e9L, "jetbrains.mps.lang.smodel.query.structure.BLCommand_old")));
}
}).visitAll(new IVisitor<SNode>() {
public void visit(SNode node) {
RefactoringRuntime.changeContainmentLinkInstance(node, MetaAdapterFactory.getContainmentLink(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x4bd43869e610f3e9L, 0x188f8efcef6cea65L, "body_old"), MetaAdapterFactory.getContainmentLink(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x4bd43869e610f3e9L, 0x188f8efcef6cea65L, "body"));
}
});
Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SNodeOperations.isInstanceOf(it, SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6c8954f469a7c420L, "jetbrains.mps.lang.smodel.query.structure.AbstractPrintExpression_old")));
}
}).visitAll(new IVisitor<SNode>() {
public void visit(SNode node) {
RefactoringRuntime.changeContainmentLinkInstance(node, MetaAdapterFactory.getContainmentLink(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6c8954f469a7c420L, 0x7417cca3eb1ff761L, "object_old"), MetaAdapterFactory.getContainmentLink(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x6c8954f469a7c420L, 0x7417cca3eb1ff761L, "object"));
}
});
Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x75bb0160f191d79fL, "jetbrains.mps.lang.smodel.query.structure.ShowExpression_old")));
}
}).visitAll(new IVisitor<SNode>() {
public void visit(SNode node) {
RefactoringRuntime.replaceWithNewConcept(node, MetaAdapterFactory.getConcept(0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x75bb0160f191d79fL, "jetbrains.mps.console.ideCommands.structure.ShowExpression"));
}
});
Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SNodeOperations.isInstanceOf(it, SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x75bb0160f191d79fL, "jetbrains.mps.lang.smodel.query.structure.ShowExpression_old")));
}
}).visitAll(new IVisitor<SNode>() {
public void visit(SNode node) {
RefactoringRuntime.changeContainmentLinkInstance(node, MetaAdapterFactory.getContainmentLink(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x75bb0160f191d79fL, 0x6979f0787b81e875L, "object_old"), MetaAdapterFactory.getContainmentLink(0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x75bb0160f191d79fL, 0x6979f0787b81e875L, "object"));
}
});
}
}
@Override
public Iterable<Problem> check(SModule m) {
{
final SearchScope scope = CommandUtil.createScope(m);
final QueryExecutionContext context = new QueryExecutionContext() {
public SearchScope getDefaultSearchScope() {
return scope;
}
};
return Sequence.fromClosure(new ISequenceClosure<Problem>() {
public Iterable<Problem> iterable() {
return new Iterable<Problem>() {
public Iterator<Problem> iterator() {
return new YieldingIterator<Problem>() {
private int __CP__ = 0;
protected boolean moveToNext() {
__loop__:
do {
__switch__:
switch (this.__CP__) {
case -1:
assert false : "Internal error";
return false;
case 2:
this._2__yield_zc5nt1_a0a0c0a0e_it = Sequence.fromIterable(Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x3bc64421763adda2L, "jetbrains.mps.lang.smodel.query.structure.ProjectScope_old")));
}
}).select(new ISelector<SNode, Problem>() {
public Problem select(SNode it) {
Problem problem = new DeprecatedConceptNotMigratedProblem(it);
return problem;
}
})).iterator();
case 3:
if (!(this._2__yield_zc5nt1_a0a0c0a0e_it.hasNext())) {
this.__CP__ = 5;
break;
}
this._2__yield_zc5nt1_a0a0c0a0e = this._2__yield_zc5nt1_a0a0c0a0e_it.next();
this.__CP__ = 4;
break;
case 5:
this._6__yield_zc5nt1_b0a0c0a0e_it = Sequence.fromIterable(Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0xa721a59126bb908L, "jetbrains.mps.lang.smodel.query.structure.ProjectExpression_old")));
}
}).select(new ISelector<SNode, Problem>() {
public Problem select(SNode it) {
Problem problem = new DeprecatedConceptNotMigratedProblem(it);
return problem;
}
})).iterator();
case 7:
if (!(this._6__yield_zc5nt1_b0a0c0a0e_it.hasNext())) {
this.__CP__ = 9;
break;
}
this._6__yield_zc5nt1_b0a0c0a0e = this._6__yield_zc5nt1_b0a0c0a0e_it.next();
this.__CP__ = 8;
break;
case 9:
this._10__yield_zc5nt1_c0a0c0a0e_it = Sequence.fromIterable(Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6c8954f469a7c420L, "jetbrains.mps.lang.smodel.query.structure.AbstractPrintExpression_old")));
}
}).select(new ISelector<SNode, Problem>() {
public Problem select(SNode it) {
Problem problem = new DeprecatedConceptNotMigratedProblem(it);
return problem;
}
})).iterator();
case 11:
if (!(this._10__yield_zc5nt1_c0a0c0a0e_it.hasNext())) {
this.__CP__ = 13;
break;
}
this._10__yield_zc5nt1_c0a0c0a0e = this._10__yield_zc5nt1_c0a0c0a0e_it.next();
this.__CP__ = 12;
break;
case 13:
this._14__yield_zc5nt1_d0a0c0a0e_it = Sequence.fromIterable(Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x4c7a26b31bd03b59L, "jetbrains.mps.lang.smodel.query.structure.PrintNodeExpression_old")));
}
}).select(new ISelector<SNode, Problem>() {
public Problem select(SNode it) {
Problem problem = new DeprecatedConceptNotMigratedProblem(it);
return problem;
}
})).iterator();
case 15:
if (!(this._14__yield_zc5nt1_d0a0c0a0e_it.hasNext())) {
this.__CP__ = 17;
break;
}
this._14__yield_zc5nt1_d0a0c0a0e = this._14__yield_zc5nt1_d0a0c0a0e_it.next();
this.__CP__ = 16;
break;
case 17:
this._18__yield_zc5nt1_e0a0c0a0e_it = Sequence.fromIterable(Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x5f195a051bd9bddcL, "jetbrains.mps.lang.smodel.query.structure.PrintNodeReferenceExpression_old")));
}
}).select(new ISelector<SNode, Problem>() {
public Problem select(SNode it) {
Problem problem = new DeprecatedConceptNotMigratedProblem(it);
return problem;
}
})).iterator();
case 19:
if (!(this._18__yield_zc5nt1_e0a0c0a0e_it.hasNext())) {
this.__CP__ = 21;
break;
}
this._18__yield_zc5nt1_e0a0c0a0e = this._18__yield_zc5nt1_e0a0c0a0e_it.next();
this.__CP__ = 20;
break;
case 21:
this._22__yield_zc5nt1_f0a0c0a0e_it = Sequence.fromIterable(Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6a40a3596560a9d9L, "jetbrains.mps.lang.smodel.query.structure.BLExpression_old")));
}
}).select(new ISelector<SNode, Problem>() {
public Problem select(SNode it) {
Problem problem = new DeprecatedConceptNotMigratedProblem(it);
return problem;
}
})).iterator();
case 23:
if (!(this._22__yield_zc5nt1_f0a0c0a0e_it.hasNext())) {
this.__CP__ = 25;
break;
}
this._22__yield_zc5nt1_f0a0c0a0e = this._22__yield_zc5nt1_f0a0c0a0e_it.next();
this.__CP__ = 24;
break;
case 25:
this._26__yield_zc5nt1_g0a0c0a0e_it = Sequence.fromIterable(Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x7417cca3eb1feca9L, "jetbrains.mps.lang.smodel.query.structure.PrintTextExpression_old")));
}
}).select(new ISelector<SNode, Problem>() {
public Problem select(SNode it) {
Problem problem = new DeprecatedConceptNotMigratedProblem(it);
return problem;
}
})).iterator();
case 27:
if (!(this._26__yield_zc5nt1_g0a0c0a0e_it.hasNext())) {
this.__CP__ = 29;
break;
}
this._26__yield_zc5nt1_g0a0c0a0e = this._26__yield_zc5nt1_g0a0c0a0e_it.next();
this.__CP__ = 28;
break;
case 29:
this._30__yield_zc5nt1_h0a0c0a0e_it = Sequence.fromIterable(Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6979f0787b2a9377L, "jetbrains.mps.lang.smodel.query.structure.PrintExpression_old")));
}
}).select(new ISelector<SNode, Problem>() {
public Problem select(SNode it) {
Problem problem = new DeprecatedConceptNotMigratedProblem(it);
return problem;
}
})).iterator();
case 31:
if (!(this._30__yield_zc5nt1_h0a0c0a0e_it.hasNext())) {
this.__CP__ = 33;
break;
}
this._30__yield_zc5nt1_h0a0c0a0e = this._30__yield_zc5nt1_h0a0c0a0e_it.next();
this.__CP__ = 32;
break;
case 33:
this._34__yield_zc5nt1_i0a0c0a0e_it = Sequence.fromIterable(Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6979f0787b7db64fL, "jetbrains.mps.lang.smodel.query.structure.PrintSequenceExpression_old")));
}
}).select(new ISelector<SNode, Problem>() {
public Problem select(SNode it) {
Problem problem = new DeprecatedConceptNotMigratedProblem(it);
return problem;
}
})).iterator();
case 35:
if (!(this._34__yield_zc5nt1_i0a0c0a0e_it.hasNext())) {
this.__CP__ = 37;
break;
}
this._34__yield_zc5nt1_i0a0c0a0e = this._34__yield_zc5nt1_i0a0c0a0e_it.next();
this.__CP__ = 36;
break;
case 37:
this._38__yield_zc5nt1_j0a0c0a0e_it = Sequence.fromIterable(Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x4bd43869e610f3e9L, "jetbrains.mps.lang.smodel.query.structure.BLCommand_old")));
}
}).select(new ISelector<SNode, Problem>() {
public Problem select(SNode it) {
Problem problem = new DeprecatedConceptNotMigratedProblem(it);
return problem;
}
})).iterator();
case 39:
if (!(this._38__yield_zc5nt1_j0a0c0a0e_it.hasNext())) {
this.__CP__ = 41;
break;
}
this._38__yield_zc5nt1_j0a0c0a0e = this._38__yield_zc5nt1_j0a0c0a0e_it.next();
this.__CP__ = 40;
break;
case 41:
this._42__yield_zc5nt1_k0a0c0a0e_it = Sequence.fromIterable(Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SNodeOperations.isInstanceOf(it, SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6a40a3596560a9d9L, "jetbrains.mps.lang.smodel.query.structure.BLExpression_old"))) && SNodeOperations.isInstanceOf(it, SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x6a40a3596560a9d9L, "jetbrains.mps.console.base.structure.BLExpression")));
}
}).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return it.getChildren(MetaAdapterFactory.getContainmentLink(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6a40a3596560a9d9L, 0x6a40a3596560aa42L, "expression_old")).iterator().hasNext();
}
}).select(new ISelector<SNode, Problem>() {
public Problem select(SNode it) {
return DeprecatedConceptMemberNotMigratedProblem.deprecatedContainmentLink(it, MetaAdapterFactory.getContainmentLink(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6a40a3596560a9d9L, 0x6a40a3596560aa42L, "expression_old"));
}
})).iterator();
case 43:
if (!(this._42__yield_zc5nt1_k0a0c0a0e_it.hasNext())) {
this.__CP__ = 45;
break;
}
this._42__yield_zc5nt1_k0a0c0a0e = this._42__yield_zc5nt1_k0a0c0a0e_it.next();
this.__CP__ = 44;
break;
case 45:
this._46__yield_zc5nt1_l0a0c0a0e_it = Sequence.fromIterable(Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SNodeOperations.isInstanceOf(it, SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x4bd43869e610f3e9L, "jetbrains.mps.lang.smodel.query.structure.BLCommand_old"))) && SNodeOperations.isInstanceOf(it, SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x4bd43869e610f3e9L, "jetbrains.mps.console.base.structure.BLCommand")));
}
}).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return it.getChildren(MetaAdapterFactory.getContainmentLink(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x4bd43869e610f3e9L, 0x188f8efcef6cea65L, "body_old")).iterator().hasNext();
}
}).select(new ISelector<SNode, Problem>() {
public Problem select(SNode it) {
return DeprecatedConceptMemberNotMigratedProblem.deprecatedContainmentLink(it, MetaAdapterFactory.getContainmentLink(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x4bd43869e610f3e9L, 0x188f8efcef6cea65L, "body_old"));
}
})).iterator();
case 47:
if (!(this._46__yield_zc5nt1_l0a0c0a0e_it.hasNext())) {
this.__CP__ = 49;
break;
}
this._46__yield_zc5nt1_l0a0c0a0e = this._46__yield_zc5nt1_l0a0c0a0e_it.next();
this.__CP__ = 48;
break;
case 49:
this._50__yield_zc5nt1_m0a0c0a0e_it = Sequence.fromIterable(Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SNodeOperations.isInstanceOf(it, SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6c8954f469a7c420L, "jetbrains.mps.lang.smodel.query.structure.AbstractPrintExpression_old"))) && SNodeOperations.isInstanceOf(it, SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x6c8954f469a7c420L, "jetbrains.mps.console.base.structure.AbstractPrintExpression")));
}
}).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return it.getChildren(MetaAdapterFactory.getContainmentLink(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6c8954f469a7c420L, 0x7417cca3eb1ff761L, "object_old")).iterator().hasNext();
}
}).select(new ISelector<SNode, Problem>() {
public Problem select(SNode it) {
return DeprecatedConceptMemberNotMigratedProblem.deprecatedContainmentLink(it, MetaAdapterFactory.getContainmentLink(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x6c8954f469a7c420L, 0x7417cca3eb1ff761L, "object_old"));
}
})).iterator();
case 51:
if (!(this._50__yield_zc5nt1_m0a0c0a0e_it.hasNext())) {
this.__CP__ = 53;
break;
}
this._50__yield_zc5nt1_m0a0c0a0e = this._50__yield_zc5nt1_m0a0c0a0e_it.next();
this.__CP__ = 52;
break;
case 53:
this._54__yield_zc5nt1_n0a0c0a0e_it = Sequence.fromIterable(Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SConceptOperations.isExactly(SNodeOperations.asSConcept(SNodeOperations.getConcept(it)), SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x75bb0160f191d79fL, "jetbrains.mps.lang.smodel.query.structure.ShowExpression_old")));
}
}).select(new ISelector<SNode, Problem>() {
public Problem select(SNode it) {
Problem problem = new DeprecatedConceptNotMigratedProblem(it);
return problem;
}
})).iterator();
case 55:
if (!(this._54__yield_zc5nt1_n0a0c0a0e_it.hasNext())) {
this.__CP__ = 57;
break;
}
this._54__yield_zc5nt1_n0a0c0a0e = this._54__yield_zc5nt1_n0a0c0a0e_it.next();
this.__CP__ = 56;
break;
case 57:
this._58__yield_zc5nt1_o0a0c0a0e_it = Sequence.fromIterable(Sequence.fromIterable(CommandUtil.nodes(CommandUtil.createConsoleScope(null, false, context))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SNodeOperations.isInstanceOf(it, SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x75bb0160f191d79fL, "jetbrains.mps.lang.smodel.query.structure.ShowExpression_old"))) && SNodeOperations.isInstanceOf(it, SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x75bb0160f191d79fL, "jetbrains.mps.console.ideCommands.structure.ShowExpression")));
}
}).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return it.getChildren(MetaAdapterFactory.getContainmentLink(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x75bb0160f191d79fL, 0x6979f0787b81e875L, "object_old")).iterator().hasNext();
}
}).select(new ISelector<SNode, Problem>() {
public Problem select(SNode it) {
return DeprecatedConceptMemberNotMigratedProblem.deprecatedContainmentLink(it, MetaAdapterFactory.getContainmentLink(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x75bb0160f191d79fL, 0x6979f0787b81e875L, "object_old"));
}
})).iterator();
case 59:
if (!(this._58__yield_zc5nt1_o0a0c0a0e_it.hasNext())) {
this.__CP__ = 1;
break;
}
this._58__yield_zc5nt1_o0a0c0a0e = this._58__yield_zc5nt1_o0a0c0a0e_it.next();
this.__CP__ = 60;
break;
case 6:
this.__CP__ = 3;
this.yield(_2__yield_zc5nt1_a0a0c0a0e);
return true;
case 10:
this.__CP__ = 7;
this.yield(_6__yield_zc5nt1_b0a0c0a0e);
return true;
case 14:
this.__CP__ = 11;
this.yield(_10__yield_zc5nt1_c0a0c0a0e);
return true;
case 18:
this.__CP__ = 15;
this.yield(_14__yield_zc5nt1_d0a0c0a0e);
return true;
case 22:
this.__CP__ = 19;
this.yield(_18__yield_zc5nt1_e0a0c0a0e);
return true;
case 26:
this.__CP__ = 23;
this.yield(_22__yield_zc5nt1_f0a0c0a0e);
return true;
case 30:
this.__CP__ = 27;
this.yield(_26__yield_zc5nt1_g0a0c0a0e);
return true;
case 34:
this.__CP__ = 31;
this.yield(_30__yield_zc5nt1_h0a0c0a0e);
return true;
case 38:
this.__CP__ = 35;
this.yield(_34__yield_zc5nt1_i0a0c0a0e);
return true;
case 42:
this.__CP__ = 39;
this.yield(_38__yield_zc5nt1_j0a0c0a0e);
return true;
case 46:
this.__CP__ = 43;
this.yield(_42__yield_zc5nt1_k0a0c0a0e);
return true;
case 50:
this.__CP__ = 47;
this.yield(_46__yield_zc5nt1_l0a0c0a0e);
return true;
case 54:
this.__CP__ = 51;
this.yield(_50__yield_zc5nt1_m0a0c0a0e);
return true;
case 58:
this.__CP__ = 55;
this.yield(_54__yield_zc5nt1_n0a0c0a0e);
return true;
case 61:
this.__CP__ = 59;
this.yield(_58__yield_zc5nt1_o0a0c0a0e);
return true;
case 0:
this.__CP__ = 2;
break;
case 4:
this.__CP__ = 6;
break;
case 8:
this.__CP__ = 10;
break;
case 12:
this.__CP__ = 14;
break;
case 16:
this.__CP__ = 18;
break;
case 20:
this.__CP__ = 22;
break;
case 24:
this.__CP__ = 26;
break;
case 28:
this.__CP__ = 30;
break;
case 32:
this.__CP__ = 34;
break;
case 36:
this.__CP__ = 38;
break;
case 40:
this.__CP__ = 42;
break;
case 44:
this.__CP__ = 46;
break;
case 48:
this.__CP__ = 50;
break;
case 52:
this.__CP__ = 54;
break;
case 56:
this.__CP__ = 58;
break;
case 60:
this.__CP__ = 61;
break;
default:
break __loop__;
}
} while (true);
return false;
}
private Problem _2__yield_zc5nt1_a0a0c0a0e;
private Iterator<Problem> _2__yield_zc5nt1_a0a0c0a0e_it;
private Problem _6__yield_zc5nt1_b0a0c0a0e;
private Iterator<Problem> _6__yield_zc5nt1_b0a0c0a0e_it;
private Problem _10__yield_zc5nt1_c0a0c0a0e;
private Iterator<Problem> _10__yield_zc5nt1_c0a0c0a0e_it;
private Problem _14__yield_zc5nt1_d0a0c0a0e;
private Iterator<Problem> _14__yield_zc5nt1_d0a0c0a0e_it;
private Problem _18__yield_zc5nt1_e0a0c0a0e;
private Iterator<Problem> _18__yield_zc5nt1_e0a0c0a0e_it;
private Problem _22__yield_zc5nt1_f0a0c0a0e;
private Iterator<Problem> _22__yield_zc5nt1_f0a0c0a0e_it;
private Problem _26__yield_zc5nt1_g0a0c0a0e;
private Iterator<Problem> _26__yield_zc5nt1_g0a0c0a0e_it;
private Problem _30__yield_zc5nt1_h0a0c0a0e;
private Iterator<Problem> _30__yield_zc5nt1_h0a0c0a0e_it;
private Problem _34__yield_zc5nt1_i0a0c0a0e;
private Iterator<Problem> _34__yield_zc5nt1_i0a0c0a0e_it;
private Problem _38__yield_zc5nt1_j0a0c0a0e;
private Iterator<Problem> _38__yield_zc5nt1_j0a0c0a0e_it;
private Problem _42__yield_zc5nt1_k0a0c0a0e;
private Iterator<Problem> _42__yield_zc5nt1_k0a0c0a0e_it;
private Problem _46__yield_zc5nt1_l0a0c0a0e;
private Iterator<Problem> _46__yield_zc5nt1_l0a0c0a0e_it;
private Problem _50__yield_zc5nt1_m0a0c0a0e;
private Iterator<Problem> _50__yield_zc5nt1_m0a0c0a0e_it;
private Problem _54__yield_zc5nt1_n0a0c0a0e;
private Iterator<Problem> _54__yield_zc5nt1_n0a0c0a0e_it;
private Problem _58__yield_zc5nt1_o0a0c0a0e;
private Iterator<Problem> _58__yield_zc5nt1_o0a0c0a0e_it;
};
}
};
}
});
}
}
public MigrationScriptReference getDescriptor() {
return new MigrationScriptReference(MetaAdapterFactory.getLanguage(0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, "jetbrains.mps.lang.smodel.query"), 0);
}
}