@@ -680,15 +680,39 @@ private module Impl {
680680 }
681681
682682 private Element getImmediateChildOfVarDecl ( VarDecl e , int index , string partialPredicateCall ) {
683- exists ( int b , int bAbstractStorageDecl , int n |
683+ exists (
684+ int b , int bAbstractStorageDecl , int n , int nPropertyWrapperBackingVarBinding ,
685+ int nPropertyWrapperBackingVar , int nPropertyWrapperProjectionVarBinding ,
686+ int nPropertyWrapperProjectionVar
687+ |
684688 b = 0 and
685689 bAbstractStorageDecl =
686690 b + 1 + max ( int i | i = - 1 or exists ( getImmediateChildOfAbstractStorageDecl ( e , i , _) ) | i ) and
687691 n = bAbstractStorageDecl and
692+ nPropertyWrapperBackingVarBinding = n + 1 and
693+ nPropertyWrapperBackingVar = nPropertyWrapperBackingVarBinding + 1 and
694+ nPropertyWrapperProjectionVarBinding = nPropertyWrapperBackingVar + 1 and
695+ nPropertyWrapperProjectionVar = nPropertyWrapperProjectionVarBinding + 1 and
688696 (
689697 none ( )
690698 or
691699 result = getImmediateChildOfAbstractStorageDecl ( e , index - b , partialPredicateCall )
700+ or
701+ index = n and
702+ result = e .getImmediatePropertyWrapperBackingVarBinding ( ) and
703+ partialPredicateCall = "PropertyWrapperBackingVarBinding()"
704+ or
705+ index = nPropertyWrapperBackingVarBinding and
706+ result = e .getImmediatePropertyWrapperBackingVar ( ) and
707+ partialPredicateCall = "PropertyWrapperBackingVar()"
708+ or
709+ index = nPropertyWrapperBackingVar and
710+ result = e .getImmediatePropertyWrapperProjectionVarBinding ( ) and
711+ partialPredicateCall = "PropertyWrapperProjectionVarBinding()"
712+ or
713+ index = nPropertyWrapperProjectionVarBinding and
714+ result = e .getImmediatePropertyWrapperProjectionVar ( ) and
715+ partialPredicateCall = "PropertyWrapperProjectionVar()"
692716 )
693717 )
694718 }
@@ -809,14 +833,27 @@ private module Impl {
809833 }
810834
811835 private Element getImmediateChildOfParamDecl ( ParamDecl e , int index , string partialPredicateCall ) {
812- exists ( int b , int bVarDecl , int n |
836+ exists (
837+ int b , int bVarDecl , int n , int nPropertyWrapperLocalWrappedVarBinding ,
838+ int nPropertyWrapperLocalWrappedVar
839+ |
813840 b = 0 and
814841 bVarDecl = b + 1 + max ( int i | i = - 1 or exists ( getImmediateChildOfVarDecl ( e , i , _) ) | i ) and
815842 n = bVarDecl and
843+ nPropertyWrapperLocalWrappedVarBinding = n + 1 and
844+ nPropertyWrapperLocalWrappedVar = nPropertyWrapperLocalWrappedVarBinding + 1 and
816845 (
817846 none ( )
818847 or
819848 result = getImmediateChildOfVarDecl ( e , index - b , partialPredicateCall )
849+ or
850+ index = n and
851+ result = e .getImmediatePropertyWrapperLocalWrappedVarBinding ( ) and
852+ partialPredicateCall = "PropertyWrapperLocalWrappedVarBinding()"
853+ or
854+ index = nPropertyWrapperLocalWrappedVarBinding and
855+ result = e .getImmediatePropertyWrapperLocalWrappedVar ( ) and
856+ partialPredicateCall = "PropertyWrapperLocalWrappedVar()"
820857 )
821858 )
822859 }
0 commit comments