@@ -64,7 +64,7 @@ public override async Task RegisterCodeFixesAsync(CodeFixContext context)
64
64
context . RegisterCodeFix (
65
65
CodeAction . Create (
66
66
title : "Inherit from ObservableObject" ,
67
- createChangedDocument : token => UpdateReference ( context . Document , root , classDeclaration , attributeTypeName , token ) ,
67
+ createChangedDocument : token => UpdateReference ( context . Document , root , classDeclaration , attributeTypeName ) ,
68
68
equivalenceKey : "Inherit from ObservableObject" ) ,
69
69
diagnostic ) ;
70
70
@@ -80,9 +80,8 @@ public override async Task RegisterCodeFixesAsync(CodeFixContext context)
80
80
/// <param name="root">The original tree root belonging to the current document.</param>
81
81
/// <param name="classDeclaration">The <see cref="ClassDeclarationSyntax"/> to update.</param>
82
82
/// <param name="attributeTypeName">The name of the attribute that should be removed.</param>
83
- /// <param name="cancellationToken">The cancellation token for the operation.</param>
84
83
/// <returns>An updated document with the applied code fix, and <paramref name="classDeclaration"/> inheriting from <c>ObservableObject</c>.</returns>
85
- private static Task < Document > UpdateReference ( Document document , SyntaxNode root , ClassDeclarationSyntax classDeclaration , string attributeTypeName , CancellationToken cancellationToken )
84
+ private static Task < Document > UpdateReference ( Document document , SyntaxNode root , ClassDeclarationSyntax classDeclaration , string attributeTypeName )
86
85
{
87
86
// Insert ObservableObject always in first position in the base list. The type might have
88
87
// some interfaces in the base list, so we just copy them back after ObservableObject.
0 commit comments