"YourPython"/src/pyomo/pyomo/core/base/var.py
If you do not know where is your source code you can open a python shell and type
import pyomo
pyomo.__path__
That will tell you were is you pyomo package and you can explore the code to find what you need.
Santiago