Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

Function to resolve references #90

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem?

As a basis for the data flow analysis we need to know the declaration(s) that a reference can point to.

Desired solution

A function resolve_reference that takes an astroid.Name node (or another node that represents a reference) and returns a list of the possible

  • parameters
  • local variables
  • global variables
  • class attributes
  • instance attributes

that the reference can point to.

If we cannot list all candidates, this should be clearly indicated. Since this function is the basis for any further analysis, it should be well tested.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

No response

Metadata

Metadata

Assignees

Labels

enhancement 💡New feature or requestpurityInferring the purity of functions

Type

No type

Projects

Status

✔️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions