Skip to content

Refactor semantic analyzer #4083

Closed
Closed
@JukkaL

Description

@JukkaL

The current semantic analyzer is hard to understand and modify. Here some ideas for how to improve things:

  • Create separate modules for the three different passes (say, mypy.analyzer[123]).
  • Don't pass a SemanticAnalyzer instance to the first and third passes. Instead, move any shared functionality to a utility class (or functions), and put them in a separate module such as mypy.analyzeutil.
  • Rename the passes to, say, SemanticAnalyzerPass[123].

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions