From 19a89fdfdf4388bf348384fec3f4d273468a6335 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Mon, 22 Dec 2025 21:14:36 -0500 Subject: [PATCH 1/4] refactor: cleanup and consistency improvements across project - Removed redundant null-forgiving operators in test assertions. - Updated parameter names to underscore (_) for unused variables. - Renamed variables to adhere to standard naming conventions. - Replaced async lambdas with direct task creation where applicable. - Suppressed unused code warnings with proper comments. - Simplified feature collection creation by reusing variables. - Improved disposable enumerator usage with 'using' declaration. - Deleted unused test cases to focus on relevance. - Applied `pragma` to suppress dynamic code analysis warnings. - Replaced out variable usage with discard (`_`) in test setups. - Added missing ReSharper suppression comments. --- .../MinimalLambda.Benchmarks/Program.cs | 4 +-- .../MinimalLambda.Example.Events/Program.cs | 2 +- .../Program.cs | 4 +-- .../OutputGenerators/GenericHandlerSources.cs | 16 +---------- .../OutputGenerators/MapHandlerSources.cs | 1 + .../Extractors/HandlerInfoExtractor.cs | 2 +- .../HostFactoryResolver.cs | 2 ++ .../Extensions/ServiceCollectionExtensions.cs | 2 ++ .../Builder/LambdaApplication.cs | 4 +-- .../Builder/LambdaOnInitBuilder.cs | 1 + .../Runtime/LambdaHandlerComposer.cs | 12 ++++----- .../AlbResponseEnvelopeTests.cs | 6 ++--- .../AlbResultTests.cs | 2 +- .../ApiGatewayRequestEnvelopeTests.cs | 20 +------------- .../ApiGatewayResponseEnvelopeTests.cs | 8 +++--- .../ApiGatewayResultTests.cs | 2 +- .../ApiGatewayV2ResponseEnvelopeTests.cs | 8 +++--- .../ApiGatewayV2ResultTests.cs | 2 +- .../HttpResultExtensionsTests.cs | 1 + .../KinesisFirehoseResponseEnvelopeTests.cs | 2 +- .../DiLambdaTests.cs | 1 + .../NoResponseLambdaTests.cs | 2 ++ .../SimpleLambdaTests.cs | 3 +++ ...pClientServiceCollectionExtensionsTests.cs | 12 ++++----- .../ServiceCollectionExtensionsTests.cs | 22 +++++++-------- .../Builder/LambdaApplicationTests.cs | 10 +++---- .../Builder/LambdaOnInitBuilderTests.cs | 2 +- .../Context/LambdaInvocationContextFactory.cs | 3 +++ .../Core/Features/DefaultEventFeatureTests.cs | 2 +- .../DefaultFeatureCollectionFactoryTests.cs | 5 ++-- .../Features/DefaultFeatureCollectionTests.cs | 17 +++++++----- .../FeatureCollectionExtensionsTests.cs | 1 + .../Runtime/LambdaHandlerComposerTests.cs | 10 +++---- .../Core/Runtime/LambdaHostedServiceTests.cs | 27 +++++-------------- 34 files changed, 94 insertions(+), 124 deletions(-) diff --git a/benchmarks/MinimalLambda.Benchmarks/Program.cs b/benchmarks/MinimalLambda.Benchmarks/Program.cs index 784d7f94..721fe92b 100644 --- a/benchmarks/MinimalLambda.Benchmarks/Program.cs +++ b/benchmarks/MinimalLambda.Benchmarks/Program.cs @@ -4,6 +4,4 @@ var config = DefaultConfig.Instance; -var summary = BenchmarkRunner.Run(config, args); - -// var summaries = BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, config); +BenchmarkRunner.Run(config, args); diff --git a/examples/MinimalLambda.Example.Events/Program.cs b/examples/MinimalLambda.Example.Events/Program.cs index e0cb6c00..ce4a6779 100644 --- a/examples/MinimalLambda.Example.Events/Program.cs +++ b/examples/MinimalLambda.Example.Events/Program.cs @@ -30,7 +30,7 @@ ( [FromEvent] ApiGatewayRequestEnvelope request, ILogger logger, - ILambdaInvocationContext context + ILambdaInvocationContext _ ) => { logger.LogInformation("In Handler. Payload: {Payload}", request.Body); diff --git a/examples/MinimalLambda.Example.Lifecycle/Program.cs b/examples/MinimalLambda.Example.Lifecycle/Program.cs index 139497cf..4a34b9e6 100644 --- a/examples/MinimalLambda.Example.Lifecycle/Program.cs +++ b/examples/MinimalLambda.Example.Lifecycle/Program.cs @@ -58,7 +58,7 @@ async Task (ILogger logger, CancellationToken cancellationToken) }); lambda.OnShutdown( - (CancellationToken token) => + (CancellationToken _) => { Console.WriteLine("Shutting down..."); return Task.CompletedTask; @@ -68,7 +68,7 @@ async Task (ILogger logger, CancellationToken cancellationToken) lambda.OnShutdown( Task (IService service) => { - Console.WriteLine(service?.GetMessage()); + Console.WriteLine(service.GetMessage()); return Task.CompletedTask; } ); diff --git a/src/MinimalLambda.SourceGenerators/OutputGenerators/GenericHandlerSources.cs b/src/MinimalLambda.SourceGenerators/OutputGenerators/GenericHandlerSources.cs index 7103bbba..738531d9 100644 --- a/src/MinimalLambda.SourceGenerators/OutputGenerators/GenericHandlerSources.cs +++ b/src/MinimalLambda.SourceGenerators/OutputGenerators/GenericHandlerSources.cs @@ -12,21 +12,6 @@ internal static class GenericHandlerSources /// handler. The return type of the wrapper is a Task or Task<T> depending on /// the return type of the actual handler. /// - /// The method info from which the handler is generated - /// - /// The name of the method that the handler is coming from and for which the - /// code is intercepting - /// - /// - /// The return type of the wrapper function, without Task. Ex., - /// bool not Task<bool>. A null signifies no return value. - /// - /// - /// The default value the wrapped handler will return if the - /// handler does not return a value of the same type as wrapperReturnType. This is without Task. - /// Ex., bool not Task<bool>. A null signifies no default return value. - /// - /// internal static string Generate( EquatableArray higherOrderMethodInfos, string methodName, @@ -155,5 +140,6 @@ private static HandlerArg[] BuildHandlerParameterAssignment(this DelegateInfo de return handlerArgs; } + // ReSharper disable NotAccessedPositionalProperty.Local private readonly record struct HandlerArg(string String, string Assignment); } diff --git a/src/MinimalLambda.SourceGenerators/OutputGenerators/MapHandlerSources.cs b/src/MinimalLambda.SourceGenerators/OutputGenerators/MapHandlerSources.cs index 709c1f5f..660895f3 100644 --- a/src/MinimalLambda.SourceGenerators/OutputGenerators/MapHandlerSources.cs +++ b/src/MinimalLambda.SourceGenerators/OutputGenerators/MapHandlerSources.cs @@ -115,5 +115,6 @@ private static HandlerArg[] BuildHandlerParameterAssignment(this DelegateInfo de }) .ToArray(); + // ReSharper disable NotAccessedPositionalProperty.Local private readonly record struct HandlerArg(string String, string Assignment); } diff --git a/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs b/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs index ed116504..58eba2f2 100644 --- a/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs +++ b/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs @@ -133,7 +133,7 @@ CancellationToken cancellationToken private static ExpressionSyntax? GetDelegateFromCast( CastExpressionSyntax castExpression, - CancellationToken cancellationToken + CancellationToken _ ) { // must have at least 2 children -> expression at index 1, cast at index 0 diff --git a/src/MinimalLambda.Testing/HostFactoryResolver.cs b/src/MinimalLambda.Testing/HostFactoryResolver.cs index ff6a46ed..924f3066 100644 --- a/src/MinimalLambda.Testing/HostFactoryResolver.cs +++ b/src/MinimalLambda.Testing/HostFactoryResolver.cs @@ -12,6 +12,8 @@ using System.Diagnostics; using System.Reflection; +// ReSharper disable All + namespace Microsoft.Extensions.Hosting; internal sealed class HostFactoryResolver diff --git a/src/MinimalLambda/Builder/Extensions/ServiceCollectionExtensions.cs b/src/MinimalLambda/Builder/Extensions/ServiceCollectionExtensions.cs index ece2123b..7fa8dfbb 100644 --- a/src/MinimalLambda/Builder/Extensions/ServiceCollectionExtensions.cs +++ b/src/MinimalLambda/Builder/Extensions/ServiceCollectionExtensions.cs @@ -81,7 +81,9 @@ public IServiceCollection TryAddLambdaHostDefaultServices() // We will only attempt to add ILambdaSerializer if we are not using AOT. // This is needed for code AOT analysis. if (RuntimeFeature.IsDynamicCodeSupported) +#pragma warning disable IL2026 services.TryAddSingleton(); +#pragma warning restore IL2026 services.TryAddSingleton< ILambdaCancellationFactory, diff --git a/src/MinimalLambda/Builder/LambdaApplication.cs b/src/MinimalLambda/Builder/LambdaApplication.cs index 497f7af3..4c2f0262 100644 --- a/src/MinimalLambda/Builder/LambdaApplication.cs +++ b/src/MinimalLambda/Builder/LambdaApplication.cs @@ -52,9 +52,7 @@ internal LambdaApplication(IHost host) /// Gets the application's logger. public ILogger Logger => field ??= - _host - .Services.GetService() - ?.CreateLogger(Environment.ApplicationName ?? nameof(LambdaApplication)) + _host.Services.GetService()?.CreateLogger(Environment.ApplicationName) ?? NullLogger.Instance; /// diff --git a/src/MinimalLambda/Builder/LambdaOnInitBuilder.cs b/src/MinimalLambda/Builder/LambdaOnInitBuilder.cs index 1bc1dceb..a1c7c383 100644 --- a/src/MinimalLambda/Builder/LambdaOnInitBuilder.cs +++ b/src/MinimalLambda/Builder/LambdaOnInitBuilder.cs @@ -51,6 +51,7 @@ public ILambdaOnInitBuilder OnInit(LambdaInitDelegate handler) using var cts = CancellationTokenSource.CreateLinkedTokenSource(stoppingToken); cts.CancelAfter(_options.InitTimeout); + // ReSharper disable once AccessToDisposedClosure var tasks = _handlers.Select(h => RunInitHandler(h, cts.Token)); (Exception? Error, bool ShouldContinue)[] results; diff --git a/src/MinimalLambda/Runtime/LambdaHandlerComposer.cs b/src/MinimalLambda/Runtime/LambdaHandlerComposer.cs index 5f2be620..b2ccb761 100644 --- a/src/MinimalLambda/Runtime/LambdaHandlerComposer.cs +++ b/src/MinimalLambda/Runtime/LambdaHandlerComposer.cs @@ -63,26 +63,26 @@ async Task CreateRequestHandler(Stream inputStream, ILambdaContext lambd // Create a new lambda host context. This will also create a new service scope // the first time that the service container is accessed. - var LambdaInvocationContext = _contextFactory.Create( + var lambdaInvocationContext = _contextFactory.Create( lambdaContext, builder.Properties, linkedTokenSource.Token ); - await using (LambdaInvocationContext as IAsyncDisposable) + await using (lambdaInvocationContext as IAsyncDisposable) { using var invocationDataFeature = _invocationDataFeatureFactory.Create(inputStream); - LambdaInvocationContext.Features.Set(invocationDataFeature); + lambdaInvocationContext.Features.Set(invocationDataFeature); // Invoke the handler wrapped in the middleware pipeline. - await handler.Invoke(LambdaInvocationContext).ConfigureAwait(false); + await handler.Invoke(lambdaInvocationContext).ConfigureAwait(false); if ( - LambdaInvocationContext.Features.TryGet( + lambdaInvocationContext.Features.TryGet( out var responseFeature ) ) - responseFeature.SerializeToStream(LambdaInvocationContext); + responseFeature.SerializeToStream(lambdaInvocationContext); // If no serializer is provided, return an empty stream. return invocationDataFeature.ResponseStream; diff --git a/tests/MinimalLambda.Envelopes.UnitTests/AlbResponseEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/AlbResponseEnvelopeTests.cs index b925c331..f426f0a6 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/AlbResponseEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/AlbResponseEnvelopeTests.cs @@ -33,7 +33,7 @@ public void PackPayload_WithValidData_SerializesBodyContent() options.JsonOptions ); deserializedData.Should().NotBeNull(); - deserializedData!.Message.Should().Be(responseData.Message); + deserializedData.Message.Should().Be(responseData.Message); deserializedData.Code.Should().Be(responseData.Code); } @@ -82,7 +82,7 @@ public void BodyContent_HasJsonIgnoreAttribute() { // Arrange var property = typeof(AlbResponseEnvelope).GetProperty( - nameof(AlbResponseEnvelope.BodyContent) + nameof(AlbResponseEnvelope<>.BodyContent) ); // Act @@ -118,7 +118,7 @@ public void PackPayload_WithComplexObject_PreservesAllProperties() envelope.Body.Should().NotBeNull(); var deserializedData = JsonSerializer.Deserialize(envelope.Body); deserializedData.Should().NotBeNull(); - deserializedData!.Message.Should().Be(responseData.Message); + deserializedData.Message.Should().Be(responseData.Message); deserializedData.Code.Should().Be(responseData.Code); } diff --git a/tests/MinimalLambda.Envelopes.UnitTests/AlbResultTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/AlbResultTests.cs index 61df315e..e2ebab82 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/AlbResultTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/AlbResultTests.cs @@ -50,7 +50,7 @@ public void PackPayload_SerializesBodyContent() result.Body.Should().NotBeNull(); var deserialized = JsonSerializer.Deserialize(result.Body); deserialized.Should().NotBeNull(); - deserialized!.Name.Should().Be(payload.Name); + deserialized.Name.Should().Be(payload.Name); deserialized.Value.Should().Be(payload.Value); } diff --git a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayRequestEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayRequestEnvelopeTests.cs index 4d9b88a1..4c021419 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayRequestEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayRequestEnvelopeTests.cs @@ -116,7 +116,7 @@ public void BodyContent_HasJsonIgnoreAttribute() { // Arrange var property = typeof(ApiGatewayRequestEnvelope).GetProperty( - nameof(ApiGatewayRequestEnvelope.BodyContent) + nameof(ApiGatewayRequestEnvelope<>.BodyContent) ); // Act @@ -137,24 +137,6 @@ public void ApiGatewayRequestEnvelope_InheritsFromApiGatewayProxyRequest() envelope.Should().BeAssignableTo(); } - [Fact] - public void ExtractPayload_WithMultipleProperties_PreservesAllValues() - { - // Arrange - var testData = _fixture.Create(); - var json = JsonSerializer.Serialize(testData); - var envelope = new ApiGatewayRequestEnvelope { Body = json }; - var options = new EnvelopeOptions(); - - // Act - envelope.ExtractPayload(options); - - // Assert - envelope.BodyContent.Should().NotBeNull(); - envelope.BodyContent!.Name.Should().Be(testData.Name); - envelope.BodyContent.Value.Should().Be(testData.Value); - } - [Fact] public void ExtractPayload_WithMalformedJsonStructure_ThrowsJsonException() { diff --git a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayResponseEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayResponseEnvelopeTests.cs index f370ef60..2933aabc 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayResponseEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayResponseEnvelopeTests.cs @@ -36,7 +36,7 @@ public void PackPayload_WithValidData_SerializesBodyContent() options.JsonOptions ); deserializedData.Should().NotBeNull(); - deserializedData!.Message.Should().Be(responseData.Message); + deserializedData.Message.Should().Be(responseData.Message); deserializedData.Code.Should().Be(responseData.Code); } @@ -101,7 +101,7 @@ public void PackPayload_WithComplexObject_PreservesAllProperties() envelope.Body.Should().NotBeNull(); var deserializedData = JsonSerializer.Deserialize(envelope.Body); deserializedData.Should().NotBeNull(); - deserializedData!.Message.Should().Be(responseData.Message); + deserializedData.Message.Should().Be(responseData.Message); deserializedData.Code.Should().Be(responseData.Code); } @@ -110,7 +110,7 @@ public void BodyContent_HasJsonIgnoreAttribute() { // Arrange var property = typeof(ApiGatewayResponseEnvelope).GetProperty( - nameof(ApiGatewayResponseEnvelope.BodyContent) + nameof(ApiGatewayResponseEnvelope<>.BodyContent) ); // Act @@ -202,7 +202,7 @@ public void PackPayload_WithCustomConverter_UsesCustomSerialization() options.JsonOptions ); deserializedData.Should().NotBeNull(); - deserializedData!.Message.Should().Be(responseData.Message); + deserializedData.Message.Should().Be(responseData.Message); } private record ResponsePayload(string Message, int Code); diff --git a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayResultTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayResultTests.cs index f8cd0b3e..56aba558 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayResultTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayResultTests.cs @@ -50,7 +50,7 @@ public void PackPayload_SerializesBodyContent() result.Body.Should().NotBeNull(); var deserialized = JsonSerializer.Deserialize(result.Body); deserialized.Should().NotBeNull(); - deserialized!.Name.Should().Be(payload.Name); + deserialized.Name.Should().Be(payload.Name); deserialized.Value.Should().Be(payload.Value); } diff --git a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2ResponseEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2ResponseEnvelopeTests.cs index 90a7962c..6e9c99f5 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2ResponseEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2ResponseEnvelopeTests.cs @@ -36,7 +36,7 @@ public void PackPayload_WithValidData_SerializesBodyContent() options.JsonOptions ); deserializedData.Should().NotBeNull(); - deserializedData!.Message.Should().Be(responseData.Message); + deserializedData.Message.Should().Be(responseData.Message); deserializedData.Code.Should().Be(responseData.Code); } @@ -101,7 +101,7 @@ public void PackPayload_WithComplexObject_PreservesAllProperties() envelope.Body.Should().NotBeNull(); var deserializedData = JsonSerializer.Deserialize(envelope.Body); deserializedData.Should().NotBeNull(); - deserializedData!.Message.Should().Be(responseData.Message); + deserializedData.Message.Should().Be(responseData.Message); deserializedData.Code.Should().Be(responseData.Code); } @@ -110,7 +110,7 @@ public void BodyContent_HasJsonIgnoreAttribute() { // Arrange var property = typeof(ApiGatewayV2ResponseEnvelope).GetProperty( - nameof(ApiGatewayV2ResponseEnvelope.BodyContent) + nameof(ApiGatewayV2ResponseEnvelope<>.BodyContent) ); // Act @@ -205,7 +205,7 @@ public void PackPayload_WithCustomConverter_UsesCustomSerialization() options.JsonOptions ); deserializedData.Should().NotBeNull(); - deserializedData!.Message.Should().Be(responseData.Message); + deserializedData.Message.Should().Be(responseData.Message); } private record ResponsePayload(string Message, int Code); diff --git a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2ResultTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2ResultTests.cs index c5d1a51b..ab6d0eab 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2ResultTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2ResultTests.cs @@ -55,7 +55,7 @@ public void PackPayload_SerializesBodyContent() result.Body.Should().NotBeNull(); var deserialized = JsonSerializer.Deserialize(result.Body); deserialized.Should().NotBeNull(); - deserialized!.Name.Should().Be(payload.Name); + deserialized.Name.Should().Be(payload.Name); deserialized.Value.Should().Be(payload.Value); } diff --git a/tests/MinimalLambda.Envelopes.UnitTests/HttpResultExtensionsTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/HttpResultExtensionsTests.cs index 7ba06a2d..987af97a 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/HttpResultExtensionsTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/HttpResultExtensionsTests.cs @@ -356,5 +356,6 @@ public void InternalServerError_WithBodyContent_ReturnsStatus500WithJson() result.Body.Should().Contain(payload.Name); } + // ReSharper disable once NotAccessedPositionalProperty.Local private record TestPayload(string Name, int Value); } diff --git a/tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseResponseEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseResponseEnvelopeTests.cs index a2bfecca..5679ad5e 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseResponseEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseResponseEnvelopeTests.cs @@ -44,7 +44,7 @@ public void PackPayload_WithValidData_SerializesDataContent() options.JsonOptions ); deserializedData.Should().NotBeNull(); - deserializedData!.Name.Should().Be(payload.Name); + deserializedData.Name.Should().Be(payload.Name); deserializedData.Value.Should().Be(payload.Value); } diff --git a/tests/MinimalLambda.Testing.UnitTests/Tests/MinimalLambda.Testing.UnitTests/DiLambdaTests.cs b/tests/MinimalLambda.Testing.UnitTests/Tests/MinimalLambda.Testing.UnitTests/DiLambdaTests.cs index 35fc54cf..fe0bb663 100644 --- a/tests/MinimalLambda.Testing.UnitTests/Tests/MinimalLambda.Testing.UnitTests/DiLambdaTests.cs +++ b/tests/MinimalLambda.Testing.UnitTests/Tests/MinimalLambda.Testing.UnitTests/DiLambdaTests.cs @@ -116,6 +116,7 @@ internal async Task DiLambda_ShutdownThrowsException(ILifecycleService lifecycle initResult.InitStatus.Should().Be(InitStatus.InitCompleted); var act = async () => + // ReSharper disable once AccessToDisposedClosure await factory.TestServer.StopAsync(TestContext.Current.CancellationToken); (await act.Should().ThrowAsync()) diff --git a/tests/MinimalLambda.Testing.UnitTests/Tests/MinimalLambda.Testing.UnitTests/NoResponseLambdaTests.cs b/tests/MinimalLambda.Testing.UnitTests/Tests/MinimalLambda.Testing.UnitTests/NoResponseLambdaTests.cs index 57741c42..d10f164a 100644 --- a/tests/MinimalLambda.Testing.UnitTests/Tests/MinimalLambda.Testing.UnitTests/NoResponseLambdaTests.cs +++ b/tests/MinimalLambda.Testing.UnitTests/Tests/MinimalLambda.Testing.UnitTests/NoResponseLambdaTests.cs @@ -1,6 +1,8 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; +// ReSharper disable AccessToDisposedClosure + namespace MinimalLambda.Testing.UnitTests; public class NoResponseLambdaTests diff --git a/tests/MinimalLambda.Testing.UnitTests/Tests/MinimalLambda.Testing.UnitTests/SimpleLambdaTests.cs b/tests/MinimalLambda.Testing.UnitTests/Tests/MinimalLambda.Testing.UnitTests/SimpleLambdaTests.cs index 284253f2..96d3976d 100644 --- a/tests/MinimalLambda.Testing.UnitTests/Tests/MinimalLambda.Testing.UnitTests/SimpleLambdaTests.cs +++ b/tests/MinimalLambda.Testing.UnitTests/Tests/MinimalLambda.Testing.UnitTests/SimpleLambdaTests.cs @@ -152,6 +152,7 @@ public async Task SimpleLambda_ErrorsArePropagated() }); var act = async () => + // ReSharper disable once AccessToDisposedClosure await factory.TestServer.StartAsync(TestContext.Current.CancellationToken); await act.Should() @@ -173,7 +174,9 @@ public async Task SimpleLambda_WithPreCanceledToken_CancelsInvocation() using var cts = new CancellationTokenSource(); await cts.CancelAsync(); + // ReSharper disable AccessToDisposedClosure var act = () => factory.TestServer.InvokeAsync("Jonas", cts.Token); + // ReSharper restore AccessToDisposedClosure await act.Should().ThrowAsync(); } diff --git a/tests/MinimalLambda.UnitTests/Builder/Extensions/LambdaHttpClientServiceCollectionExtensionsTests.cs b/tests/MinimalLambda.UnitTests/Builder/Extensions/LambdaHttpClientServiceCollectionExtensionsTests.cs index 1a0e6276..a5249884 100644 --- a/tests/MinimalLambda.UnitTests/Builder/Extensions/LambdaHttpClientServiceCollectionExtensionsTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/Extensions/LambdaHttpClientServiceCollectionExtensionsTests.cs @@ -81,7 +81,7 @@ public void AddLambdaBootstrapHttpClient_WithValidFactory_ReturnsServiceCollecti var serviceCollection = new ServiceCollection(); // Act - var result = serviceCollection.AddLambdaBootstrapHttpClient((sp, key) => new HttpClient()); + var result = serviceCollection.AddLambdaBootstrapHttpClient((_, _) => new HttpClient()); // Assert result.Should().BeSameAs(serviceCollection); @@ -95,7 +95,7 @@ public void AddLambdaBootstrapHttpClient_WithValidFactory_RegistersKeyedSingleto var httpClient = new HttpClient(); // Act - serviceCollection.AddLambdaBootstrapHttpClient((sp, key) => httpClient); + serviceCollection.AddLambdaBootstrapHttpClient((_, _) => httpClient); var provider = serviceCollection.BuildServiceProvider(); // Assert @@ -188,7 +188,7 @@ public void TryAddLambdaBootstrapHttpClient_WithValidFactory_RegistersKeyedSingl var httpClient = new HttpClient(); // Act - serviceCollection.TryAddLambdaBootstrapHttpClient((sp, key) => httpClient); + serviceCollection.TryAddLambdaBootstrapHttpClient((_, _) => httpClient); var provider = serviceCollection.BuildServiceProvider(); // Assert @@ -207,8 +207,8 @@ public void TryAddLambdaBootstrapHttpClient_WithFactory_WhenAlreadyRegistered_Do var secondClient = new HttpClient(); // Act - serviceCollection.TryAddLambdaBootstrapHttpClient((sp, key) => firstClient); - serviceCollection.TryAddLambdaBootstrapHttpClient((sp, key) => secondClient); + serviceCollection.TryAddLambdaBootstrapHttpClient((_, _) => firstClient); + serviceCollection.TryAddLambdaBootstrapHttpClient((_, _) => secondClient); var provider = serviceCollection.BuildServiceProvider(); // Assert @@ -229,7 +229,7 @@ public void AddLambdaBootstrapHttpClient_EnablesMethodChaining() // Act var result = serviceCollection .AddLambdaBootstrapHttpClient(firstClient) - .AddLambdaBootstrapHttpClient((sp, key) => secondClient); + .AddLambdaBootstrapHttpClient((_, _) => secondClient); // Assert result.Should().BeSameAs(serviceCollection); diff --git a/tests/MinimalLambda.UnitTests/Builder/Extensions/ServiceCollectionExtensionsTests.cs b/tests/MinimalLambda.UnitTests/Builder/Extensions/ServiceCollectionExtensionsTests.cs index b2e130ef..e277a5ce 100644 --- a/tests/MinimalLambda.UnitTests/Builder/Extensions/ServiceCollectionExtensionsTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/Extensions/ServiceCollectionExtensionsTests.cs @@ -58,7 +58,7 @@ public void AddLambdaHostCoreServices_RegistersLambdaInvocationBuilderFactory() d.ServiceType == typeof(ILambdaInvocationBuilderFactory) ); descriptor.Should().NotBeNull(); - descriptor!.ImplementationType.Should().Be(); + descriptor.ImplementationType.Should().Be(); descriptor.Lifetime.Should().Be(ServiceLifetime.Singleton); } @@ -76,7 +76,7 @@ public void AddLambdaHostCoreServices_RegistersLambdaOnInitBuilderFactory() d.ServiceType == typeof(ILambdaOnInitBuilderFactory) ); descriptor.Should().NotBeNull(); - descriptor!.ImplementationType.Should().Be(); + descriptor.ImplementationType.Should().Be(); descriptor.Lifetime.Should().Be(ServiceLifetime.Singleton); } @@ -94,7 +94,7 @@ public void AddLambdaHostCoreServices_RegistersLambdaOnShutdownBuilderFactory() d.ServiceType == typeof(ILambdaOnShutdownBuilderFactory) ); descriptor.Should().NotBeNull(); - descriptor!.ImplementationType.Should().Be(); + descriptor.ImplementationType.Should().Be(); descriptor.Lifetime.Should().Be(ServiceLifetime.Singleton); } @@ -112,7 +112,7 @@ public void AddLambdaHostCoreServices_RegistersFeatureCollectionFactory() d.ServiceType == typeof(IFeatureCollectionFactory) ); descriptor.Should().NotBeNull(); - descriptor!.ImplementationType.Should().Be(); + descriptor.ImplementationType.Should().Be(); descriptor.Lifetime.Should().Be(ServiceLifetime.Singleton); } @@ -130,7 +130,7 @@ public void AddLambdaHostCoreServices_RegistersLambdaHandlerFactory() d.ServiceType == typeof(ILambdaHandlerFactory) ); descriptor.Should().NotBeNull(); - descriptor!.ImplementationType.Should().Be(); + descriptor.ImplementationType.Should().Be(); descriptor.Lifetime.Should().Be(ServiceLifetime.Singleton); } @@ -148,7 +148,7 @@ public void AddLambdaHostCoreServices_RegistersLambdaBootstrapOrchestrator() d.ServiceType == typeof(ILambdaBootstrapOrchestrator) ); descriptor.Should().NotBeNull(); - descriptor!.ImplementationType.Should().Be(); + descriptor.ImplementationType.Should().Be(); descriptor.Lifetime.Should().Be(ServiceLifetime.Singleton); } @@ -167,7 +167,7 @@ public void AddLambdaHostCoreServices_RegistersHostedService() && d.ImplementationType == typeof(LambdaHostedService) ); descriptor.Should().NotBeNull(); - descriptor!.Lifetime.Should().Be(ServiceLifetime.Singleton); + descriptor.Lifetime.Should().Be(ServiceLifetime.Singleton); } [Fact] @@ -184,7 +184,7 @@ public void AddLambdaHostCoreServices_RegistersHostOptionsPostConfiguration() d.ServiceType == typeof(IPostConfigureOptions) ); descriptor.Should().NotBeNull(); - descriptor!.ImplementationType.Should().Be(); + descriptor.ImplementationType.Should().Be(); descriptor.Lifetime.Should().Be(ServiceLifetime.Singleton); } @@ -251,7 +251,7 @@ public void TryAddLambdaHostDefaultServices_RegistersLambdaSerializer() d.ServiceType == typeof(ILambdaSerializer) ); descriptor.Should().NotBeNull(); - descriptor!.Lifetime.Should().Be(ServiceLifetime.Singleton); + descriptor.Lifetime.Should().Be(ServiceLifetime.Singleton); } [Fact] @@ -268,7 +268,7 @@ public void TryAddLambdaHostDefaultServices_RegistersLambdaCancellationFactory() d.ServiceType == typeof(ILambdaCancellationFactory) ); descriptor.Should().NotBeNull(); - descriptor!.ImplementationType.Should().Be(); + descriptor.ImplementationType.Should().Be(); descriptor.Lifetime.Should().Be(ServiceLifetime.Singleton); } @@ -342,7 +342,7 @@ public void AddLambdaInvocationContextAccessor_RegistersILambdaInvocationContext d.ServiceType == typeof(ILambdaInvocationContextAccessor) ); descriptor.Should().NotBeNull(); - descriptor!.ImplementationType.Should().Be(); + descriptor.ImplementationType.Should().Be(); descriptor.Lifetime.Should().Be(ServiceLifetime.Singleton); } diff --git a/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationTests.cs b/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationTests.cs index 9e32ad3a..f98d6c59 100644 --- a/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationTests.cs @@ -515,7 +515,7 @@ public void OnInit_WithValidHandler_AddsHandler() // Arrange var host = CreateHostWithServices(); var app = new LambdaApplication(host); - LambdaInitDelegate handler = async _ => true; + LambdaInitDelegate handler = _ => Task.FromResult(true); // Act app.OnInit(handler); @@ -530,7 +530,7 @@ public void OnInit_ReturnsBuilder() // Arrange var host = CreateHostWithServices(); var app = new LambdaApplication(host); - LambdaInitDelegate handler = async _ => true; + LambdaInitDelegate handler = _ => Task.FromResult(true); // Act var result = app.OnInit(handler); @@ -545,7 +545,7 @@ public void OnInit_EnablesMethodChaining() // Arrange var host = CreateHostWithServices(); var app = new LambdaApplication(host); - LambdaInitDelegate handler = async _ => true; + LambdaInitDelegate handler = _ => Task.FromResult(true); // Act var result = app.OnInit(handler).OnInit(handler); @@ -561,7 +561,7 @@ public async Task OnInit_Build_ReturnsCallable() // Arrange var host = CreateHostWithServices(); var app = new LambdaApplication(host); - LambdaInitDelegate handler = async _ => true; + LambdaInitDelegate handler = _ => Task.FromResult(true); app.OnInit(handler); // Act @@ -688,7 +688,7 @@ public void AllBuilders_CanBeChainedTogether() var host = CreateHostWithServices(); var app = new LambdaApplication(host); LambdaInvocationDelegate invocationHandler = async _ => await Task.CompletedTask; - LambdaInitDelegate initHandler = async _ => true; + LambdaInitDelegate initHandler = _ => Task.FromResult(true); LambdaShutdownDelegate shutdownHandler = async _ => await Task.CompletedTask; // Act diff --git a/tests/MinimalLambda.UnitTests/Builder/LambdaOnInitBuilderTests.cs b/tests/MinimalLambda.UnitTests/Builder/LambdaOnInitBuilderTests.cs index 7cbf71d8..9afaf3b5 100644 --- a/tests/MinimalLambda.UnitTests/Builder/LambdaOnInitBuilderTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/LambdaOnInitBuilderTests.cs @@ -206,7 +206,7 @@ ILambdaLifecycleContextFactory contextFactory [Theory] [AutoNSubstituteData] - internal async Task Build_WithoutHandlers_ReturnsNull( + internal void Build_WithoutHandlers_ReturnsNull( IServiceProvider serviceProvider, IServiceScopeFactory scopeFactory, IOptions options, diff --git a/tests/MinimalLambda.UnitTests/Core/Context/LambdaInvocationContextFactory.cs b/tests/MinimalLambda.UnitTests/Core/Context/LambdaInvocationContextFactory.cs index 0aac4edc..7a7ff907 100644 --- a/tests/MinimalLambda.UnitTests/Core/Context/LambdaInvocationContextFactory.cs +++ b/tests/MinimalLambda.UnitTests/Core/Context/LambdaInvocationContextFactory.cs @@ -127,6 +127,8 @@ LambdaInvocationContextFactory factory _ = factory.Create(lambdaContext, properties, CancellationToken.None); // Assert + + // ReSharper disable PossibleMultipleEnumeration featureCollectionFactory .Received(1) .Create( @@ -136,5 +138,6 @@ LambdaInvocationContextFactory factory && providers.Contains(responseFeatureProvider) ) ); + // ReSharper restore PossibleMultipleEnumeration } } diff --git a/tests/MinimalLambda.UnitTests/Core/Features/DefaultEventFeatureTests.cs b/tests/MinimalLambda.UnitTests/Core/Features/DefaultEventFeatureTests.cs index b20d2a86..a6165fc9 100644 --- a/tests/MinimalLambda.UnitTests/Core/Features/DefaultEventFeatureTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Features/DefaultEventFeatureTests.cs @@ -38,7 +38,7 @@ ILambdaInvocationContext context internal void Constructor_WithNullSerializer_ThrowsArgumentNullException() { // Act & Assert - var act = () => new DefaultEventFeature(null!); + var act = () => new DefaultEventFeature(); act.Should().ThrowExactly(); } diff --git a/tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionFactoryTests.cs b/tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionFactoryTests.cs index 254a7e38..ce7943f4 100644 --- a/tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionFactoryTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionFactoryTests.cs @@ -25,8 +25,9 @@ public void Create_ReturnsNewInstanceEachCall(IEnumerable feat var factory = new DefaultFeatureCollectionFactory([]); // Act - var collection1 = factory.Create(featureProviders); - var collection2 = factory.Create(featureProviders); + var enumerable = featureProviders as IFeatureProvider[] ?? featureProviders.ToArray(); + var collection1 = factory.Create(enumerable); + var collection2 = factory.Create(enumerable); // Assert collection1.Should().NotBeSameAs(collection2); diff --git a/tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionTests.cs b/tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionTests.cs index cf13b624..b1968bb4 100644 --- a/tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionTests.cs @@ -1,5 +1,7 @@ using System.Collections; +// ReSharper disable UnusedAutoPropertyAccessor.Local + namespace MinimalLambda.UnitTests.Core.Features; [TestSubject(typeof(DefaultFeatureCollection))] @@ -204,7 +206,7 @@ public void Get_ReturnsFeatureFromProviderWhenNotCached(IFeatureProvider provide var testFeature = new TestFeature { Value = "from-provider" }; provider - .TryCreate(typeof(TestFeature), out var feature) + .TryCreate(typeof(TestFeature), out _) .Returns(x => { x[1] = testFeature; @@ -227,7 +229,7 @@ public void Get_CachesFeatureFromProvider(IFeatureProvider provider) var testFeature = new TestFeature { Value = "from-provider" }; provider - .TryCreate(typeof(TestFeature), out var feature) + .TryCreate(typeof(TestFeature), out _) .Returns(x => { x[1] = testFeature; @@ -273,7 +275,7 @@ IFeatureProvider provider2 provider1.TryCreate(Arg.Any(), out _).Returns(false); provider2 - .TryCreate(typeof(TestFeature), out var feature) + .TryCreate(typeof(TestFeature), out _) .Returns(x => { x[1] = testFeature; @@ -301,7 +303,7 @@ IFeatureProvider provider2 var testFeature = new TestFeature { Value = "from-first-provider" }; provider1 - .TryCreate(typeof(TestFeature), out var feature) + .TryCreate(typeof(TestFeature), out _) .Returns(x => { x[1] = testFeature; @@ -363,7 +365,7 @@ public void GetEnumerator_ReturnsKeyValuePairCollection() // Act var items = new List>(); - var enumerator = collection.GetEnumerator(); + using var enumerator = collection.GetEnumerator(); while (enumerator.MoveNext()) items.Add(enumerator.Current); @@ -425,9 +427,10 @@ public void IEnumerable_GetEnumerator_WorksCorrectly() // Act var enumerator = ((IEnumerable)collection).GetEnumerator(); + using var _ = enumerator as IDisposable; var items = new List(); while (enumerator.MoveNext()) - items.Add(enumerator.Current); + items.Add(enumerator.Current!); // Assert items.Should().HaveCount(2); @@ -442,7 +445,7 @@ public void Enumeration_IncludesProviderCreatedFeaturesAfterAccess(IFeatureProvi var testFeature = new TestFeature { Value = "from-provider" }; provider - .TryCreate(typeof(TestFeature), out var feature) + .TryCreate(typeof(TestFeature), out _) .Returns(x => { x[1] = testFeature; diff --git a/tests/MinimalLambda.UnitTests/Core/Features/FeatureCollectionExtensionsTests.cs b/tests/MinimalLambda.UnitTests/Core/Features/FeatureCollectionExtensionsTests.cs index 74be92b1..7d4cd1d6 100644 --- a/tests/MinimalLambda.UnitTests/Core/Features/FeatureCollectionExtensionsTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Features/FeatureCollectionExtensionsTests.cs @@ -214,6 +214,7 @@ public void GetRequired_CallsGetOnCollection() private class TestFeature { + // ReSharper disable once UnusedAutoPropertyAccessor.Local public string? Value { get; set; } } diff --git a/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHandlerComposerTests.cs b/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHandlerComposerTests.cs index 5764e368..0a9fcf3d 100644 --- a/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHandlerComposerTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHandlerComposerTests.cs @@ -14,7 +14,7 @@ public async Task RequestHandler_PropagatesHandlerException() { // Arrange var expectedException = new InvalidOperationException("Test exception"); - LambdaInvocationDelegate handler = async context => + LambdaInvocationDelegate handler = async _ => { await Task.CompletedTask; throw expectedException; @@ -65,7 +65,7 @@ public Fixture() /// Sets up default mock behaviors. private void SetupDefaults() { - InvocationBuilder.Build().Returns(async context => { }); + InvocationBuilder.Build().Returns(_ => Task.CompletedTask); InvocationBuilder.Properties.Returns(new Dictionary()); LambdaInvocationBuilderFactory.CreateBuilder().Returns(InvocationBuilder); @@ -91,7 +91,7 @@ private void SetupDefaults() Arg.Any>(), Arg.Any() ) - .Returns(info => + .Returns(_ => { // Create a new mock context for each call LambdaInvocationContext.Features.Returns(mockFeatures); @@ -217,7 +217,7 @@ public void CreateHandler_InvokesConfigureHandlerBuilder_WhenProvided() { // Arrange var configureHandlerBuilderInvoked = false; - Action configureAction = builder => + Action configureAction = _ => { configureHandlerBuilderInvoked = true; }; @@ -279,7 +279,7 @@ public async Task RequestHandler_InvokesMiddlewarePipeline() { // Arrange var handlerInvoked = false; - LambdaInvocationDelegate handler = async context => + LambdaInvocationDelegate handler = async _ => { handlerInvoked = true; await Task.CompletedTask; diff --git a/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHostedServiceTests.cs b/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHostedServiceTests.cs index 9e4110b2..3242b24d 100644 --- a/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHostedServiceTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHostedServiceTests.cs @@ -123,7 +123,7 @@ ILambdaOnShutdownBuilderFactory onShutdownBuilderFactory { // Arrange var configureInvoked = false; - Action? configureAction = builder => + Action configureAction = _ => { configureInvoked = true; }; @@ -176,7 +176,7 @@ ILambdaOnShutdownBuilderFactory onShutdownBuilderFactory { // Arrange var configureInvoked = false; - Action? configureAction = builder => + Action configureAction = _ => { configureInvoked = true; }; @@ -305,6 +305,7 @@ LambdaHostedService service using var timeoutCts = new CancellationTokenSource(TimeSpan.FromMilliseconds(10)); // Act & Assert + // ReSharper disable once AccessToDisposedClosure var act = () => service.StopAsync(timeoutCts.Token); await act.Should() .ThrowExactlyAsync() @@ -336,7 +337,7 @@ LambdaHostedService service var shutdownHandlerInvoked = false; onShutdownBuilder .Build() - .Returns(async ct => + .Returns(async _ => { shutdownHandlerInvoked = true; await Task.CompletedTask; @@ -374,7 +375,7 @@ LambdaHostedService service onShutdownBuilder .Build() - .Returns(async ct => + .Returns(async _ => { await Task.CompletedTask; throw shutdownException; @@ -452,23 +453,7 @@ LambdaHostedService service [Theory] [AutoNSubstituteData] - internal async Task Dispose_Idempotent_WhenNotStarted(LambdaHostedService service) - { - // Act - var act = () => - { - service.Dispose(); - service.Dispose(); - service.Dispose(); - }; - - // Assert - act.Should().NotThrow(); - } - - [Theory] - [AutoNSubstituteData] - internal void Dispose_IsIdempotent(LambdaHostedService service) + internal void Dispose_Idempotent_WhenNotStarted(LambdaHostedService service) { // Act var act = () => From ee559009554d43a77b10df147dd53b7f520f85c8 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Mon, 22 Dec 2025 21:38:47 -0500 Subject: [PATCH 2/4] refactor(source-generators): replace `GeneratedCode` attribute with fully qualified name - Updated `[GeneratedCode]` to use fully qualified `global::System.CodeDom.Compiler.GeneratedCode`. - Removed redundant `using System.CodeDom.Compiler` directives from snapshots. --- .../LambdaHostOutputGenerator.cs | 6 +++--- .../GeneratorTestHelpers.cs | 17 +++++++++++------ ..._AllInputSources#LambdaHandler.g.verified.cs | 5 ++--- ...kString_TypeCast#LambdaHandler.g.verified.cs | 5 ++--- ...oReturn_TypeCast#LambdaHandler.g.verified.cs | 5 ++--- ...ypeInfo_TypeCast#LambdaHandler.g.verified.cs | 5 ++--- ...turnExplicitType#LambdaHandler.g.verified.cs | 5 ++--- ...ImplicitNullable#LambdaHandler.g.verified.cs | 5 ++--- ...bda_ReturnString#LambdaHandler.g.verified.cs | 5 ++--- ...ReturnTaskString#LambdaHandler.g.verified.cs | 5 ++--- ...rnsTask_TypeCast#LambdaHandler.g.verified.cs | 5 ++--- ...a_StreamResponse#LambdaHandler.g.verified.cs | 5 ++--- ...kLambda_TypeCast#LambdaHandler.g.verified.cs | 5 ++--- ...romKeyedServices#LambdaHandler.g.verified.cs | 5 ++--- ...ancellationToken#LambdaHandler.g.verified.cs | 5 ++--- ...AndLambdaContext#LambdaHandler.g.verified.cs | 5 ++--- ...nvocationContext#LambdaHandler.g.verified.cs | 5 ++--- ...turnExplicitTask#LambdaHandler.g.verified.cs | 5 ++--- ...ut_ComplexOutput#LambdaHandler.g.verified.cs | 5 ++--- ...bda_ExplicitVoid#LambdaHandler.g.verified.cs | 5 ++--- ...da_InputDi_Async#LambdaHandler.g.verified.cs | 5 ++--- ...Di_AsyncAndAwait#LambdaHandler.g.verified.cs | 5 ++--- ...fferentNamespace#LambdaHandler.g.verified.cs | 5 ++--- ...mbda_InputStream#LambdaHandler.g.verified.cs | 5 ++--- ...rSerializer_NoOp#LambdaHandler.g.verified.cs | 3 +-- ...ainOverload_NoOp#LambdaHandler.g.verified.cs | 3 +-- ...NoInput_NoOutput#LambdaHandler.g.verified.cs | 5 ++--- ...urnGenericObject#LambdaHandler.g.verified.cs | 5 ++--- ...ullablePrimitive#LambdaHandler.g.verified.cs | 5 ++--- ...put_ReturnString#LambdaHandler.g.verified.cs | 5 ++--- ...ExplicitNullable#LambdaHandler.g.verified.cs | 5 ++--- ...ImplicitNullable#LambdaHandler.g.verified.cs | 5 ++--- ...turnExplicitTask#LambdaHandler.g.verified.cs | 5 ++--- ...turnExplicitType#LambdaHandler.g.verified.cs | 5 ++--- ...oatingPointTypes#LambdaHandler.g.verified.cs | 5 ++--- ...e_IntAndLongKeys#LambdaHandler.g.verified.cs | 5 ++--- ...rvice_OtherTypes#LambdaHandler.g.verified.cs | 5 ++--- ...mallIntegerTypes#LambdaHandler.g.verified.cs | 5 ++--- ...tringAndEnumKeys#LambdaHandler.g.verified.cs | 5 ++--- ...gnedIntegerTypes#LambdaHandler.g.verified.cs | 5 ++--- ...andler_AsyncVoid#LambdaHandler.g.verified.cs | 5 ++--- ...ReturnTaskString#LambdaHandler.g.verified.cs | 5 ++--- ...tDiKeyedServices#LambdaHandler.g.verified.cs | 5 ++--- ...ockBody_TypeCast#LambdaHandler.g.verified.cs | 5 ++--- ..._TypeCast_Static#LambdaHandler.g.verified.cs | 5 ++--- ...NoInput_NoOutput#LambdaHandler.g.verified.cs | 5 ++--- ...ndler_ReturnTask#LambdaHandler.g.verified.cs | 5 ++--- ...ReturnTaskString#LambdaHandler.g.verified.cs | 5 ++--- ...ExtraParentheses#LambdaHandler.g.verified.cs | 5 ++--- ...t_BaseMethodCall#LambdaHandler.g.verified.cs | 3 +-- ...tReturnTypeAsync#LambdaHandler.g.verified.cs | 5 ++--- ...ndler_AsyncAndDi#LambdaHandler.g.verified.cs | 5 ++--- ...rnUnexpectedType#LambdaHandler.g.verified.cs | 5 ++--- ...thodHandler_NoDi#LambdaHandler.g.verified.cs | 5 ++--- ...it_MultipleCalls#LambdaHandler.g.verified.cs | 5 ++--- ...NoInput_NoOutput#LambdaHandler.g.verified.cs | 5 ++--- ..._ReturnAsyncBool#LambdaHandler.g.verified.cs | 5 ++--- ...Input_ReturnBool#LambdaHandler.g.verified.cs | 5 ++--- ...nNotExpectedType#LambdaHandler.g.verified.cs | 5 ++--- ...xpectedTypeAsync#LambdaHandler.g.verified.cs | 5 ++--- ...ExpectedTypeTask#LambdaHandler.g.verified.cs | 5 ++--- ...t_ReturnTaskBool#LambdaHandler.g.verified.cs | 5 ++--- ...dReferenceInputs#LambdaHandler.g.verified.cs | 5 ++--- ...sibleKindOfInput#LambdaHandler.g.verified.cs | 5 ++--- ...t_PrimitiveInput#LambdaHandler.g.verified.cs | 5 ++--- ...n_BaseMethodCall#LambdaHandler.g.verified.cs | 3 +-- ...urnsImplicitVoid#LambdaHandler.g.verified.cs | 5 ++--- ...wn_MultipleCalls#LambdaHandler.g.verified.cs | 5 ++--- ...Shutdown_NoInput#LambdaHandler.g.verified.cs | 5 ++--- ...rnUnexpectedType#LambdaHandler.g.verified.cs | 5 ++--- ...xpectedTypeAsync#LambdaHandler.g.verified.cs | 5 ++--- ...expectedTypeTask#LambdaHandler.g.verified.cs | 5 ++--- ...dReferenceInputs#LambdaHandler.g.verified.cs | 5 ++--- ...sibleKindOfInput#LambdaHandler.g.verified.cs | 5 ++--- ...n_PrimitiveInput#LambdaHandler.g.verified.cs | 5 ++--- ...stractMiddleware#LambdaHandler.g.verified.cs | 5 ++--- ...ealWorldScenario#LambdaHandler.g.verified.cs | 5 ++--- ...structorWithArgs#LambdaHandler.g.verified.cs | 5 ++--- ...gumentsAttribute#LambdaHandler.g.verified.cs | 5 ++--- ...ervicesAttribute#LambdaHandler.g.verified.cs | 5 ++--- ...ervicesAttribute#LambdaHandler.g.verified.cs | 5 ++--- ...IAsyncDisposable#LambdaHandler.g.verified.cs | 5 ++--- ...lass_IDisposable#LambdaHandler.g.verified.cs | 5 ++--- ...ParameterSources#LambdaHandler.g.verified.cs | 5 ++--- ...ewareConstructor#LambdaHandler.g.verified.cs | 5 ++--- ...ullableParameter#LambdaHandler.g.verified.cs | 5 ++--- ...WithDefaultValue#LambdaHandler.g.verified.cs | 5 ++--- ...wareClass_Simple#LambdaHandler.g.verified.cs | 5 ++--- ...ss_WithArgsArray#LambdaHandler.g.verified.cs | 5 ++--- .../Features/DefaultFeatureCollectionTests.cs | 8 ++++---- 90 files changed, 188 insertions(+), 270 deletions(-) diff --git a/src/MinimalLambda.SourceGenerators/OutputGenerators/LambdaHostOutputGenerator.cs b/src/MinimalLambda.SourceGenerators/OutputGenerators/LambdaHostOutputGenerator.cs index aff0c000..a9430915 100644 --- a/src/MinimalLambda.SourceGenerators/OutputGenerators/LambdaHostOutputGenerator.cs +++ b/src/MinimalLambda.SourceGenerators/OutputGenerators/LambdaHostOutputGenerator.cs @@ -15,10 +15,11 @@ internal static string GeneratedCodeAttribute if (field is null) { var assembly = Assembly.GetExecutingAssembly(); - var generatorName = assembly.GetName().FullName; + var generatorName = assembly.GetName().Name; var generatorVersion = assembly.GetName().Version.ToString(); - field = $"[GeneratedCode(\"{generatorName}\", \"{generatorVersion}\")]"; + field = + $"[global::System.CodeDom.Compiler.GeneratedCode(\"{generatorName}\", \"{generatorVersion}\")]"; } return field; @@ -45,7 +46,6 @@ internal static void Generate(SourceProductionContext context, CompilationInfo c namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs index 384273e5..bd9c6c68 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs @@ -61,11 +61,16 @@ internal static Task Verify(string source, int expectedTrees = 1) .DisableDiff() .ScrubLinesWithReplace(line => { - // replace [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] - if (line.Contains("GeneratedCode", StringComparison.Ordinal)) - return RegexHelper - .GeneratedCodeAttributeRegex() - .Replace(line, """[GeneratedCode("REPLACED", "REPLACED")]"""); + // replace + // [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", + // "0.0.0")] + if ( + line.Contains( + "global::System.CodeDom.Compiler.GeneratedCode", + StringComparison.Ordinal + ) + ) + return RegexHelper.GeneratedCodeAttributeRegex().Replace(line, "REPLACED"); // replace [InterceptsLocation(1, "")] if (line.Contains("InterceptsLocation", StringComparison.Ordinal)) @@ -135,7 +140,7 @@ .. Net90.References.All.ToList(), internal static partial class RegexHelper { - [GeneratedRegex("""\[GeneratedCode\("([^"]+)",\s*"([^"]+)"\)\]""", RegexOptions.None, "en-US")] + [GeneratedRegex("""(\d+\.\d+\.\d+\.\d+)""", RegexOptions.None, "en-US")] internal static partial Regex GeneratedCodeAttributeRegex(); [GeneratedRegex( diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs index f1d60061..79505b21 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs index d4bb3919..8082a5d4 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs index de597596..3d92da48 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs index f7661219..35ffe2a2 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs index 8bba7416..d0c4a47a 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs index 0683f553..d8373096 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs index 1d3032cf..345ce2b8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs index d4bb3919..8082a5d4 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs index d7e4afc6..bdb69765 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs index 21a65cd0..9d69a184 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs index db04245c..9f2d746a 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs index bc7019dc..4b084524 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs index f1e15166..a1dceb41 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs index 0d702ffd..7e4a171d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaInvocationContext#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaInvocationContext#LambdaHandler.g.verified.cs index 3e603b9a..e1cbf526 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaInvocationContext#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaInvocationContext#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs index d7e4afc6..bdb69765 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs index 46ccb91f..37960d92 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs index f149a7e6..5e13b4a7 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs index a3d3de41..241f6d2a 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs index a3d3de41..241f6d2a 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs index fd35bc12..ce029764 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs index 2c24753c..e2bb3a78 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_DeserializerSerializer_NoOp#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_DeserializerSerializer_NoOp#LambdaHandler.g.verified.cs index b500911d..aacf46ab 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_DeserializerSerializer_NoOp#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_DeserializerSerializer_NoOp#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_NoOp#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_NoOp#LambdaHandler.g.verified.cs index b500911d..aacf46ab 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_NoOp#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_NoOp#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs index f149a7e6..5e13b4a7 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs index 6d9c431d..e7a46fbd 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs index bd9a3ca6..76f3e0a1 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs index 51cbf87c..f48d3571 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs index 6d421047..e8a71a8d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs index 810865f6..e7472deb 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs index d7e4afc6..bdb69765 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs index fb24d4df..bb7d973e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs index 26ec57e2..f906373c 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs index 54d1025f..44d8b19d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs index cba71f53..d212a087 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs index 04098c60..21d6c492 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs index 72aa562e..18a0af9b 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs index ac6f7dac..f9fa1e28 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs index f149a7e6..5e13b4a7 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs index d4bb3919..8082a5d4 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs index e1f70720..e0d822a8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs index 6c93c34e..e1fdb069 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs index 6c93c34e..e1fdb069 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs index f149a7e6..5e13b4a7 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs index d7e4afc6..bdb69765 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs index d4bb3919..8082a5d4 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs index 6c93c34e..e1fdb069 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_BaseMethodCall#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_BaseMethodCall#LambdaHandler.g.verified.cs index b500911d..aacf46ab 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_BaseMethodCall#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_BaseMethodCall#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs index 3fc7bd7d..6fd56974 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnInitBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs index eb56ceeb..a69230bb 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnInitBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs index f8d3d3e2..6d1e010a 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnInitBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs index 3fc7bd7d..6fd56974 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnInitBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs index f91188a8..a32ea31c 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnInitBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs index 7a4f10c8..83287fe8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnInitBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs index 3fc7bd7d..6fd56974 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnInitBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs index c02b4969..be631e6d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnInitBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs index 89b06d55..7679f162 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnInitBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs index 5fc3b9fc..e8415e80 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnInitBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs index 5fc3b9fc..e8415e80 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnInitBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs index 3fc7bd7d..6fd56974 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnInitBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs index ec4c51b0..96e4ef39 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnInitBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs index 225a31b7..dae86938 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnInitBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs index b164523f..5facbd97 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnInitBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BaseMethodCall#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BaseMethodCall#LambdaHandler.g.verified.cs index b500911d..aacf46ab 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BaseMethodCall#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BaseMethodCall#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs index d0984bc6..f38dc0c7 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnShutdownBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs index 0ca52890..1498df42 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnShutdownBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs index 157cc7d0..a6fc02e7 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnShutdownBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs index a47b6131..dfaf4dbe 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnShutdownBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs index 7cb6b933..3d04c978 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnShutdownBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs index 7cb6b933..3d04c978 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnShutdownBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs index 73991f53..2221e934 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnShutdownBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs index 96f9ef27..eb933b99 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnShutdownBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs index c49919f6..2ab54a3a 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class GeneratedLambdaOnShutdownBuilderExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_AbstractMiddleware#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_AbstractMiddleware#LambdaHandler.g.verified.cs index 3dc29905..9fc2dc04 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_AbstractMiddleware#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_AbstractMiddleware#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class UseMiddlewareExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_ComplexRealWorldScenario#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_ComplexRealWorldScenario#LambdaHandler.g.verified.cs index d5a6e748..28145279 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_ComplexRealWorldScenario#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_ComplexRealWorldScenario#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class UseMiddlewareExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_ConstructorWithArgs#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_ConstructorWithArgs#LambdaHandler.g.verified.cs index 0c5edc76..2f0fd7c9 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_ConstructorWithArgs#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_ConstructorWithArgs#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class UseMiddlewareExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_FromArgumentsAttribute#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_FromArgumentsAttribute#LambdaHandler.g.verified.cs index 42a9fa92..7753f04a 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_FromArgumentsAttribute#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_FromArgumentsAttribute#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class UseMiddlewareExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_FromKeyedServicesAttribute#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_FromKeyedServicesAttribute#LambdaHandler.g.verified.cs index abbf30d4..4c232acb 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_FromKeyedServicesAttribute#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_FromKeyedServicesAttribute#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class UseMiddlewareExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_FromServicesAttribute#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_FromServicesAttribute#LambdaHandler.g.verified.cs index 29e8bc51..dd30689a 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_FromServicesAttribute#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_FromServicesAttribute#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class UseMiddlewareExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_IAsyncDisposable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_IAsyncDisposable#LambdaHandler.g.verified.cs index 9b1c8f89..31f82828 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_IAsyncDisposable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_IAsyncDisposable#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class UseMiddlewareExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_IDisposable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_IDisposable#LambdaHandler.g.verified.cs index 778cf915..d5208f9d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_IDisposable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_IDisposable#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class UseMiddlewareExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_MixedParameterSources#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_MixedParameterSources#LambdaHandler.g.verified.cs index 21728427..aca3e663 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_MixedParameterSources#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_MixedParameterSources#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class UseMiddlewareExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_MultipleConstructorsAndOneWithMiddlewareConstructor#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_MultipleConstructorsAndOneWithMiddlewareConstructor#LambdaHandler.g.verified.cs index 96375840..5e76e9ab 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_MultipleConstructorsAndOneWithMiddlewareConstructor#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_MultipleConstructorsAndOneWithMiddlewareConstructor#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class UseMiddlewareExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_NullableParameter#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_NullableParameter#LambdaHandler.g.verified.cs index 6ae4fc72..0d9446e3 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_NullableParameter#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_NullableParameter#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class UseMiddlewareExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_OptionalParameterWithDefaultValue#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_OptionalParameterWithDefaultValue#LambdaHandler.g.verified.cs index 416d46de..3c086068 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_OptionalParameterWithDefaultValue#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_OptionalParameterWithDefaultValue#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class UseMiddlewareExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_Simple#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_Simple#LambdaHandler.g.verified.cs index 96375840..5e76e9ab 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_Simple#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_Simple#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class UseMiddlewareExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_WithArgsArray#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_WithArgsArray#LambdaHandler.g.verified.cs index 01183777..23db5e79 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_WithArgsArray#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/UseMiddlewareTVerifyTests.Test_MiddlewareClass_WithArgsArray#LambdaHandler.g.verified.cs @@ -16,7 +16,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -29,7 +29,6 @@ public InterceptsLocationAttribute(int version, string data) namespace MinimalLambda.Generated { using System; - using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; @@ -37,7 +36,7 @@ namespace MinimalLambda.Generated using MinimalLambda; using MinimalLambda.Builder; - [GeneratedCode("REPLACED", "REPLACED")] + [global::System.CodeDom.Compiler.GeneratedCode("MinimalLambda.SourceGenerators", "REPLACED")] file static class UseMiddlewareExtensions { [InterceptsLocation(1, "REPLACED")] diff --git a/tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionTests.cs b/tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionTests.cs index b1968bb4..f0d76465 100644 --- a/tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionTests.cs @@ -1,6 +1,6 @@ using System.Collections; -// ReSharper disable UnusedAutoPropertyAccessor.Local +// ReSharper disable UnusedAutoPropertyAccessor.Local UnusedVariable namespace MinimalLambda.UnitTests.Core.Features; @@ -229,7 +229,7 @@ public void Get_CachesFeatureFromProvider(IFeatureProvider provider) var testFeature = new TestFeature { Value = "from-provider" }; provider - .TryCreate(typeof(TestFeature), out _) + .TryCreate(typeof(TestFeature), out var feature) .Returns(x => { x[1] = testFeature; @@ -275,7 +275,7 @@ IFeatureProvider provider2 provider1.TryCreate(Arg.Any(), out _).Returns(false); provider2 - .TryCreate(typeof(TestFeature), out _) + .TryCreate(typeof(TestFeature), out var feature) .Returns(x => { x[1] = testFeature; @@ -303,7 +303,7 @@ IFeatureProvider provider2 var testFeature = new TestFeature { Value = "from-first-provider" }; provider1 - .TryCreate(typeof(TestFeature), out _) + .TryCreate(typeof(TestFeature), out var feature) .Returns(x => { x[1] = testFeature; From d3e3ed27fca3453e8c9e5f5c492a80b6ffbac733 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Mon, 22 Dec 2025 21:51:47 -0500 Subject: [PATCH 3/4] feat(tests): add multi-targeting support for .NET 8.0, 9.0, and 10.0 in unit tests - Updated `GeneratorTestHelpers` with conditional references based on target framework. - Added `[RequiresAssemblyFiles]` attribute for reflection warnings on `GenerateFromSource`. - Modified test project to target `net8.0`, `net9.0`, and `net10.0`. - Integrated `Basic.Reference.Assemblies` for .NET 8.0 and 10.0. - Updated `Directory.Build.props` for AOT compatibility in non-test projects. - Removed unused references and project dependencies. --- Directory.Build.props | 2 +- Directory.Packages.props | 2 ++ .../GeneratorTestHelpers.cs | 10 ++++++++-- .../MinimalLambda.SourceGenerators.UnitTests.csproj | 9 +++------ 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 8bc5ba5a..b89c23a5 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -23,7 +23,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + true true true diff --git a/Directory.Packages.props b/Directory.Packages.props index e2266c3a..8ef37a54 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -15,6 +15,8 @@ + + diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs index bd9c6c68..da67c24e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs @@ -1,5 +1,5 @@ +using System.Diagnostics.CodeAnalysis; using System.Text.RegularExpressions; -using Amazon.Lambda.APIGatewayEvents; using Amazon.Lambda.Core; using Amazon.Lambda.RuntimeSupport; using Amazon.Lambda.Serialization.SystemTextJson; @@ -80,6 +80,7 @@ internal static Task Verify(string source, int expectedTrees = 1) }); } + [RequiresAssemblyFiles("Calls System.Reflection.Assembly.Location")] internal static (GeneratorDriver driver, Compilation compilation) GenerateFromSource( string source, Dictionary? diagnosticsToSuppress = null, @@ -99,7 +100,13 @@ internal static (GeneratorDriver driver, Compilation compilation) GenerateFromSo List references = [ +#if NET10_0_OR_GREATER + .. Net100.References.All.ToList(), +#elif NET9_0 .. Net90.References.All.ToList(), +#else + .. Net80.References.All.ToList(), +#endif MetadataReference.CreateFromFile(typeof(LambdaApplication).Assembly.Location), MetadataReference.CreateFromFile(typeof(FromKeyedServicesAttribute).Assembly.Location), MetadataReference.CreateFromFile(typeof(ILambdaContext).Assembly.Location), @@ -109,7 +116,6 @@ .. Net90.References.All.ToList(), MetadataReference.CreateFromFile(typeof(LambdaBootstrapBuilder).Assembly.Location), MetadataReference.CreateFromFile(typeof(IOptions<>).Assembly.Location), MetadataReference.CreateFromFile(typeof(ILambdaInvocationContext).Assembly.Location), - MetadataReference.CreateFromFile(typeof(APIGatewayProxyResponse).Assembly.Location), ]; var compilationOptions = new CSharpCompilationOptions( diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/MinimalLambda.SourceGenerators.UnitTests.csproj b/tests/MinimalLambda.SourceGenerators.UnitTests/MinimalLambda.SourceGenerators.UnitTests.csproj index 5010cb6d..56bd27fd 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/MinimalLambda.SourceGenerators.UnitTests.csproj +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/MinimalLambda.SourceGenerators.UnitTests.csproj @@ -1,6 +1,6 @@  - net9.0 + net8.0;net9.0;net10.0 latest enable enable @@ -14,6 +14,8 @@ + + @@ -34,15 +36,10 @@ - - - - - From ba722f2bd41d4fc8363eb854478921f27bc5d7d9 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Mon, 22 Dec 2025 21:55:16 -0500 Subject: [PATCH 4/4] refactor(source-generators): replace string interpolation with raw string literals - Updated `LambdaHostOutputGenerator` to use raw string literals for `GeneratedCode` attribute. - Simplified string formatting and improved readability. --- .../OutputGenerators/LambdaHostOutputGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MinimalLambda.SourceGenerators/OutputGenerators/LambdaHostOutputGenerator.cs b/src/MinimalLambda.SourceGenerators/OutputGenerators/LambdaHostOutputGenerator.cs index a9430915..dc182be3 100644 --- a/src/MinimalLambda.SourceGenerators/OutputGenerators/LambdaHostOutputGenerator.cs +++ b/src/MinimalLambda.SourceGenerators/OutputGenerators/LambdaHostOutputGenerator.cs @@ -19,7 +19,7 @@ internal static string GeneratedCodeAttribute var generatorVersion = assembly.GetName().Version.ToString(); field = - $"[global::System.CodeDom.Compiler.GeneratedCode(\"{generatorName}\", \"{generatorVersion}\")]"; + $"""[global::System.CodeDom.Compiler.GeneratedCode("{generatorName}", "{generatorVersion}")]"""; } return field;