Don't include class name into the location string for a function

For other languages we use the Class.Function notation. The class name
can be included into the function name by a caller if needed.
This commit is contained in:
Andrey Vlasovskikh
2014-09-04 17:18:26 +04:00
parent 26668818d8
commit 4098bfd00e
@@ -269,16 +269,6 @@ public class PyFunctionImpl extends PyBaseElementImpl<PyFunctionStub> implements
public String getPresentableText() {
return notNullize(getName(), PyNames.UNNAMED_ELEMENT) + getParameterList().getPresentableText(true);
}
@Nullable
@Override
public String getLocationString() {
final PyClass containingClass = getContainingClass();
if (containingClass != null) {
return "(" + containingClass.getName() + " in " + getPackageForFile(getContainingFile()) + ")";
}
return super.getLocationString();
}
};
}