Skip to content

GeneralizingAstVisitor.visitNamedType does not call visitTypeAnnotation #55011

@rrousselGit

Description

@rrousselGit

Hello!

Currently the implementation of GeneralizingAstVisitor.visitNamedType is:

@override
R? visitNamedType(NamedType node) => visitNode(node);

The thing is, NamedType is a subclass of TypeAnnotation. It would likely be more correct to have:

@override
R? visitNamedType(NamedType node) => visitTypeAnnotation(node);

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onanalyzer-apiIssues that impact the public API of the analyzer packagelegacy-area-analyzerUse area-devexp instead.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions