Example #1
0
 public static void mappingScript_CodeBlock_1195509228078(final MappingScriptContext _context) {
   // test1 only
   if (!(QueriesUtil.isTest1(_context.getModel()))) {
     return;
   }
   _context.putStepObject("run post-processing", new Object());
   System.out.println(
       "!!!test pre-mapping. model="
           + jetbrains.mps.util.SNodeOperations.getModelLongName(_context.getModel()));
   SNode inputRoot =
       SModelOperations.createNewRootNode(
           _context.getModel(),
           "jetbrains.mps.transformation.test.inputLang.structure.InputRoot",
           null);
   SPropertyOperations.set(inputRoot, "name", "Input Root created by pre-process script");
   SPropertyOperations.set(inputRoot, "useInTest", "test1");
 }
Example #2
0
 public static boolean createRootRule_Condition_1202245164352(
     final CreateRootRuleContext _context) {
   return QueriesUtil.isTest1(_context.getInputModel());
 }