private void cpEndOfBlock_ContextSatisfied(ContextSatisfiedEventArgs ea) { ea.Satisfied = false; var activeElement = CodeRush.Source.Active as IHasBlock; if (activeElement == null) return; if (!((LanguageElement)activeElement).IsCollapsible) return; ea.Satisfied = activeElement.BlockEnd.Contains(CodeRush.Caret.SourcePoint); }
private void cpEndOfBlock_ContextSatisfied(ContextSatisfiedEventArgs ea) { ea.Satisfied = false; var activeElement = CodeRush.Source.Active as IHasBlock; if (activeElement == null) { return; } if (!((LanguageElement)activeElement).IsCollapsible) { return; } ea.Satisfied = activeElement.BlockEnd.Contains(CodeRush.Caret.SourcePoint); }
internal void cpInsideTestMethod_ContextSatisfied(ContextSatisfiedEventArgs ea) { ea.Satisfied = IsInTestMethod(); }
internal void cpInsideTestClass_ContextSatisfied(ContextSatisfiedEventArgs ea) { ea.Satisfied = IsInTestClass(); }
private void ctxConvertingSpacesToCamelCase_ContextSatisfied(ContextSatisfiedEventArgs ea) { ea.Satisfied = _ConvertingSpacesToCamelCase; }
private void ctxMultiSelectRedoAvailable_ContextSatisfied(ContextSatisfiedEventArgs ea) { ea.Satisfied = CodeRushPlaceholder.MultiSelect.RedoIsAvailable(CodeRush.TextViews.Active); }
private void ctxMultiSelectExists_ContextSatisfied(ContextSatisfiedEventArgs ea) { ea.Satisfied = CodeRushPlaceholder.MultiSelect.SelectionExists(CodeRush.TextViews.Active); }
private void ctxInPrimitive_ContextSatisfied(ContextSatisfiedEventArgs ea) { if (CodeRush.Source.Active is PrimitiveExpression) ea.Satisfied = true; }
private void ctxInFormatItem_ContextSatisfied(ContextSatisfiedEventArgs ea) { ea.Satisfied = InFormatItem(CodeRush.Source.Active, CodeRush.Caret.Line, CodeRush.Caret.Offset); }
private void ctxInPairedHtmlElementNameTag_ContextSatisfied(ContextSatisfiedEventArgs ea) { ea.Satisfied = IsCaretOnPairedHtmlTag(CodeRush.Source.Active, CodeRush.Caret.SourcePoint); }