Ported ReplaceWithOperatorAssignmentAction.