diff --git a/packages/pigeon/lib/pigeon_lib.dart b/packages/pigeon/lib/pigeon_lib.dart index 265052ebb5084..1ef6e8a900b1b 100644 --- a/packages/pigeon/lib/pigeon_lib.dart +++ b/packages/pigeon/lib/pigeon_lib.dart @@ -1004,6 +1004,9 @@ class _RootBuilder extends dart_ast_visitor.RecursiveAstVisitor { final dart_ast.NamedType? namedType = getFirstChildOfType(parameter); if (namedType != null) { + // TODO(stuartmorgan): Replace `name` when adopting the next version of + // analyzer. + // ignore: deprecated_member_use final String argTypeBaseName = namedType.name.name; final bool isNullable = namedType.question != null; final List argTypeArguments = @@ -1086,6 +1089,9 @@ class _RootBuilder extends dart_ast_visitor.RecursiveAstVisitor { Method( name: node.name.lexeme, returnType: TypeDeclaration( + // TODO(stuartmorgan): Replace `name` when adopting the next + // version of analyzer. + // ignore: deprecated_member_use baseName: returnType.name.name, typeArguments: typeAnnotationsToTypeArguments(returnType.typeArguments), @@ -1135,6 +1141,9 @@ class _RootBuilder extends dart_ast_visitor.RecursiveAstVisitor { for (final Object x in typeArguments.childEntities) { if (x is dart_ast.NamedType) { result.add(TypeDeclaration( + // TODO(stuartmorgan): Replace `name` when adopting the next + // version of analyzer. + // ignore: deprecated_member_use baseName: x.name.name, isNullable: x.question != null, typeArguments: typeAnnotationsToTypeArguments(x.typeArguments))); @@ -1165,6 +1174,9 @@ class _RootBuilder extends dart_ast_visitor.RecursiveAstVisitor { final dart_ast.TypeArgumentList? typeArguments = type.typeArguments; _currentClass!.fields.add(NamedType( type: TypeDeclaration( + // TODO(stuartmorgan): Replace `name` when adopting the next + // version of analyzer. + // ignore: deprecated_member_use baseName: type.name.name, isNullable: type.question != null, typeArguments: typeAnnotationsToTypeArguments(typeArguments),