Update all AST nodes setters to require XyzImpl values.

Change-Id: Iaabe077a27a3d7c1dd4660b5d4b3bb9ccb746b0d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/265408
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Konstantin Shcheglov 2022-10-24 22:40:47 +00:00 committed by Commit Queue
parent afb9609261
commit 0ad53cbc7b
4 changed files with 514 additions and 518 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -316,7 +316,7 @@ class NamedTypeResolver with ScopeHelpers {
/// out to be a [ClassElement], so it is probably a `Class.constructor`.
void _rewriteToConstructorName(
NamedTypeImpl node,
PrefixedIdentifier typeIdentifier,
PrefixedIdentifierImpl typeIdentifier,
) {
var constructorName = node.parent;
if (constructorName is ConstructorNameImpl &&

View file

@ -3163,7 +3163,7 @@ class AstBuilder extends StackListener {
reportVarianceModifierNotEnabled(variance);
}
var bound = pop() as TypeAnnotation?;
var bound = pop() as TypeAnnotationImpl?;
// Peek to leave type parameters on top of stack.
var typeParameters = peek() as List<TypeParameter>;