You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added jpath check to ClassLikeSupport getParentsAsTreeSymbolTuples
Fixes#15927
Check for whether the java parent exists before checking the start
and end of the span to confirm whether the span exists in
getParentsAsTreeSymbolTuples.
parentTree <- c.parents if parentTree.pos.start != parentTree.pos.end // We assume here that order is correct
269
+
// TODO: add exists function to position methods in Quotes and replace the condition here for checking the JPath
270
+
parentTree <- c.parents if parentTree.pos.sourceFile.getJPath.isDefined && parentTree.pos.start != parentTree.pos.end // We assume here that order is correct
270
271
parentSymbol = parentTree match
271
272
caset: TypeTree=> t.tpe.typeSymbol
272
273
case tree if tree.symbol.isClassConstructor => tree.symbol.owner
0 commit comments