示例#1
0
 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());
 }
示例#2
0
        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();
        }
示例#3
0
        public LinkedTestInvalidator(
            Lifetime lifetime,
            ChangedTypesProvider changedTypesProvider,
            LinkedTypesService linkedTypesService,
            IUnitTestResultManager unitTestResultManager)
        {
            _linkedTypesService    = linkedTypesService;
            _unitTestResultManager = unitTestResultManager;

            changedTypesProvider.TypesChanged.Advise(lifetime, OnChanged);
        }
示例#4
0
 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());
 }
示例#5
0
 protected abstract ISet <ITypeElement> GetLinkedTypes(LinkedTypesService linkedTypesService, List <ITypeElement> typesInContext);
示例#6
0
 protected override ISet <ITypeElement> GetLinkedTypes(LinkedTypesService linkedTypesService, List <ITypeElement> typesInContext)
 {
     return(linkedTypesService.GetLinkedTypes(typesInContext));
 }