1 instantiation of WellKnownTypes
Microsoft.AspNetCore.App.Analyzers (1)
src\Shared\RoslynUtils\WellKnownTypes.cs (1)
18
LazyWellKnownTypesCache.GetOrCreateValue(compilation, static c => new
WellKnownTypes
(c));
70 references to WellKnownTypes
Microsoft.AspNetCore.App.Analyzers (70)
Authorization\AddAuthorizationBuilderAnalyzer.cs (2)
30
var
wellKnownTypes =
WellKnownTypes
.GetOrCreate(context.Compilation);
Authorization\AuthorizationOptionsTypes.cs (1)
14
public AuthorizationOptionsTypes(
WellKnownTypes
wellKnownTypes)
Http\HeaderDictionaryAddAnalyzer.cs (2)
28
var
wellKnownTypes =
WellKnownTypes
.GetOrCreate(context.Compilation);
Http\RequestDelegateReturnTypeAnalyzer.cs (2)
26
var
wellKnownTypes =
WellKnownTypes
.GetOrCreate(compilation);
Infrastructure\RouteUsageCache.cs (2)
56
var
wellKnownTypes =
WellKnownTypes
.GetOrCreate(_compilation);
Mvc\DetectAmbiguousActionRoutes.cs (6)
21
private static void DetectAmbiguousActionRoutes(SymbolAnalysisContext context,
WellKnownTypes
wellKnownTypes, RoutePatternTree? controllerRoutePattern, List<ActionRoute> actionRoutes)
106
private readonly
WellKnownTypes
_wellKnownTypes;
108
public ActionRouteGroupKey(IMethodSymbol actionSymbol, RoutePatternTree routePattern, ImmutableArray<string> httpMethods, bool controllerHasActionToken,
WellKnownTypes
wellKnownTypes)
120
private static string GetActionName(IMethodSymbol actionSymbol,
WellKnownTypes
wellKnownTypes)
148
private static bool CanMatchActions(
WellKnownTypes
wellKnownTypes, IMethodSymbol actionSymbol1, IMethodSymbol actionSymbol2)
214
private static bool HasUnknownAttribute(IMethodSymbol actionSymbol,
WellKnownTypes
wellKnownTypes)
Mvc\DetectOverriddenAuthorizeAttribute.cs (5)
26
private static void DetectOverriddenAuthorizeAttributeOnController(SymbolAnalysisContext context,
WellKnownTypes
wellKnownTypes,
56
private static void DetectOverriddenAuthorizeAttributeOnAction(SymbolAnalysisContext context,
WellKnownTypes
wellKnownTypes,
114
private static bool IsInheritableAttribute(
WellKnownTypes
wellKnownTypes, INamedTypeSymbol attribute)
135
private static bool IsMatchingAttribute(
WellKnownTypes
wellKnownTypes, INamedTypeSymbol attribute,
152
private static void FindAuthorizeAndAllowAnonymous(
WellKnownTypes
wellKnownTypes, ISymbol symbol, bool isCheckingBaseType,
Mvc\MvcAnalyzer.cs (4)
37
var
wellKnownTypes =
WellKnownTypes
.GetOrCreate(compilation);
91
private static void PopulateActionRoutes(SymbolAnalysisContext context,
WellKnownTypes
wellKnownTypes, RouteUsageCache routeUsageCache, List<ActionRoute> actionRoutes, IMethodSymbol methodSymbol)
119
private static ImmutableArray<string> GetUnroutedMethodHttpMethods(
WellKnownTypes
wellKnownTypes, IMethodSymbol methodSymbol)
RenderTreeBuilder\RenderTreeBuilderAnalyzer.cs (3)
28
var
wellKnownTypes =
WellKnownTypes
.GetOrCreate(compilation);
59
private static bool IsRenderTreeBuilderMethodWithSequenceParameter(
WellKnownTypes
wellKnownTypes, IMethodSymbol targetMethod)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (4)
130
var
wellKnownTypes =
WellKnownTypes
.GetOrCreate(semanticModel.Compilation);
356
private static bool HasNonRouteAttribute(SyntaxToken token, SemanticModel semanticModel,
WellKnownTypes
wellKnownTypes, CancellationToken cancellationToken)
386
private static bool IsCurrentParameterBindable(SyntaxToken token, SemanticModel semanticModel,
WellKnownTypes
wellKnownTypes, CancellationToken cancellationToken)
RouteEmbeddedLanguage\Infrastructure\MvcDetector.cs (2)
15
public static bool IsController(INamedTypeSymbol? typeSymbol,
WellKnownTypes
wellKnownTypes)
28
public static bool IsAction(IMethodSymbol methodSymbol,
WellKnownTypes
wellKnownTypes)
RouteEmbeddedLanguage\Infrastructure\RoutePatternParametersDetector.cs (5)
15
public static ImmutableArray<ParameterSymbol> ResolvedParameters(ISymbol symbol,
WellKnownTypes
wellKnownTypes)
19
static ImmutableArray<ParameterSymbol> ResolvedParametersCore(ISymbol symbol, ISymbol? topLevelSymbol,
WellKnownTypes
wellKnownTypes)
43
static string ResolveRouteParameterName(ISymbol parameterSymbol,
WellKnownTypes
wellKnownTypes)
75
private static bool HasSpecialType(ISymbol child,
WellKnownTypes
wellKnownTypes, WellKnownType[] specialTypes)
85
private static bool HasExplicitNonRouteAttribute(ISymbol child,
WellKnownTypes
wellKnownTypes, WellKnownType[] allNoneRouteMetadataTypes)
RouteEmbeddedLanguage\Infrastructure\RouteUsageDetector.cs (5)
57
public static RouteUsageContext BuildContext(RouteOptions routeOptions, SyntaxToken token, SemanticModel semanticModel,
WellKnownTypes
wellKnownTypes, CancellationToken cancellationToken)
154
private static ImmutableArray<string> CalculateHttpMethods(
WellKnownTypes
wellKnownTypes, IMethodSymbol mapMethodSymbol)
212
private static IMethodSymbol? FindMvcMethod(
WellKnownTypes
wellKnownTypes, IMethodSymbol? methodSymbol)
232
public static MapMethodParts? FindMapMethodParts(SemanticModel semanticModel,
WellKnownTypes
wellKnownTypes, SyntaxNode container, CancellationToken cancellationToken)
260
private static MapMethodParts? FindValidMapMethodParts(SemanticModel semanticModel,
WellKnownTypes
wellKnownTypes, BaseArgumentListSyntax argumentList, IMethodSymbol method)
RouteHandlers\AtMostOneFromBodyAttribute.cs (1)
19
WellKnownTypes
wellKnownTypes,
RouteHandlers\DetectAmbiguousRoutes.cs (3)
22
private static void DetectAmbiguousRoutes(in OperationBlockAnalysisContext context,
WellKnownTypes
wellKnownTypes, ConcurrentDictionary<MapOperation, byte> mapOperations)
48
private static IOperation? ResolveOperation(IOperation operation,
WellKnownTypes
wellKnownTypes)
93
private static bool IsAllowedEndpointBuilderMethod(IInvocationOperation invocationOperation,
WellKnownTypes
wellKnownTypes)
RouteHandlers\DisallowMvcBindArgumentsOnParameters.cs (1)
18
WellKnownTypes
wellKnownTypes,
RouteHandlers\DisallowNonParsableComplexTypesOnParameters.cs (2)
20
WellKnownTypes
wellKnownTypes,
97
static bool ReportFromAttributeDiagnostic(OperationAnalysisContext context, WellKnownType fromMetadataInterfaceType,
WellKnownTypes
wellKnownTypes, IParameterSymbol parameter, INamedTypeSymbol parameterTypeSymbol, Location location)
RouteHandlers\DisallowReturningActionResultFromMapMethods.cs (2)
18
WellKnownTypes
wellKnownTypes,
28
WellKnownTypes
wellKnownTypes,
RouteHandlers\RouteHandlerAnalyzer.cs (4)
42
var
wellKnownTypes =
WellKnownTypes
.GetOrCreate(compilation);
196
WellKnownTypes
wellKnownTypes,
206
static bool IsCompatibleDelegateType(
WellKnownTypes
wellKnownTypes, IMethodSymbol targetMethod)
src\Shared\RoslynUtils\ParsabilityHelper.cs (10)
23
private static bool IsTypeAlwaysParsable(ITypeSymbol typeSymbol,
WellKnownTypes
wellKnownTypes, [NotNullWhen(true)] out ParsabilityMethod? parsabilityMethod)
50
internal static Parsability GetParsability(ITypeSymbol typeSymbol,
WellKnownTypes
wellKnownTypes)
55
internal static Parsability GetParsability(ITypeSymbol typeSymbol,
WellKnownTypes
wellKnownTypes, [NotNullWhen(false)] out ParsabilityMethod? parsabilityMethod)
104
private static bool IsTryParseWithFormat(IMethodSymbol methodSymbol,
WellKnownTypes
wellKnownTypes)
115
internal static bool IsParsableViaIParsable(ITypeSymbol typeSymbol,
WellKnownTypes
wellKnownTypes)
124
private static bool IsBindableViaIBindableFromHttpContext(ITypeSymbol typeSymbol,
WellKnownTypes
wellKnownTypes)
134
private static bool IsBindAsync(IMethodSymbol methodSymbol, ITypeSymbol typeSymbol,
WellKnownTypes
wellKnownTypes)
145
private static bool IsBindAsyncWithParameter(IMethodSymbol methodSymbol, ITypeSymbol typeSymbol,
WellKnownTypes
wellKnownTypes)
156
private static bool IsReturningValueTaskOfTOrNullableT(INamedTypeSymbol returnType, ITypeSymbol containingType,
WellKnownTypes
wellKnownTypes)
162
internal static Bindability GetBindability(ITypeSymbol typeSymbol,
WellKnownTypes
wellKnownTypes, out BindabilityMethod? bindabilityMethod, out IMethodSymbol? bindMethodSymbol)
src\Shared\RoslynUtils\WellKnownTypes.cs (2)
15
private static readonly BoundedCacheWithFactory<Compilation,
WellKnownTypes
> LazyWellKnownTypesCache = new();
17
public static
WellKnownTypes
GetOrCreate(Compilation compilation) =>
WebApplicationBuilder\WebApplicationBuilderAnalyzer.cs (2)
39
var
wellKnownTypes =
WellKnownTypes
.GetOrCreate(compilation);