don't bother searching for implicit resolve results if we're going to reject them anyway (PY-6559)

This commit is contained in:
Dmitry Jemerov
2013-02-04 15:04:06 +01:00
parent 1469a3d7d1
commit 3ff146ee19
2 changed files with 13 additions and 4 deletions
@@ -51,6 +51,10 @@ public class PyResolveContext {
return new PyResolveContext(myAllowImplicits, myAllowProperties, context);
}
public PyResolveContext withoutImplicits() {
return new PyResolveContext(false, myAllowProperties, myTypeEvalContext);
}
public TypeEvalContext getTypeEvalContext() {
return myTypeEvalContext != null ? myTypeEvalContext : TypeEvalContext.fastStubOnly(null);
}