Identifier highligthing pass shows crazy ranges for util.Ref constructor

This commit is contained in:
Alexey Kudravtsev
2016-04-21 15:11:34 +03:00
parent 4b5bd7d765
commit a3f044d3ad
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -224,7 +224,7 @@ public class ConstructorReferencesSearchHelper {
}
}
}
if (constructorCanBeCalledImplicitly) {
if (constructorCanBeCalledImplicitly && PsiSearchScopeUtil.isInScope(searchScope, method)) {
if (!processImplicitConstructorCall(method, processor, constructor, project, inheritor)) return false;
}
}