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