It would be nice if aptana would show the line number of the variable definition in the code assistent popup. I created a mockup and added it for you.
Expected steps to test:
2. Evoke content assist at the pipe
3. Select "bar" from the content assist.
Variable definition gives line number where the variable is defined.