protected override ISet <ITypeElement> GetLinkedTypes(LinkedTypesService linkedTypesService, List <ITypeElement> typesInContext) { return(typesInContext.SelectMany( x => linkedTypesService.GetLinkedTypes(x) .Where(y => DerivedNameUtility.IsDerivedNameAny(x.ShortName, y.ShortName))) .ToSet()); }
public void Execute(IDataContext context, [NotNull] DelegateExecute nextExecute) { _typesFromTextControlService = context.GetComponent <ITypesFromTextControlService>().NotNull(); _solution = context.GetData(ProjectModelDataConstants.SOLUTION).NotNull(); _textControl = context.GetData(TextControlDataConstants.TEXT_CONTROL).NotNull(); _linkedTypesService = _solution.GetComponent <LinkedTypesService>(); _popupWindowContextSource = context.GetData(UIDataConstants.PopupWindowContextSource); //_executionGroupingEvent.FireIncoming(); ExecuteProlonged(); }
public LinkedTestInvalidator( Lifetime lifetime, ChangedTypesProvider changedTypesProvider, LinkedTypesService linkedTypesService, IUnitTestResultManager unitTestResultManager) { _linkedTypesService = linkedTypesService; _unitTestResultManager = unitTestResultManager; changedTypesProvider.TypesChanged.Advise(lifetime, OnChanged); }
private static Tuple <ITypeElement, ITypeElement> GetLinkedTypeWithDerivedName(LinkedTypesService linkedTypesService, ITypeElement sourceType) { return(linkedTypesService.GetLinkedTypes(sourceType) .Where(x => DerivedNameUtility.IsDerivedNameAny(sourceType.ShortName, x.ShortName)) .Select(x => Tuple.Create(sourceType, x)) .FirstOrDefault()); }
protected abstract ISet <ITypeElement> GetLinkedTypes(LinkedTypesService linkedTypesService, List <ITypeElement> typesInContext);
protected override ISet <ITypeElement> GetLinkedTypes(LinkedTypesService linkedTypesService, List <ITypeElement> typesInContext) { return(linkedTypesService.GetLinkedTypes(typesInContext)); }