@@ -60,21 +60,21 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
60
60
{
61
61
using var stringWriter = new StringWriter ( CultureInfo . InvariantCulture ) ;
62
62
using var codeWriter = new CodeWriter ( stringWriter , baseIndent : 2 ) ;
63
- codeWriter . WriteLine ( $$ """ [global::System.Runtime.CompilerServices. InterceptsLocation(@"{{ endpoint ! . Location . File }} ", {{ endpoint . Location . LineNumber }} , {{ endpoint . Location . CharaceterNumber + 1 }} )]""" ) ;
64
- codeWriter . WriteLine ( $ "internal static global::Microsoft.AspNetCore.Builder. RouteHandlerBuilder { endpoint ! . HttpMethod } _{ endpoint . Location . LineNumber } (") ;
63
+ codeWriter . WriteLine ( $$ """ [InterceptsLocation(@"{{ endpoint . Location . File }} ", {{ endpoint . Location . LineNumber }} , {{ endpoint . Location . CharacterNumber + 1 }} )]""" ) ;
64
+ codeWriter . WriteLine ( $ "internal static RouteHandlerBuilder { endpoint . HttpMethod } _{ endpoint . Location . LineNumber } (") ;
65
65
codeWriter . Indent ++ ;
66
- codeWriter . WriteLine ( "this global::Microsoft.AspNetCore.Routing. IEndpointRouteBuilder endpoints," ) ;
66
+ codeWriter . WriteLine ( "this IEndpointRouteBuilder endpoints," ) ;
67
67
// MapFallback overloads that only take a delegate do not need a pattern argument
68
68
if ( endpoint . HttpMethod != "MapFallback" || endpoint . Operation . Arguments . Length != 2 )
69
69
{
70
- codeWriter . WriteLine ( @"[global::System.Diagnostics.CodeAnalysis. StringSyntax(""Route"")] string pattern," ) ;
70
+ codeWriter . WriteLine ( @"[StringSyntax(""Route"")] string pattern," ) ;
71
71
}
72
72
// MapMethods overloads define an additional `httpMethods` parameter
73
73
if ( endpoint . HttpMethod == "MapMethods" )
74
74
{
75
- codeWriter . WriteLine ( "global::System.Collections.Generic. IEnumerable<string> httpMethods," ) ;
75
+ codeWriter . WriteLine ( "IEnumerable<string> httpMethods," ) ;
76
76
}
77
- codeWriter . WriteLine ( $ "global::System. Delegate handler)") ;
77
+ codeWriter . WriteLine ( " Delegate handler)") ;
78
78
codeWriter . Indent -- ;
79
79
codeWriter . StartBlock ( ) ;
80
80
codeWriter . WriteLine ( "MetadataPopulator populateMetadata = (methodInfo, options) =>" ) ;
@@ -135,7 +135,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
135
135
codeWriter . WriteLine ( "return new RequestDelegateResult(targetDelegate, metadata);" ) ;
136
136
codeWriter . EndBlockWithSemicolon ( ) ;
137
137
138
- codeWriter . WriteLine ( "return global::Microsoft.AspNetCore.Http.Generated. GeneratedRouteBuilderExtensionsCore.MapCore(" ) ;
138
+ codeWriter . WriteLine ( "return GeneratedRouteBuilderExtensionsCore.MapCore(" ) ;
139
139
codeWriter . Indent ++ ;
140
140
codeWriter . WriteLine ( "endpoints," ) ;
141
141
// For `MapFallback` overloads that only take a delegate, provide the assumed default
@@ -149,7 +149,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
149
149
codeWriter . WriteLine ( $ "{ SymbolDisplay . FormatLiteral ( "{*path:nonfile}" , true ) } ,") ;
150
150
}
151
151
codeWriter . WriteLine ( "handler," ) ;
152
- codeWriter . WriteLine ( $ "{ endpoint ! . EmitVerb ( ) } ,") ;
152
+ codeWriter . WriteLine ( $ "{ endpoint . EmitVerb ( ) } ,") ;
153
153
codeWriter . WriteLine ( "populateMetadata," ) ;
154
154
codeWriter . WriteLine ( $ "createRequestDelegate);") ;
155
155
codeWriter . Indent -- ;
0 commit comments