File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
python-frontend/src/main/java/org/sonar
plugins/python/api/symbols Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 27
27
import org .sonar .plugins .python .api .LocationInFile ;
28
28
29
29
public interface ClassSymbol extends Symbol {
30
+ @ Beta
31
+ List <String > superClassesFqn ();
32
+
30
33
List <Symbol > superClasses ();
31
34
32
35
boolean hasUnresolvedTypeHierarchy ();
Original file line number Diff line number Diff line change @@ -198,6 +198,15 @@ public ClassSymbolImpl copyWithoutUsages() {
198
198
return copiedClassSymbol ;
199
199
}
200
200
201
+ @ Override
202
+ public List <String > superClassesFqn () {
203
+ return superClassesFqns ;
204
+ }
205
+
206
+ public boolean shouldSearchHierarchyInTypeshed () {
207
+ return !hasAlreadyReadSuperClasses && superClasses .isEmpty () && !superClassesFqns .isEmpty ();
208
+ }
209
+
201
210
@ Override
202
211
public List <Symbol > superClasses () {
203
212
// In case of symbols coming from TypeShed protobuf, we resolve superclasses lazily
You can’t perform that action at this time.
0 commit comments