have the Instance token just be an alias for ReturnValue

This commit is contained in:
Erik Krogh Kristensen
2022-05-30 12:21:42 +02:00
parent f8281b43b1
commit e557d8839b
3 changed files with 2 additions and 3 deletions

View File

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