@@ -37,7 +37,7 @@ context.Node is MethodDeclarationSyntax methodDeclaration &&
3737 method . Parameters . TryElementAt ( 0 , out var element ) &&
3838 element . Type . IsAssignableTo ( KnownSymbols . DependencyObject , context . SemanticModel . Compilation ) )
3939 {
40- if ( GetAttached . Match ( methodDeclaration , context . SemanticModel , context . CancellationToken ) is { GetValue : { Invocation : { } getValue } , Backing : { } backingGet } )
40+ if ( GetAttached . Match ( methodDeclaration , context . SemanticModel , context . CancellationToken ) is { GetValue . Invocation : { } getValue , Backing : { } backingGet } )
4141 {
4242 if ( backingGet . RegisteredName ( context . SemanticModel , context . CancellationToken ) is { Value : { } registeredName } )
4343 {
@@ -147,7 +147,7 @@ argument.Expression is TypeOfExpressionSyntax typeOf &&
147147 }
148148 }
149149 else if ( method . Parameters . TryElementAt ( 1 , out var value ) &&
150- SetAttached . Match ( methodDeclaration , context . SemanticModel , context . CancellationToken ) is { SetValue : { Invocation : { } setValue } , Backing : { } backingSet } )
150+ SetAttached . Match ( methodDeclaration , context . SemanticModel , context . CancellationToken ) is { SetValue . Invocation : { } setValue , Backing : { } backingSet } )
151151 {
152152 if ( backingSet . RegisteredName ( context . SemanticModel , context . CancellationToken ) is { Value : { } registeredName } )
153153 {
@@ -253,7 +253,7 @@ private static bool TryGetSideEffect(BlockSyntax body, InvocationExpressionSynta
253253 case IfStatementSyntax { Condition : { } condition , Statement : ThrowStatementSyntax { } , Else : null }
254254 when NullCheck . IsNullCheck ( condition , null , CancellationToken . None , out _ ) :
255255 continue ;
256- case IfStatementSyntax { Condition : { } condition , Statement : BlockSyntax { Statements : { Count : 0 } } , Else : null }
256+ case IfStatementSyntax { Condition : { } condition , Statement : BlockSyntax { Statements . Count : 0 } , Else : null }
257257 when NullCheck . IsNullCheck ( condition , null , CancellationToken . None , out _ ) :
258258 continue ;
259259 case IfStatementSyntax { Condition : { } condition , Statement : BlockSyntax { Statements : { Count : 1 } statements } , Else : null }
0 commit comments