예제 #1
0
        public static ICollection <JetTuple <MvcKind, string, IAttributeInstance> > GetMvcKinds(
            [NotNull] this IAttributesOwner element)
        {
            CodeAnnotationsCache codeAnnotations = element.GetPsiServices().GetCodeAnnotationsCache();

            return(element
                   .GetAttributeInstances(false)
                   .SelectMany(attr =>
                               MvcKinds.Where(pair => codeAnnotations.IsAnnotationAttribute(attr, pair.Key))
                               .Select(pair => JetTuple.Of
                                       (
                                           pair.Value,
                                           MvcKindAnonymousPropertyInitializers.ContainsKey(pair.Value)
                                        ? MvcKindAnonymousPropertyInitializers[pair.Value](attr)
                                        : null,
                                           attr
                                       )))
                   .ToList());
        }
예제 #2
0
 public InvalidAssertionMessageProblemAnalyzer(CodeAnnotationsCache annotationsCache)
 {
     _contractAnnotationProvider           = annotationsCache.GetProvider <ContractAnnotationProvider>();
     _assertionMethodAnnotationProvider    = annotationsCache.GetProvider <AssertionMethodAnnotationProvider>();
     _assertionConditionAnnotationProvider = annotationsCache.GetProvider <AssertionConditionAnnotationProvider>();
 }
예제 #3
0
 public AbstractBaseMemberCallErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
 public TypeHighlightingProblemAnalyzer(CodeAnnotationsCache codeAnnotationsCache)
 {
     _nullnessProvider = codeAnnotationsCache.GetProvider <NullnessProvider>();
     _containerElementNullnessProvider = codeAnnotationsCache.GetProvider <ContainerElementNullnessProvider>();
 }
예제 #5
0
 public CannotSpecifyConstructorConstraintForValueTypeErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #6
0
 public ConflictInheritedTypeParameterConstraintErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #7
0
 public CannotCreateInstanceOfTypeParameterWithArgumentsErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #8
0
 public CollectionInitializerAppliedToNonCollectionErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #9
0
 public CatchClauseCannotFollowGeneralCatchClauseErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #10
0
 public CircularDependencyInTypeParameterConstraintErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #11
0
 public CSharpDisposeBuilder(CodeAnnotationsCache codeAnnotationsCache)
 {
     myCodeAnnotationsCache = codeAnnotationsCache;
 }
예제 #12
0
 public IncorrectTrueOrFalseOperatorTypeErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #13
0
 public CannotApplyBinaryOperatorErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
		public CSharpColorizer([NotNull] RichText richText, [NotNull] TextStyleHighlighterManager textStyleHighlighterManager,
			[NotNull] CodeAnnotationsCache codeAnnotationsCache, bool useReSharperColors) {
			_richText = richText;
			_textStyleHighlighterManager = textStyleHighlighterManager;
			_codeAnnotationsCache = codeAnnotationsCache;
			_useReSharperColors = useReSharperColors;
		}
		public ColorizerPresenter([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache) {
			_textStyleHighlighterManager = textStyleHighlighterManager;
			_codeAnnotationsCache = codeAnnotationsCache;
		}
예제 #16
0
 public CannotImplicitlyConvertGotoCaseValueToGoverningTypeWarningEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
 public FormattingFunctionInvocationInfoProvider(CodeAnnotationsCache codeAnnotationsCache)
 {
     myCodeAnnotationsCache = codeAnnotationsCache;
 }
예제 #18
0
 public CompareNonConstrainedGenericWithNullWarningEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #19
0
 public AddedAccessorInPrivateImplementationErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #20
0
 public ReturnTypeIsVoidErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #21
0
 public ColorizerPresenter([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
 {
     _textStyleHighlighterManager = textStyleHighlighterManager;
     _codeAnnotationsCache        = codeAnnotationsCache;
 }
예제 #22
0
 public AwaitExpressionNotUnderAsyncMethodErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #23
0
 public CannotCreateInstanceOfAbstractClassErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #24
0
 public ArrayElementTypeIsForbiddenErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #25
0
 public CannotCreateInstanceOfTypeWithoutConstructorErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #26
0
 public AbstractAccessorIsNotImplementedErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
 public BinaryMethodsGeneratorBuilder(CodeAnnotationsCache codeAnnotationsCache)
 {
     _codeAnnotationsCache = codeAnnotationsCache;
 }
예제 #28
0
 public AccessRightsErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #29
0
 public AccessorIsMissingInImplementationErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #30
0
 public CannotConstructVoidErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #31
0
 public AtLeastOneParameterOfSignOperatorMustBeContainingTypeErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
예제 #32
0
 public ErrorElementHighlighting(CodeAnnotationsCache codeAnnotationsCache)
 {
 }
예제 #33
0
 public IncorrectArgumentsErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
 public ErrorElementHighlightingStage(CodeAnnotationsCache codeAnnotationsCache)
 {
 }