public static boolean baseMappingRule_Condition_2379134940425784781( final IOperationContext operationContext, final BaseMappingRuleContext _context) { boolean methodHasDispatchModifier = SNodeOperations.isInstanceOf( SNodeOperations.getParent(_context.getNode()), "jetbrains.mps.baseLanguage.structure.MethodDeclaration") && ListSequence.fromList( SLinkOperations.getTargets( SNodeOperations.cast( SNodeOperations.getParent(_context.getNode()), "jetbrains.mps.baseLanguage.structure.MethodDeclaration"), "modifiers", true)) .any( new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SNodeOperations.isInstanceOf( it, "jetbrains.mps.baseLanguage.doubleDispatch.structure.DispatchModifier"); } }); return methodHasDispatchModifier && Sequence.fromIterable( DispatchGenUtil.getMatchingMethods( SNodeOperations.cast( SNodeOperations.getParent(_context.getNode()), "jetbrains.mps.baseLanguage.structure.MethodDeclaration"))) .isNotEmpty(); }
public static Object insertMacro_varValue_2379134940431021756( final IOperationContext operationContext, final TemplateQueryContext _context) { return DispatchGenUtil.getMatchingMethods(((SNode) _context.getVariable("var:methodDecl"))); }