[release/6.0-rc1] Migrate LoggerMessageGenerator to IIncrementalGenerator (#58271)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sat, 28 Aug 2021 00:30:23 +0000 (17:30 -0700)
committerGitHub <noreply@github.com>
Sat, 28 Aug 2021 00:30:23 +0000 (17:30 -0700)
commit7bfbc967ebc846e353f8f65a79f32129d7a9430d
tree9e5505bafa870372cb9d31a024d69884f4fea425
parent72f18b5a0b1ca0054a90f4ba878cd3236862b831
[release/6.0-rc1] Migrate LoggerMessageGenerator to IIncrementalGenerator (#58271)

* Migrate LoggerMessageGenerator to IIncrementalGenerator

This reduces the time spent in the background in VS running the source generator, since we only need to respond to methods that have the LoggerMessageAttribute on them.

Contributes to #56702

* PR feedback

* PR feedback

Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
src/libraries/Common/tests/SourceGenerators/RoslynTestUtils.cs
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/LoggerMessageGenerator.Parser.cs
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/LoggerMessageGenerator.cs
src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorParserTests.cs