1 instantiation of RouteParameter
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\RoutePattern\RoutePatternParser.cs (1)
277
var routeParameter = new
RouteParameter
(name, encodeSlashes, defaultValue, hasOptional, hasCatchAll, policies.ToImmutable(), parameterNode.GetSpan());
18 references to RouteParameter
Microsoft.AspNetCore.App.Analyzers (15)
Infrastructure\RoutePattern\RoutePatternParser.cs (3)
70
var routeParameters = ImmutableArray.CreateBuilder<
RouteParameter
>();
213
private static void ValidateParameterParts(RoutePatternCompilationUnit root, IList<EmbeddedDiagnostic> diagnostics, IList<
RouteParameter
> routeParameters)
277
var
routeParameter = new RouteParameter(name, encodeSlashes, defaultValue, hasOptional, hasCatchAll, policies.ToImmutable(), parameterNode.GetSpan());
Infrastructure\RoutePattern\RoutePatternTree.cs (6)
15
public readonly ImmutableArray<
RouteParameter
> RouteParameters;
21
ImmutableArray<
RouteParameter
> routeParameters)
27
public
RouteParameter
GetRouteParameter(string name)
29
if (TryGetRouteParameter(name, out
var
routeParameter))
37
public bool TryGetRouteParameter(string name, out
RouteParameter
routeParameter)
39
foreach (
var
parameter in RouteParameters)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
452
foreach (
var
routeParameter in context.Tree.RouteParameters)
RouteEmbeddedLanguage\RoutePatternAnalyzer.cs (3)
80
var
unusedParameter = routeUsage.RoutePattern.GetRouteParameter(unusedParameterName);
116
private static InsertPoint? CalculateInsertPoint(string routeParameterName, ImmutableArray<
RouteParameter
> routeParameters, ImmutableArray<ParameterSymbol> resolvedParameterSymbols)
122
var
routeParameter = routeParameters[i];
RouteHandlers\DetectMismatchedParameterOptionality.cs (1)
27
if (!routeUsage.RoutePattern.TryGetRouteParameter(paramName, out
var
routeParameter))
RouteHandlers\DisallowNonParsableComplexTypesOnParameters.cs (1)
93
var isRouteParameter = routeUsage.RoutePattern.TryGetRouteParameter(resolvedParameter.RouteParameterName, out
var
_);
Microsoft.AspNetCore.App.Analyzers.Test (3)
RouteEmbeddedLanguage\RoutePatternParserTests.cs (1)
207
if (tree.TryGetRouteParameter(parsedRoutePattern.Name, out
var
routeParameter))
RouteEmbeddedLanguage\RoutePatternParserTests_ConformanceTests.cs (2)
576
var
parameter = tree.GetRouteParameter("p1");
840
if (!tree.TryGetRouteParameter(expectedName, out
var
routeParameter))