private static IHighlighting CheckResolved([NotNull] IMvcReference reference, [NotNull] Func <IMvcReference, IHighlighting> highlighter)
        {
            ResolveErrorType resolveErrorType = reference.CheckResolveResult();

            if (resolveErrorType == ResolveErrorType.IGNORABLE)
            {
                return(null);
            }

            var mvcResolveErrorType = resolveErrorType as MvcResolveErrorType;

            if (mvcResolveErrorType != null)
            {
                return(ErrorHighlightings.GetOrCreateValue(mvcResolveErrorType, () => _ => new AspConfigurableNotResolvedErrorHighlighting <IMvcReference>(_, null, new object[0]))(reference));
            }

            return(highlighter(reference));
        }
Ejemplo n.º 2
0
 public MethodSignatureFilter(ResolveErrorType errorType, MethodSignature methodSignature)
 {
     myMethodSignature = methodSignature;
     ErrorType         = errorType;
 }