protected IScope createCastOperatorScope ( EObject context , EReference reference , IResolvedTypes resolvedTypes ) { if ( ! ( context instanceof SarlCastedExpression ) ) { return IScope . NULLSCOPE ; } final SarlCastedExpression call = ( SarlCastedExpression ) context ; final XExpression receiver = call . getTarget ( ) ; if ( receiver == null ) { return IScope . NULLSCOPE ; } return getFeatureScopes ( ) . createFeatureCallScopeForReceiver ( call , receiver , getParent ( ) , resolvedTypes ) ; }
create a scope for cast operator .