Ejemplo n.º 1
0
 public static Object propertyMacro_GetPropertyValue_3524394717035465440(
     final IOperationContext operationContext, final PropertyMacroContext _context) {
   SNode op =
       BinaryOperationUtil.getNearestOverloaded(
           _context.getNode(),
           TypeChecker.getInstance()
               .getTypeOf(SLinkOperations.getTarget(_context.getNode(), "leftExpression", true)),
           TypeChecker.getInstance()
               .getTypeOf(SLinkOperations.getTarget(_context.getNode(), "rightExpression", true)),
           ListSequence.fromList(
                   SModelOperations.getRootsIncludingImported(
                       SNodeOperations.getModel(_context.getNode()),
                       _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);
                     }
                   })
               .toListSequence());
   return OverloadedBinaryOperator_Behavior.call_getFunctionName_6677452554240637506(op);
 }
Ejemplo n.º 2
0
 public static Object propertyMacro_GetPropertyValue_6677452554240291185(
     final IOperationContext operationContext, final PropertyMacroContext _context) {
   return OverloadedBinaryOperator_Behavior.call_getFunctionName_6677452554240637506(
       _context.getNode());
 }