public static boolean nodeSubstituteActionsBuilder_Precondition_Statement_7750890258733139493( final IOperationContext operationContext, final NodeSubstitutePreconditionContext _context) { if ((SNodeOperations.getAncestor( _context.getParentNode(), "jetbrains.mps.lang.typesystem.structure.InferenceRule", false, false) != null)) { return true; } SNode method = SNodeOperations.getAncestor( _context.getParentNode(), "jetbrains.mps.baseLanguage.structure.BaseMethodDeclaration", false, false); if ((method != null) && BaseMethodDeclaration_Behavior.call_hasAnnotation_5499146221535822693( method, SNodeOperations.getNode( "r:00000000-0000-4000-0000-011c895902b5(jetbrains.mps.lang.typesystem.dependencies)", "1196177069451"))) { return true; } return false; }
public static boolean nodeSubstituteActionsBuilder_Precondition_ArgumentClause_994932413699396077( final IOperationContext operationContext, final NodeSubstitutePreconditionContext _context) { if (SNodeOperations.isInstanceOf( _context.getParentNode(), "jetbrains.mps.baseLanguage.constructors.structure.CustomConstructor")) { return !(SNodeOperations.isInstanceOf( SLinkOperations.getTarget( SNodeOperations.cast( _context.getParentNode(), "jetbrains.mps.baseLanguage.constructors.structure.CustomConstructor"), "arguments", true), "jetbrains.mps.baseLanguage.constructors.structure.CustomArgumentClause")); } return false; }
public static boolean nodeSubstituteActionsBuilder_Precondition_SNodeOperation_1201878705329( final IOperationContext operationContext, final NodeSubstitutePreconditionContext _context) { return !(RulesUtil.withinInferenceItem(_context.getParentNode())) && !(RulesUtil.withinTypeManagingItem(_context.getParentNode())); }