1 instantiation of ApiControllerSymbolCache
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ApiControllerSymbolCache.cs (1)
105symbolCache = new ApiControllerSymbolCache(
64 references to ApiControllerSymbolCache
Microsoft.AspNetCore.Mvc.Api.Analyzers (29)
ActualApiResponseMetadataFactory.cs (4)
23in ApiControllerSymbolCache symbolCache, 29var localSymbolCache = symbolCache; 60in ApiControllerSymbolCache symbolCache, 156in ApiControllerSymbolCache symbolCache,
AddResponseTypeAttributeCodeFixAction.cs (4)
138if (!ApiControllerSymbolCache.TryCreate(semanticModel.Compilation, out var symbolCache)) 256ApiControllerSymbolCache symbolCache, 278public ApiControllerSymbolCache SymbolCache { get; }
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs (6)
25if (!ApiControllerSymbolCache.TryCreate(context.Compilation, out var symbolCache)) 35private static void InitializeWorker(CompilationStartAnalysisContext context, ApiControllerSymbolCache symbolCache) 129private static bool IsModelStateIsValidCheck(in ApiControllerSymbolCache symbolCache, IOperation condition) 159in ApiControllerSymbolCache symbolCache, 180private static bool IsModelStateIsValidPropertyAccessor(in ApiControllerSymbolCache symbolCache, IOperation operation)
ApiControllerFacts.cs (1)
11public static bool IsApiControllerAction(ApiControllerSymbolCache symbolCache, IMethodSymbol method)
ApiControllerSymbolCache.cs (1)
11public static bool TryCreate(Compilation compilation, out ApiControllerSymbolCache symbolCache)
ApiConventionAnalyzer.cs (3)
27if (!ApiControllerSymbolCache.TryCreate(context.Compilation, out var symbolCache)) 37private static void InitializeWorker(CompilationStartAnalysisContext context, ApiControllerSymbolCache symbolCache)
SymbolApiConventionMatcher.cs (3)
12internal static bool IsMatch(ApiControllerSymbolCache symbolCache, IMethodSymbol method, IMethodSymbol conventionMethod) 61internal static SymbolApiConventionNameMatchBehavior GetNameMatchBehavior(ApiControllerSymbolCache symbolCache, ISymbol symbol) 83internal static SymbolApiConventionTypeMatchBehavior GetTypeMatchBehavior(ApiControllerSymbolCache symbolCache, ISymbol symbol)
SymbolApiResponseMetadataProvider.cs (7)
21in ApiControllerSymbolCache symbolCache, 44in ApiControllerSymbolCache symbolCache, 65in ApiControllerSymbolCache symbolCache, 83private static IMethodSymbol? GetMethodFromConventionMethodAttribute(in ApiControllerSymbolCache symbolCache, IMethodSymbol method) 117in ApiControllerSymbolCache symbolCache, 140private static IList<DeclaredApiResponseMetadata> GetResponseMetadataFromMethodAttributes(in ApiControllerSymbolCache symbolCache, IMethodSymbol methodSymbol) 161internal static IReadOnlyList<ITypeSymbol> GetConventionTypes(in ApiControllerSymbolCache symbolCache, IMethodSymbol method)
Mvc.Api.Analyzers.Test (35)
ActualApiResponseMetadataFactoryTest.cs (4)
71Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 371Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 388Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 407Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache));
ApiControllerFactsTest.cs (6)
36Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 51Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 67Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 83Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 99Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 115Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache));
SymbolApiConventionMatcherTest.cs (7)
428Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 448Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 466Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 484Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 502Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 521Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 540Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache));
SymbolApiResponseMetadataProviderTest.cs (18)
20Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 38Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 56Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 74Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 97Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 120Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 143Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 166Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 188Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 219Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 241Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 274Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 297Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 319Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 409Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 427Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 445Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache)); 463Assert.True(ApiControllerSymbolCache.TryCreate(compilation, out var symbolCache));