14 references to GetSpan
Microsoft.AspNetCore.App.Analyzers (14)
Infrastructure\RoutePattern\RoutePatternParser.cs (11)
106
diagnostics.Add(new EmbeddedDiagnostic(Resources.TemplateRoute_InvalidRouteTemplate, segmentPart.
GetSpan
()));
119
diagnostics.Add(new EmbeddedDiagnostic(Resources.TemplateRoute_InvalidRouteTemplate, segmentPart.
GetSpan
()));
135
diagnostics.Add(new EmbeddedDiagnostic(Resources.TemplateRoute_CatchAllMustBeLast, catchAllParameterNode.
GetSpan
()));
150
diagnostics.Add(new EmbeddedDiagnostic(Resources.TemplateRoute_CannotHaveCatchAllInMultiSegment, catchAllParameterNode.
GetSpan
()));
178
diagnostics.Add(new EmbeddedDiagnostic(message, segmentNode.
GetSpan
()));
195
diagnostics.Add(new EmbeddedDiagnostic(message, parameterNode.
GetSpan
()));
202
diagnostics.Add(new EmbeddedDiagnostic(Resources.TemplateRoute_CannotHaveConsecutiveParameters, parameterNode.
GetSpan
()));
266
diagnostics.Add(new EmbeddedDiagnostic(Resources.TemplateRoute_OptionalCannotHaveDefaultValue, parameterNode.
GetSpan
()));
270
diagnostics.Add(new EmbeddedDiagnostic(Resources.TemplateRoute_CatchAllCannotBeOptional, parameterNode.
GetSpan
()));
277
var routeParameter = new RouteParameter(name, encodeSlashes, defaultValue, hasOptional, hasCatchAll, policies.ToImmutable(), parameterNode.
GetSpan
());
282
diagnostics.Add(new EmbeddedDiagnostic(Resources.FormatTemplateRoute_RepeatedParameter(name), parameterNode.
GetSpan
()));
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (2)
361
? parentOpt.
GetSpan
().Start
364
? parentOpt.
GetSpan
().End
RouteEmbeddedLanguage\RoutePatternHighlighter.cs (1)
53
highlightSpans.Add(new AspNetCoreHighlightSpan(node.
GetSpan
(), AspNetCoreHighlightSpanKind.Reference));