Пример #1
0
 public static boolean baseMappingRule_Condition_3100399657864717070(
     final IOperationContext operationContext, final BaseMappingRuleContext _context) {
   Iterable<SNode> operators =
       ListSequence.fromList(
               SModelOperations.getRootsIncludingImported(
                   _context.getOriginalInputModel(),
                   _context.getScope(),
                   "jetbrains.mps.baseLanguage.overloadedOperators.structure.OverloadedOperatorContainer"))
           .translate(
               new ITranslator2<SNode, SNode>() {
                 public Iterable<SNode> translate(SNode it) {
                   return SLinkOperations.getTargets(it, "operators", true);
                 }
               });
   return BinaryOperationUtil.hasOverloadedOperators(
       _context.getNode(),
       TypeChecker.getInstance()
           .getTypeOf(SLinkOperations.getTarget(_context.getNode(), "leftExpression", true)),
       TypeChecker.getInstance()
           .getTypeOf(SLinkOperations.getTarget(_context.getNode(), "rightExpression", true)),
       Sequence.fromIterable(operators).toListSequence());
 }