@@ -31,9 +31,9 @@ private static bool Stores<TSource, TSymbol, TNode>(Target<TSource, TSymbol, TNo
3131 where TSymbol : ISymbol
3232 where TNode : SyntaxNode
3333 {
34- if ( target . TargetNode is { } )
34+ if ( target . Declaration is { } )
3535 {
36- using var walker = UsagesWalker . Borrow ( target . Symbol , target . TargetNode , recursion . SemanticModel , recursion . CancellationToken ) ;
36+ using var walker = UsagesWalker . Borrow ( target . Symbol , target . Declaration , recursion . SemanticModel , recursion . CancellationToken ) ;
3737 foreach ( var usage in walker . Usages )
3838 {
3939 if ( Stores ( usage , recursion , out container ) )
@@ -78,7 +78,7 @@ when recursion.Target(argument) is { } target:
7878 return StoresOrAssigns ( tupleExpression , out container ) ;
7979 case { Parent : ArgumentSyntax { Parent : ArgumentListSyntax { Parent : InvocationExpressionSyntax invocation } } argument }
8080 when recursion . Target ( argument ) is { Symbol : { } parameter } target :
81- if ( target . TargetNode is null &&
81+ if ( target . Declaration is null &&
8282 parameter . ContainingType . AllInterfaces . TryFirst ( x => x == KnownSymbol . IEnumerable , out _ ) &&
8383 invocation . Expression is MemberAccessExpressionSyntax memberAccess )
8484 {
@@ -154,9 +154,9 @@ private static bool AccessibleInReturnValue(Target<ArgumentSyntax, IParameterSym
154154 return false ;
155155 }
156156
157- if ( target . TargetNode is { } )
157+ if ( target . Declaration is { } )
158158 {
159- using var walker = UsagesWalker . Borrow ( target . Symbol , target . TargetNode , recursion . SemanticModel , recursion . CancellationToken ) ;
159+ using var walker = UsagesWalker . Borrow ( target . Symbol , target . Declaration , recursion . SemanticModel , recursion . CancellationToken ) ;
160160 foreach ( var usage in walker . Usages )
161161 {
162162 if ( usage . Parent is ArgumentSyntax containingArgument &&
@@ -178,9 +178,9 @@ private static bool AccessibleInReturnValue(Target<ArgumentSyntax, IParameterSym
178178 return true ;
179179 }
180180
181- if ( target . TargetNode is { } )
181+ if ( target . Declaration is { } )
182182 {
183- using var walker = UsagesWalker . Borrow ( target . Symbol , target . TargetNode , recursion . SemanticModel , recursion . CancellationToken ) ;
183+ using var walker = UsagesWalker . Borrow ( target . Symbol , target . Declaration , recursion . SemanticModel , recursion . CancellationToken ) ;
184184 foreach ( var usage in walker . Usages )
185185 {
186186 if ( Stores ( usage , recursion , out var container ) &&
0 commit comments