Skip to content

Commit 1818a2f

Browse files
scheglovCommit Queue
authored and
Commit Queue
committed
Issue 55011. Fix GeneralizingAstVisitor.visitNamedType() to invoke visitTypeAnnotation().
Bug: #55011 Change-Id: I1bcd12afdc8cf9645aaca6b11baf9b738750414b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354440 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Samuel Rawlins <[email protected]>
1 parent ce642d0 commit 1818a2f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/analyzer/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Deprecated `LibraryElement.isNonNullableByDefault`.
55
* Deprecated `InterfaceElement.lookUpGetter`, `InterfaceElement.lookUpMethod`,
66
and `InterfaceElement.lookUpSetter`.
7+
* Fixed `GeneralizingAstVisitor.visitNamedType` to invoke `visitTypeAnnotation`.
78

89
## 6.4.1
910
* Patch for crash in ffi_verifier.

pkg/analyzer/lib/dart/ast/visitor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ class GeneralizingAstVisitor<R> implements AstVisitor<R> {
519519
R? visitNamedExpression(NamedExpression node) => visitExpression(node);
520520

521521
@override
522-
R? visitNamedType(NamedType node) => visitNode(node);
522+
R? visitNamedType(NamedType node) => visitTypeAnnotation(node);
523523

524524
R? visitNamespaceDirective(NamespaceDirective node) =>
525525
visitUriBasedDirective(node);

0 commit comments

Comments
 (0)