For a random variable $x$ and $y$, consider the conditional pdf $p(x|y)$ and the conditional expectation $E[x|y]$.
I previously thought that the conditional pdf or conditional expectation were functions of $x$, not $y$.
But I read that the $E[x|y] = \int_{-\infty}^{\infty}x\cdot p(x|y)dx$ is a function of $y$. Hence, when taking the expectation again on $E[x|y]$, we write:
$$ E[E[x|y]] = \int_{y = -\infty}^{\infty}\left[\int_{-\infty}^{\infty}x\cdot p(x|y)dx\right]p(y)dy. $$
I do not understand this first because I thought $p(x|y)$ is a function of $x$, and therefore $E[x|y]$ also a function of $x$. Am I wrong in the first place?
Is $p(x|y)$ actually a function of $y$? Why isn't it a function of $x$?
Why isn't $E[x|y] = \int_{-\infty}^{\infty}x\cdot p(x|y)dx$ a function of $x$ when it clearly has $x$ in the expression? Is it a function of both $x$ and $y$?

$$\int_{-\infty}^{\infty} x f(x|y)dx$$
is clearly a function of $y$ because $x$ is integrated
For the same reason
$$\int_{-\infty}^{\infty} x f(x)dx= E(X)$$
is a constant...when the integral exists
$p(x|y)$ is surely a function of $y$ but it can also be a function of both $x,y$, i.e.
$$f(x|y)=y e ^{-xy}$$
$x>0$; $y \sim U[1;2]$
Which is a Negative exponential density with a parameter that is uniformly distributed in $[1;2]$