Find References of Class Type should not return reference to Class Constructor
class Foo
class Bar extends Foo
Find references of type Foo should return class Bar (and not Bar's constructor) as a potential match.
Leave a comment
(In scala-ide:18360b0101887d110b53afbcd63c6b813bfe49dd) Correctly handle find references on class type
In ``ScalaMatchLocator.reportObjectReference`` only object references are reported, hence we are not interested in constructors. That's why we look at the element's parent if a ConstructorElement is returned for the passed position. The reason why in ``ssf.getElementAt`` can be a constructor has to be looked in the implementation of the ``ScalaStructureBuilder`` and ``ScalaCompilationUnit.getSourceElementAt``.
Fix #1001084
Branch: master
In ``ScalaMatchLocator.reportObjectReference`` only object references are reported, hence we are not interested in constructors. That's why we look at the element's parent if a ConstructorElement is returned for the passed position. The reason why in ``ssf.getElementAt`` can be a constructor has to be looked in the implementation of the ``ScalaStructureBuilder`` and ``ScalaCompilationUnit.getSourceElementAt``.
Fix #1001084
Branch: master
on 2012-06-27 11:21 *
By Mirco Dotta
(In scala-ide:18360b0101887d110b53afbcd63c6b813bfe49dd) Correctly handle find references on class type
In ``ScalaMatchLocator.reportObjectReference`` only object references are reported, hence we are not interested in constructors. That's why we look at the element's parent if a ConstructorElement is returned for the passed position. The reason why in ``ssf.getElementAt`` can be a constructor has to be looked in the implementation of the ``ScalaStructureBuilder`` and ``ScalaCompilationUnit.getSourceElementAt``.
Fix #1001084
Branch: platform/juno
In ``ScalaMatchLocator.reportObjectReference`` only object references are reported, hence we are not interested in constructors. That's why we look at the element's parent if a ConstructorElement is returned for the passed position. The reason why in ``ssf.getElementAt`` can be a constructor has to be looked in the implementation of the ``ScalaStructureBuilder`` and ``ScalaCompilationUnit.getSourceElementAt``.
Fix #1001084
Branch: platform/juno
on 2012-06-28 09:20 *
By Mirco Dotta
(In scala-ide:1ca86a502de8bbf6af94725f395957dfe3cf5694) Correctly handle find references on class type
In ``ScalaMatchLocator.reportObjectReference`` only object references are reported, hence we are not interested in constructors. That's why we look at the element's parent if a ConstructorElement is returned for the passed position. The reason why in ``ssf.getElementAt`` can be a constructor has to be looked in the implementation of the ``ScalaStructureBuilder`` and ``ScalaCompilationUnit.getSourceElementAt``.
Fix #1001084
Branch: issue/code-analysis-1000629
In ``ScalaMatchLocator.reportObjectReference`` only object references are reported, hence we are not interested in constructors. That's why we look at the element's parent if a ConstructorElement is returned for the passed position. The reason why in ``ssf.getElementAt`` can be a constructor has to be looked in the implementation of the ``ScalaStructureBuilder`` and ``ScalaCompilationUnit.getSourceElementAt``.
Fix #1001084
Branch: issue/code-analysis-1000629