Property.getGetter() doesn't depend on stub/AST switch, explicit Property.getType()

This commit is contained in:
Andrey Vlasovskikh
2013-08-14 21:39:28 +04:00
parent 81458c1cc3
commit 25e55b1c1b
5 changed files with 66 additions and 9 deletions
@@ -1,5 +1,7 @@
package com.jetbrains.python.psi;
import com.jetbrains.python.psi.types.PyType;
import com.jetbrains.python.psi.types.TypeEvalContext;
import com.jetbrains.python.toolbox.Maybe;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -51,4 +53,9 @@ public interface Property {
@NotNull
Maybe<Callable> getByDirection(@NotNull AccessDirection direction);
/**
* Get the return type of the property getter.
*/
@Nullable
PyType getType(@NotNull TypeEvalContext context);
}