|
2 | 2 | // The .NET Foundation licenses this file to you under the MIT license.
|
3 | 3 | // See the LICENSE file in the project root for more information.
|
4 | 4 |
|
5 |
| -using System.Linq; |
6 |
| -using Microsoft.CodeAnalysis; |
7 |
| -using Microsoft.CodeAnalysis.CSharp; |
8 |
| -using Microsoft.CodeAnalysis.CSharp.Syntax; |
9 | 5 | using System.Collections.Generic;
|
10 | 6 | using System.Collections.Immutable;
|
| 7 | +using System.Linq; |
| 8 | +using System.Text; |
11 | 9 | using CommunityToolkit.Mvvm.SourceGenerators.ComponentModel.Models;
|
12 | 10 | using CommunityToolkit.Mvvm.SourceGenerators.Diagnostics;
|
13 | 11 | using CommunityToolkit.Mvvm.SourceGenerators.Extensions;
|
14 | 12 | using CommunityToolkit.Mvvm.SourceGenerators.Models;
|
15 |
| -using static CommunityToolkit.Mvvm.SourceGenerators.Diagnostics.DiagnosticDescriptors; |
| 13 | +using Microsoft.CodeAnalysis; |
| 14 | +using Microsoft.CodeAnalysis.CSharp; |
| 15 | +using Microsoft.CodeAnalysis.CSharp.Syntax; |
16 | 16 | using Microsoft.CodeAnalysis.Text;
|
17 |
| -using System.Text; |
| 17 | +using static CommunityToolkit.Mvvm.SourceGenerators.Diagnostics.DiagnosticDescriptors; |
18 | 18 |
|
19 | 19 | namespace CommunityToolkit.Mvvm.SourceGenerators;
|
20 | 20 |
|
@@ -126,7 +126,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
|
126 | 126 | .WithComparer(EqualityComparer<string>.Default.ForImmutableArray());
|
127 | 127 |
|
128 | 128 | // Generate the cached property changed names
|
129 |
| - context.RegisterSourceOutput(propertyChangingNames, static (context, item) => |
| 129 | + context.RegisterSourceOutput(propertyChangedNames, static (context, item) => |
130 | 130 | {
|
131 | 131 | CompilationUnitSyntax? compilationUnit = Execute.GetKnownPropertyChangedArgsSyntax(item);
|
132 | 132 |
|
|
0 commit comments