Esempio n. 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());
        }
Esempio n. 2
0
 public InvalidAssertionMessageProblemAnalyzer(CodeAnnotationsCache annotationsCache)
 {
     _contractAnnotationProvider           = annotationsCache.GetProvider <ContractAnnotationProvider>();
     _assertionMethodAnnotationProvider    = annotationsCache.GetProvider <AssertionMethodAnnotationProvider>();
     _assertionConditionAnnotationProvider = annotationsCache.GetProvider <AssertionConditionAnnotationProvider>();
 }
Esempio n. 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>();
 }
Esempio n. 5
0
 public CannotSpecifyConstructorConstraintForValueTypeErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 6
0
 public ConflictInheritedTypeParameterConstraintErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 7
0
 public CannotCreateInstanceOfTypeParameterWithArgumentsErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 8
0
 public CollectionInitializerAppliedToNonCollectionErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 9
0
 public CatchClauseCannotFollowGeneralCatchClauseErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 10
0
 public CircularDependencyInTypeParameterConstraintErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 11
0
 public CSharpDisposeBuilder(CodeAnnotationsCache codeAnnotationsCache)
 {
     myCodeAnnotationsCache = codeAnnotationsCache;
 }
Esempio n. 12
0
 public IncorrectTrueOrFalseOperatorTypeErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 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;
		}
Esempio n. 16
0
 public CannotImplicitlyConvertGotoCaseValueToGoverningTypeWarningEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
 public FormattingFunctionInvocationInfoProvider(CodeAnnotationsCache codeAnnotationsCache)
 {
     myCodeAnnotationsCache = codeAnnotationsCache;
 }
Esempio n. 18
0
 public CompareNonConstrainedGenericWithNullWarningEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 19
0
 public AddedAccessorInPrivateImplementationErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 20
0
 public ReturnTypeIsVoidErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 21
0
 public ColorizerPresenter([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
 {
     _textStyleHighlighterManager = textStyleHighlighterManager;
     _codeAnnotationsCache        = codeAnnotationsCache;
 }
Esempio n. 22
0
 public AwaitExpressionNotUnderAsyncMethodErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 23
0
 public CannotCreateInstanceOfAbstractClassErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 24
0
 public ArrayElementTypeIsForbiddenErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 25
0
 public CannotCreateInstanceOfTypeWithoutConstructorErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 26
0
 public AbstractAccessorIsNotImplementedErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
 public BinaryMethodsGeneratorBuilder(CodeAnnotationsCache codeAnnotationsCache)
 {
     _codeAnnotationsCache = codeAnnotationsCache;
 }
Esempio n. 28
0
 public AccessRightsErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 29
0
 public AccessorIsMissingInImplementationErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 30
0
 public CannotConstructVoidErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 31
0
 public AtLeastOneParameterOfSignOperatorMustBeContainingTypeErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
Esempio n. 32
0
 public ErrorElementHighlighting(CodeAnnotationsCache codeAnnotationsCache)
 {
 }
Esempio n. 33
0
 public IncorrectArgumentsErrorEnhancer([NotNull] TextStyleHighlighterManager textStyleHighlighterManager, [NotNull] CodeAnnotationsCache codeAnnotationsCache)
     : base(textStyleHighlighterManager, codeAnnotationsCache)
 {
 }
 public ErrorElementHighlightingStage(CodeAnnotationsCache codeAnnotationsCache)
 {
 }