Skip to content
This repository was archived by the owner on Sep 14, 2018. It is now read-only.

Find the Target of a CallExpression #1429

@lafrank

Description

@lafrank

Walking PythonAst I try to collect calls to other functions from within a function body. The aim is to provide a call tree displayed in a TreeView, like in Visual Studio,

I have a question. During iteration of statements in function body, when I encounter a CallExpression and its Target is a NameExpression, how can I find out whether the given NameExpression refers to a FunctionDefinition ? I only have the Name of the NameExpression and can't figure out how to match it to any FunctionDefinition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions