PyParameter.isSelf(); highlight first argument of @classmethod as self (PY-6881)

This commit is contained in:
Dmitry Jemerov
2013-02-06 21:09:47 +01:00
parent 81694963e3
commit a2ab96d619
6 changed files with 48 additions and 40 deletions
@@ -26,4 +26,10 @@ public interface PyParameter extends PyElement {
PyExpression getDefaultValue();
boolean hasDefaultValue();
/**
* @return true if the parameter is the 'self' parameter of an instance attribute function or a function
* annotated with @classmethod
*/
boolean isSelf();
}