python: The MaD token Instance now follows subclasses

This commit is contained in:
Rasmus Lerchedahl Petersen
2024-05-14 08:40:19 +02:00
parent 6233da3e40
commit 52717f8500
4 changed files with 8 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ API::Node getExtraSuccessorFromNode(API::Node node, AccessPathTokenBase token) {
result = node.getMember(token.getAnArgument())
or
token.getName() = "Instance" and
result = node.getReturn() // In Python `Instance` is just an alias for `ReturnValue`
result = node.getAnInstance()
or
token.getName() = "Awaited" and
result = node.getAwaited()