Skip to content

DartTypeVisitor should be a real visitor #40478

@stereotype441

Description

@stereotype441

Currently the analyzer's DartTypeVisitor class dispatches using a bunch of is checks. We should really update it to follow the traditional visitor pattern, using an abstract accept method in DartType, which each concrete subtype overrides to call the appropriate method in the visitor class.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions