@@ -80,13 +80,13 @@ class EtsApplicationGraphImpl(
8080) : EtsApplicationGraph {
8181
8282 override fun predecessors (node : EtsStmt ): Sequence <EtsStmt > {
83- val graph = node.method.flowGraph()
83+ val graph = node.location. method.flowGraph()
8484 val predecessors = graph.predecessors(node)
8585 return predecessors.asSequence()
8686 }
8787
8888 override fun successors (node : EtsStmt ): Sequence <EtsStmt > {
89- val graph = node.method.flowGraph()
89+ val graph = node.location. method.flowGraph()
9090 val successors = graph.successors(node)
9191 return successors.asSequence()
9292 }
@@ -139,8 +139,8 @@ class EtsApplicationGraphImpl(
139139 val callee = expr.callee
140140
141141 // Note: the resolving code below expects that at least the current method signature is known.
142- check(node.method.signature.enclosingClass.isIdeal()) {
143- " Incomplete signature in method: ${node.method} "
142+ check(node.location. method.signature.enclosingClass.isIdeal()) {
143+ " Incomplete signature in method: ${node.location. method} "
144144 }
145145
146146 // Note: specific resolve for constructor:
@@ -223,17 +223,17 @@ class EtsApplicationGraphImpl(
223223 // If the callee signature is not ideal, resolve it via a partial match...
224224 check(! callee.enclosingClass.isIdeal())
225225
226- val cls = lookupClassWithIdealSignature(node.method.signature.enclosingClass).let {
226+ val cls = lookupClassWithIdealSignature(node.location. method.signature.enclosingClass).let {
227227 if (it.isNone) {
228- error(" Could not find the enclosing class: ${node.method.enclosingClass} " )
228+ error(" Could not find the enclosing class: ${node.location. method.enclosingClass} " )
229229 }
230230 it.getOrThrow()
231231 }
232232
233233 // If the complete signature match failed,
234234 // try to find the unique not-the-same neighbour method in the same class:
235235 val neighbors = classMethodsByName[cls.signature].orEmpty()[callee.name].orEmpty()
236- .filterNot { it.name == node.method.name }
236+ .filterNot { it.name == node.location. method.name }
237237 if (neighbors.isNotEmpty()) {
238238 val s = neighbors.singleOrNull()
239239 ? : error(" Multiple methods with the same name: $neighbors " )
@@ -260,7 +260,7 @@ class EtsApplicationGraphImpl(
260260 .filterNot {
261261 compareClassSignatures(
262262 it.signature.enclosingClass,
263- node.method.signature.enclosingClass
263+ node.location. method.signature.enclosingClass
264264 ) != ComparisonResult .NotEqual
265265 }
266266 .toList()
0 commit comments