protected boolean isLocallyAssigned ( EObject target , EObject containerToFindUsage ) { if ( this . readAndWriteTracking . isAssigned ( target ) ) { return true ; } final Collection < Setting > usages = XbaseUsageCrossReferencer . find ( target , containerToFindUsage ) ; // field are assigned when they are not used as the left operand of an assignment operator. for ( final Setting usage : usages ) { final EObject object = usage . getEObject ( ) ; if ( object instanceof XAssignment ) { final XAssignment assignment = ( XAssignment ) object ; if ( assignment . getFeature ( ) == target ) { // Mark the field as assigned in order to be faster during the next assignment test. this . readAndWriteTracking . markAssignmentAccess ( target ) ; return true ; } } } return false ; }
Replies if the given object is locally assigned .