Skip to content

Commit 78cb980

Browse files
authored
Update to new interceptable location APIs (#55285)
1 parent f301b88 commit 78cb980

File tree

49 files changed

+183
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+183
-152
lines changed

eng/SourceBuildPrebuiltBaseline.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,9 @@
4141
<!-- Transivite dependency of Microsoft.CodeAnalysis.ExternalAccess.AspNetCore -> Microsoft.CodeAnalysis.Features.
4242
In product build the dependency is bumped to latest, which also bumps the version of DiaSymReader -->
4343
<UsagePattern IdentityGlob="Microsoft.DiaSymReader/*2.0.0*" />
44+
45+
<!-- Transitive dependency of Roslyn dependencies. -->
46+
<UsagePattern IdentityGlob="System.Text.Json/8.0.0*" />
47+
<UsagePattern IdentityGlob="System.Text.Encodings.Web/8.0.0*" />
4448
</IgnorePatterns>
4549
</UsageData>

eng/Version.Details.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -341,26 +341,26 @@
341341
<SourceBuild RepoName="source-build-reference-packages" ManagedOnly="true" />
342342
</Dependency>
343343
<!-- Not updated automatically -->
344-
<Dependency Name="Microsoft.CodeAnalysis.Common" Version="4.8.0-3.23518.7">
344+
<Dependency Name="Microsoft.CodeAnalysis.Common" Version="4.11.0-1.24218.5">
345345
<Uri>https://github.com/dotnet/roslyn</Uri>
346-
<Sha>1aa759af23d2a29043ea44fcef5bd6823dafa5d0</Sha>
346+
<Sha>afa1eb6821f62183651ab017b2f5c3fbeb934904</Sha>
347347
</Dependency>
348-
<Dependency Name="Microsoft.CodeAnalysis.ExternalAccess.AspNetCore" Version="4.8.0-3.23518.7">
348+
<Dependency Name="Microsoft.CodeAnalysis.ExternalAccess.AspNetCore" Version="4.11.0-1.24218.5">
349349
<Uri>https://github.com/dotnet/roslyn</Uri>
350-
<Sha>1aa759af23d2a29043ea44fcef5bd6823dafa5d0</Sha>
350+
<Sha>afa1eb6821f62183651ab017b2f5c3fbeb934904</Sha>
351351
</Dependency>
352-
<Dependency Name="Microsoft.CodeAnalysis.CSharp" Version="4.8.0-3.23518.7">
352+
<Dependency Name="Microsoft.CodeAnalysis.CSharp" Version="4.11.0-1.24218.5">
353353
<Uri>https://github.com/dotnet/roslyn</Uri>
354-
<Sha>1aa759af23d2a29043ea44fcef5bd6823dafa5d0</Sha>
354+
<Sha>afa1eb6821f62183651ab017b2f5c3fbeb934904</Sha>
355355
</Dependency>
356-
<Dependency Name="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.8.0-3.23518.7">
356+
<Dependency Name="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.11.0-1.24218.5">
357357
<Uri>https://github.com/dotnet/roslyn</Uri>
358-
<Sha>1aa759af23d2a29043ea44fcef5bd6823dafa5d0</Sha>
358+
<Sha>afa1eb6821f62183651ab017b2f5c3fbeb934904</Sha>
359359
</Dependency>
360360
<!-- Intermediate is necessary for source build. -->
361-
<Dependency Name="Microsoft.SourceBuild.Intermediate.roslyn" Version="4.8.0-3.23518.7">
361+
<Dependency Name="Microsoft.SourceBuild.Intermediate.roslyn" Version="4.11.0-1.24218.5">
362362
<Uri>https://github.com/dotnet/roslyn</Uri>
363-
<Sha>1aa759af23d2a29043ea44fcef5bd6823dafa5d0</Sha>
363+
<Sha>afa1eb6821f62183651ab017b2f5c3fbeb934904</Sha>
364364
<SourceBuild RepoName="roslyn" ManagedOnly="true" />
365365
</Dependency>
366366
<Dependency Name="System.Composition" Version="9.0.0-preview.4.24222.10">

eng/Versions.props

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@
149149
<MicrosoftEntityFrameworkCoreVersion>9.0.0-preview.4.24222.2</MicrosoftEntityFrameworkCoreVersion>
150150
<MicrosoftEntityFrameworkCoreDesignVersion>9.0.0-preview.4.24222.2</MicrosoftEntityFrameworkCoreDesignVersion>
151151
<!-- Packages from dotnet/roslyn -->
152-
<MicrosoftCodeAnalysisCommonVersion>4.8.0-3.23518.7</MicrosoftCodeAnalysisCommonVersion>
153-
<MicrosoftCodeAnalysisExternalAccessAspNetCoreVersion>4.8.0-3.23518.7</MicrosoftCodeAnalysisExternalAccessAspNetCoreVersion>
154-
<MicrosoftCodeAnalysisCSharpVersion>4.8.0-3.23518.7</MicrosoftCodeAnalysisCSharpVersion>
155-
<MicrosoftCodeAnalysisCSharpWorkspacesVersion>4.8.0-3.23518.7</MicrosoftCodeAnalysisCSharpWorkspacesVersion>
156-
<MicrosoftSourceBuildIntermediateroslynVersion>4.8.0-3.23518.7</MicrosoftSourceBuildIntermediateroslynVersion>
152+
<MicrosoftCodeAnalysisCommonVersion>4.11.0-1.24218.5</MicrosoftCodeAnalysisCommonVersion>
153+
<MicrosoftCodeAnalysisExternalAccessAspNetCoreVersion>4.11.0-1.24218.5</MicrosoftCodeAnalysisExternalAccessAspNetCoreVersion>
154+
<MicrosoftCodeAnalysisCSharpVersion>4.11.0-1.24218.5</MicrosoftCodeAnalysisCSharpVersion>
155+
<MicrosoftCodeAnalysisCSharpWorkspacesVersion>4.11.0-1.24218.5</MicrosoftCodeAnalysisCSharpWorkspacesVersion>
156+
<MicrosoftSourceBuildIntermediateroslynVersion>4.11.0-1.24218.5</MicrosoftSourceBuildIntermediateroslynVersion>
157157
<!-- Packages from NuGet/Nuget.client -->
158158
<!-- If you update these versions, make sure to also update https://github.com/dotnet/aspnetcore/blob/main/eng/SourceBuildPrebuiltBaseline.xml -->
159159
<NuGetPackagingVersion>6.2.4</NuGetPackagingVersion>
@@ -249,11 +249,11 @@
249249
<Analyzer_MicrosoftCodeAnalysisCSharpWorkspacesVersion>3.3.1</Analyzer_MicrosoftCodeAnalysisCSharpWorkspacesVersion>
250250
<!-- Pin the version of the M.CA dependencies that we utilize with a cutom version property $(MicrosoftCodeAnalysisVersion_LatestVS) to avoid automatically
251251
consuming the newest version of the packages when using the $(MicrosoftCodeAnalysisCSharpVersion) properties in source-build. -->
252-
<MicrosoftCodeAnalysisVersion_LatestVS>4.8.0-3.23518.7</MicrosoftCodeAnalysisVersion_LatestVS>
253-
<MicrosoftCodeAnalysisExternalAccessAspNetCoreVersion>4.8.0-3.23518.7</MicrosoftCodeAnalysisExternalAccessAspNetCoreVersion>
254-
<MicrosoftCodeAnalysisCommonVersion>4.8.0-3.23518.7</MicrosoftCodeAnalysisCommonVersion>
255-
<MicrosoftCodeAnalysisCSharpVersion>4.8.0-3.23518.7</MicrosoftCodeAnalysisCSharpVersion>
256-
<MicrosoftCodeAnalysisCSharpWorkspacesVersion>4.8.0-3.23518.7</MicrosoftCodeAnalysisCSharpWorkspacesVersion>
252+
<MicrosoftCodeAnalysisVersion_LatestVS>4.11.0-1.24218.5</MicrosoftCodeAnalysisVersion_LatestVS>
253+
<MicrosoftCodeAnalysisExternalAccessAspNetCoreVersion>4.11.0-1.24218.5</MicrosoftCodeAnalysisExternalAccessAspNetCoreVersion>
254+
<MicrosoftCodeAnalysisCommonVersion>4.11.0-1.24218.5</MicrosoftCodeAnalysisCommonVersion>
255+
<MicrosoftCodeAnalysisCSharpVersion>4.11.0-1.24218.5</MicrosoftCodeAnalysisCSharpVersion>
256+
<MicrosoftCodeAnalysisCSharpWorkspacesVersion>4.11.0-1.24218.5</MicrosoftCodeAnalysisCSharpWorkspacesVersion>
257257
<MicrosoftCodeAnalysisPublicApiAnalyzersVersion>3.3.3</MicrosoftCodeAnalysisPublicApiAnalyzersVersion>
258258
<MicrosoftCodeAnalysisCSharpAnalyzerTestingXUnitVersion>1.1.2-beta1.24121.1</MicrosoftCodeAnalysisCSharpAnalyzerTestingXUnitVersion>
259259
<MicrosoftCodeAnalysisCSharpCodeFixTestingXUnitVersion>1.1.2-beta1.24121.1</MicrosoftCodeAnalysisCSharpCodeFixTestingXUnitVersion>

src/Http/Http.Extensions/gen/RequestDelegateGenerator.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,17 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
5454
.WithTrackingName(GeneratorSteps.EndpointsWithoutDiagnosicsStep);
5555

5656
var interceptorDefinitions = endpoints
57-
.GroupWith((endpoint) => endpoint.Location, EndpointDelegateComparer.Instance)
57+
.GroupWith((endpoint) => endpoint.InterceptableLocation, EndpointDelegateComparer.Instance)
5858
.Select((endpointWithLocations, _) =>
5959
{
6060
var endpoint = endpointWithLocations.Source;
6161
using var stringWriter = new StringWriter(CultureInfo.InvariantCulture);
6262
using var codeWriter = new CodeWriter(stringWriter, baseIndent: 2);
6363
foreach (var location in endpointWithLocations.Elements)
6464
{
65-
codeWriter.WriteLine($$"""[InterceptsLocation(@"{{location.File}}", {{location.LineNumber}}, {{location.CharacterNumber}})]""");
65+
#pragma warning disable RSEXPERIMENTAL002 // Experimental interceptable location API
66+
codeWriter.WriteLine(location.GetInterceptsLocationAttributeSyntax());
67+
#pragma warning restore RSEXPERIMENTAL002
6668
}
6769
codeWriter.WriteLine($"internal static RouteHandlerBuilder {endpoint.HttpMethod}{endpointWithLocations.Index}(");
6870
codeWriter.Indent++;

src/Http/Http.Extensions/gen/RequestDelegateGeneratorSources.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ namespace System.Runtime.CompilerServices
471471
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
472472
file sealed class InterceptsLocationAttribute : Attribute
473473
{
474-
public InterceptsLocationAttribute(string filePath, int line, int column)
474+
public InterceptsLocationAttribute(int version, string data)
475475
{
476476
}
477477
}

src/Http/Http.Extensions/gen/StaticRouteHandlerModel/Endpoint.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using Microsoft.AspNetCore.App.Analyzers.Infrastructure;
99
using Microsoft.AspNetCore.Http.RequestDelegateGenerator.StaticRouteHandlerModel.Emitters;
1010
using Microsoft.CodeAnalysis;
11+
using Microsoft.CodeAnalysis.CSharp;
1112
using Microsoft.CodeAnalysis.CSharp.Syntax;
1213
using Microsoft.CodeAnalysis.Operations;
1314

@@ -19,6 +20,9 @@ public Endpoint(IInvocationOperation operation, WellKnownTypes wellKnownTypes, S
1920
{
2021
Operation = operation;
2122
Location = GetLocation(operation);
23+
#pragma warning disable RSEXPERIMENTAL002 // Experimental interceptable location API
24+
InterceptableLocation = semanticModel.GetInterceptableLocation((InvocationExpressionSyntax)operation.Syntax)!;
25+
#pragma warning restore RSEXPERIMENTAL002
2226
HttpMethod = GetHttpMethod(operation);
2327
EmitterContext = new EmitterContext();
2428

@@ -98,10 +102,13 @@ parameter is not null &&
98102
public List<Diagnostic> Diagnostics { get; } = new List<Diagnostic>();
99103

100104
public (string File, int LineNumber, int CharacterNumber) Location { get; }
105+
#pragma warning disable RSEXPERIMENTAL002 // Experimental interceptable location API
106+
public InterceptableLocation InterceptableLocation { get; }
107+
#pragma warning restore RSEXPERIMENTAL002
101108
public IInvocationOperation Operation { get; }
102109

103110
public override bool Equals(object o) =>
104-
o is Endpoint other && Location == other.Location && SignatureEquals(this, other);
111+
o is Endpoint other && InterceptableLocation == other.InterceptableLocation && SignatureEquals(this, other);
105112

106113
public override int GetHashCode() =>
107114
HashCode.Combine(Location, GetSignatureHashCode(this));

src/Http/Http.Extensions/test/RequestDelegateGenerator/Baselines/HandlesEndpointsWithAndWithoutDiagnostics.generated.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace System.Runtime.CompilerServices
1414
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
1515
file sealed class InterceptsLocationAttribute : Attribute
1616
{
17-
public InterceptsLocationAttribute(string filePath, int line, int column)
17+
public InterceptsLocationAttribute(int version, string data)
1818
{
1919
}
2020
}
@@ -58,7 +58,7 @@ namespace Microsoft.AspNetCore.Http.Generated
5858
private static readonly JsonOptions FallbackJsonOptions = new();
5959
private static readonly string[] GetVerb = new[] { global::Microsoft.AspNetCore.Http.HttpMethods.Get };
6060

61-
[InterceptsLocation(@"TestMapActions.cs", 9, 13)]
61+
%INTERCEPTSLOCATIONATTRIBUTE%
6262
internal static RouteHandlerBuilder MapGet0(
6363
this IEndpointRouteBuilder endpoints,
6464
[StringSyntax("Route")] string pattern,

src/Http/Http.Extensions/test/RequestDelegateGenerator/Baselines/MapAction_BindAsync_NullableReturn.generated.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace System.Runtime.CompilerServices
1414
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
1515
file sealed class InterceptsLocationAttribute : Attribute
1616
{
17-
public InterceptsLocationAttribute(string filePath, int line, int column)
17+
public InterceptsLocationAttribute(int version, string data)
1818
{
1919
}
2020
}
@@ -58,8 +58,8 @@ namespace Microsoft.AspNetCore.Http.Generated
5858
private static readonly JsonOptions FallbackJsonOptions = new();
5959
private static readonly string[] GetVerb = new[] { global::Microsoft.AspNetCore.Http.HttpMethods.Get };
6060

61-
[InterceptsLocation(@"TestMapActions.cs", 26, 13)]
62-
[InterceptsLocation(@"TestMapActions.cs", 27, 5)]
61+
%INTERCEPTSLOCATIONATTRIBUTE%
62+
%INTERCEPTSLOCATIONATTRIBUTE%
6363
internal static RouteHandlerBuilder MapGet0(
6464
this IEndpointRouteBuilder endpoints,
6565
[StringSyntax("Route")] string pattern,
@@ -168,8 +168,8 @@ namespace Microsoft.AspNetCore.Http.Generated
168168
castHandler.Method);
169169
}
170170

171-
[InterceptsLocation(@"TestMapActions.cs", 29, 5)]
172-
[InterceptsLocation(@"TestMapActions.cs", 30, 5)]
171+
%INTERCEPTSLOCATIONATTRIBUTE%
172+
%INTERCEPTSLOCATIONATTRIBUTE%
173173
internal static RouteHandlerBuilder MapGet1(
174174
this IEndpointRouteBuilder endpoints,
175175
[StringSyntax("Route")] string pattern,

src/Http/Http.Extensions/test/RequestDelegateGenerator/Baselines/MapAction_BindAsync_Snapshot.generated.txt

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace System.Runtime.CompilerServices
1414
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
1515
file sealed class InterceptsLocationAttribute : Attribute
1616
{
17-
public InterceptsLocationAttribute(string filePath, int line, int column)
17+
public InterceptsLocationAttribute(int version, string data)
1818
{
1919
}
2020
}
@@ -58,7 +58,7 @@ namespace Microsoft.AspNetCore.Http.Generated
5858
private static readonly JsonOptions FallbackJsonOptions = new();
5959
private static readonly string[] GetVerb = new[] { global::Microsoft.AspNetCore.Http.HttpMethods.Get };
6060

61-
[InterceptsLocation(@"TestMapActions.cs", 26, 13)]
61+
%INTERCEPTSLOCATIONATTRIBUTE%
6262
internal static RouteHandlerBuilder MapGet0(
6363
this IEndpointRouteBuilder endpoints,
6464
[StringSyntax("Route")] string pattern,
@@ -169,7 +169,7 @@ namespace Microsoft.AspNetCore.Http.Generated
169169
castHandler.Method);
170170
}
171171

172-
[InterceptsLocation(@"TestMapActions.cs", 27, 5)]
172+
%INTERCEPTSLOCATIONATTRIBUTE%
173173
internal static RouteHandlerBuilder MapGet1(
174174
this IEndpointRouteBuilder endpoints,
175175
[StringSyntax("Route")] string pattern,
@@ -266,7 +266,7 @@ namespace Microsoft.AspNetCore.Http.Generated
266266
castHandler.Method);
267267
}
268268

269-
[InterceptsLocation(@"TestMapActions.cs", 28, 5)]
269+
%INTERCEPTSLOCATIONATTRIBUTE%
270270
internal static RouteHandlerBuilder MapGet2(
271271
this IEndpointRouteBuilder endpoints,
272272
[StringSyntax("Route")] string pattern,
@@ -365,7 +365,7 @@ namespace Microsoft.AspNetCore.Http.Generated
365365
castHandler.Method);
366366
}
367367

368-
[InterceptsLocation(@"TestMapActions.cs", 29, 5)]
368+
%INTERCEPTSLOCATIONATTRIBUTE%
369369
internal static RouteHandlerBuilder MapGet3(
370370
this IEndpointRouteBuilder endpoints,
371371
[StringSyntax("Route")] string pattern,
@@ -462,7 +462,7 @@ namespace Microsoft.AspNetCore.Http.Generated
462462
castHandler.Method);
463463
}
464464

465-
[InterceptsLocation(@"TestMapActions.cs", 30, 5)]
465+
%INTERCEPTSLOCATIONATTRIBUTE%
466466
internal static RouteHandlerBuilder MapGet4(
467467
this IEndpointRouteBuilder endpoints,
468468
[StringSyntax("Route")] string pattern,
@@ -573,7 +573,7 @@ namespace Microsoft.AspNetCore.Http.Generated
573573
castHandler.Method);
574574
}
575575

576-
[InterceptsLocation(@"TestMapActions.cs", 31, 5)]
576+
%INTERCEPTSLOCATIONATTRIBUTE%
577577
internal static RouteHandlerBuilder MapGet5(
578578
this IEndpointRouteBuilder endpoints,
579579
[StringSyntax("Route")] string pattern,
@@ -670,7 +670,7 @@ namespace Microsoft.AspNetCore.Http.Generated
670670
castHandler.Method);
671671
}
672672

673-
[InterceptsLocation(@"TestMapActions.cs", 32, 5)]
673+
%INTERCEPTSLOCATIONATTRIBUTE%
674674
internal static RouteHandlerBuilder MapGet6(
675675
this IEndpointRouteBuilder endpoints,
676676
[StringSyntax("Route")] string pattern,
@@ -769,7 +769,7 @@ namespace Microsoft.AspNetCore.Http.Generated
769769
castHandler.Method);
770770
}
771771

772-
[InterceptsLocation(@"TestMapActions.cs", 33, 5)]
772+
%INTERCEPTSLOCATIONATTRIBUTE%
773773
internal static RouteHandlerBuilder MapGet7(
774774
this IEndpointRouteBuilder endpoints,
775775
[StringSyntax("Route")] string pattern,
@@ -866,7 +866,7 @@ namespace Microsoft.AspNetCore.Http.Generated
866866
castHandler.Method);
867867
}
868868

869-
[InterceptsLocation(@"TestMapActions.cs", 34, 5)]
869+
%INTERCEPTSLOCATIONATTRIBUTE%
870870
internal static RouteHandlerBuilder MapGet8(
871871
this IEndpointRouteBuilder endpoints,
872872
[StringSyntax("Route")] string pattern,
@@ -976,7 +976,7 @@ namespace Microsoft.AspNetCore.Http.Generated
976976
castHandler.Method);
977977
}
978978

979-
[InterceptsLocation(@"TestMapActions.cs", 35, 5)]
979+
%INTERCEPTSLOCATIONATTRIBUTE%
980980
internal static RouteHandlerBuilder MapGet9(
981981
this IEndpointRouteBuilder endpoints,
982982
[StringSyntax("Route")] string pattern,
@@ -1072,7 +1072,7 @@ namespace Microsoft.AspNetCore.Http.Generated
10721072
castHandler.Method);
10731073
}
10741074

1075-
[InterceptsLocation(@"TestMapActions.cs", 36, 5)]
1075+
%INTERCEPTSLOCATIONATTRIBUTE%
10761076
internal static RouteHandlerBuilder MapGet10(
10771077
this IEndpointRouteBuilder endpoints,
10781078
[StringSyntax("Route")] string pattern,
@@ -1170,7 +1170,7 @@ namespace Microsoft.AspNetCore.Http.Generated
11701170
castHandler.Method);
11711171
}
11721172

1173-
[InterceptsLocation(@"TestMapActions.cs", 37, 5)]
1173+
%INTERCEPTSLOCATIONATTRIBUTE%
11741174
internal static RouteHandlerBuilder MapGet11(
11751175
this IEndpointRouteBuilder endpoints,
11761176
[StringSyntax("Route")] string pattern,
@@ -1266,7 +1266,7 @@ namespace Microsoft.AspNetCore.Http.Generated
12661266
castHandler.Method);
12671267
}
12681268

1269-
[InterceptsLocation(@"TestMapActions.cs", 38, 5)]
1269+
%INTERCEPTSLOCATIONATTRIBUTE%
12701270
internal static RouteHandlerBuilder MapGet12(
12711271
this IEndpointRouteBuilder endpoints,
12721272
[StringSyntax("Route")] string pattern,
@@ -1377,7 +1377,7 @@ namespace Microsoft.AspNetCore.Http.Generated
13771377
castHandler.Method);
13781378
}
13791379

1380-
[InterceptsLocation(@"TestMapActions.cs", 39, 5)]
1380+
%INTERCEPTSLOCATIONATTRIBUTE%
13811381
internal static RouteHandlerBuilder MapGet13(
13821382
this IEndpointRouteBuilder endpoints,
13831383
[StringSyntax("Route")] string pattern,
@@ -1474,7 +1474,7 @@ namespace Microsoft.AspNetCore.Http.Generated
14741474
castHandler.Method);
14751475
}
14761476

1477-
[InterceptsLocation(@"TestMapActions.cs", 40, 5)]
1477+
%INTERCEPTSLOCATIONATTRIBUTE%
14781478
internal static RouteHandlerBuilder MapGet14(
14791479
this IEndpointRouteBuilder endpoints,
14801480
[StringSyntax("Route")] string pattern,
@@ -1584,7 +1584,7 @@ namespace Microsoft.AspNetCore.Http.Generated
15841584
castHandler.Method);
15851585
}
15861586

1587-
[InterceptsLocation(@"TestMapActions.cs", 41, 5)]
1587+
%INTERCEPTSLOCATIONATTRIBUTE%
15881588
internal static RouteHandlerBuilder MapGet15(
15891589
this IEndpointRouteBuilder endpoints,
15901590
[StringSyntax("Route")] string pattern,
@@ -1680,7 +1680,7 @@ namespace Microsoft.AspNetCore.Http.Generated
16801680
castHandler.Method);
16811681
}
16821682

1683-
[InterceptsLocation(@"TestMapActions.cs", 42, 5)]
1683+
%INTERCEPTSLOCATIONATTRIBUTE%
16841684
internal static RouteHandlerBuilder MapGet16(
16851685
this IEndpointRouteBuilder endpoints,
16861686
[StringSyntax("Route")] string pattern,
@@ -1791,7 +1791,7 @@ namespace Microsoft.AspNetCore.Http.Generated
17911791
castHandler.Method);
17921792
}
17931793

1794-
[InterceptsLocation(@"TestMapActions.cs", 43, 5)]
1794+
%INTERCEPTSLOCATIONATTRIBUTE%
17951795
internal static RouteHandlerBuilder MapGet17(
17961796
this IEndpointRouteBuilder endpoints,
17971797
[StringSyntax("Route")] string pattern,
@@ -1888,7 +1888,7 @@ namespace Microsoft.AspNetCore.Http.Generated
18881888
castHandler.Method);
18891889
}
18901890

1891-
[InterceptsLocation(@"TestMapActions.cs", 44, 5)]
1891+
%INTERCEPTSLOCATIONATTRIBUTE%
18921892
internal static RouteHandlerBuilder MapGet18(
18931893
this IEndpointRouteBuilder endpoints,
18941894
[StringSyntax("Route")] string pattern,
@@ -1998,7 +1998,7 @@ namespace Microsoft.AspNetCore.Http.Generated
19981998
castHandler.Method);
19991999
}
20002000

2001-
[InterceptsLocation(@"TestMapActions.cs", 45, 5)]
2001+
%INTERCEPTSLOCATIONATTRIBUTE%
20022002
internal static RouteHandlerBuilder MapGet19(
20032003
this IEndpointRouteBuilder endpoints,
20042004
[StringSyntax("Route")] string pattern,

0 commit comments

Comments
 (0)