Skip to content

[go_router_builder] ClassElement is deprecated #171003

@stuartmorgan-g

Description

@stuartmorgan-g

The current list of warnings is:

   info • lib/src/go_router_generator.dart:79:5 • 'Element' is deprecated and shouldn't be used. This is part of the old analyzer element model. Please
          see
          https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/doc/element_model_migration_guide.md
          for information about how to migrate to the new
          element model. Try replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/go_router_generator.dart:87:21 • 'ClassElement' is deprecated and shouldn't be used. Use ClassElement2 instead. Try replacing the use
          of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:63:24 • 'unnamedConstructor' is deprecated and shouldn't be used. This is part of the old analyzer element model. Please
          see
          https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/doc/element_model_migration_guide.md
          for information about how to migrate to the new
          element model. Try replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:70:41 • 'unnamedConstructor' is deprecated and shouldn't be used. This is part of the old analyzer element model. Please
          see
          https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/doc/element_model_migration_guide.md
          for information about how to migrate to the new
          element model. Try replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:122:73 • 'unnamedConstructor' is deprecated and shouldn't be used. This is part of the old analyzer element model. Please
          see
          https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/doc/element_model_migration_guide.md
          for information about how to migrate to the new
          element model. Try replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:261:3 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing the
          use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:262:27 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:274:16 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:274:43 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:296:21 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:323:11 • 'PropertyAccessorElement' is deprecated and shouldn't be used. Use PropertyAccessorElement2 instead. Try
          replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:341:16 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:370:19 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:371:31 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:378:19 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:379:15 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:383:3 • 'ConstructorElement' is deprecated and shouldn't be used. Use ConstructorElement2 instead. Try replacing the
          use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:384:11 • 'ConstructorElement' is deprecated and shouldn't be used. Use ConstructorElement2 instead. Try replacing the
          use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:384:53 • 'unnamedConstructor' is deprecated and shouldn't be used. This is part of the old analyzer element model. Please
          see
          https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/doc/element_model_migration_guide.md
          for information about how to migrate to the new
          element model. Try replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:446:16 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:446:47 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:492:5 • 'InterfaceElement' is deprecated and shouldn't be used. Use InterfaceElement2 instead. Try replacing the use
          of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:510:5 • 'InterfaceElement' is deprecated and shouldn't be used. Use InterfaceElement2 instead. Try replacing the use
          of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:515:34 • 'element' is deprecated and shouldn't be used. Use element3 instead. Try replacing the use of the deprecated
          member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:526:11 • 'InterfaceElement' is deprecated and shouldn't be used. Use InterfaceElement2 instead. Try replacing the use
          of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:526:57 • 'element' is deprecated and shouldn't be used. Use element3 instead. Try replacing the use of the deprecated
          member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:630:9 • 'InterfaceElement' is deprecated and shouldn't be used. Use InterfaceElement2 instead. Try replacing the use
          of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:642:47 • 'InterfaceElement' is deprecated and shouldn't be used. Use InterfaceElement2 instead. Try replacing the use
          of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:645:17 • 'FieldElement' is deprecated and shouldn't be used. Use FieldElement2 instead. Try replacing the use of the
          deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:668:23 • 'FieldElement' is deprecated and shouldn't be used. Use FieldElement2 instead. Try replacing the use of the
          deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:675:17 • 'MethodElement' is deprecated and shouldn't be used. Use MethodElement2 instead. Try replacing the use of
          the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:678:23 • 'MethodElement' is deprecated and shouldn't be used. Use MethodElement2 instead. Try replacing the use of
          the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:752:3 • 'PropertyAccessorElement' is deprecated and shouldn't be used. Use PropertyAccessorElement2 instead. Try
          replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:779:32 • 'element' is deprecated and shouldn't be used. Use element3 instead. Try replacing the use of the deprecated
          member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:783:14 • 'FieldElement' is deprecated and shouldn't be used. Use FieldElement2 instead. Try replacing the use of the
          deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:783:45 • 'element' is deprecated and shouldn't be used. Use element3 instead. Try replacing the use of the deprecated
          member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:784:15 • 'FieldElement' is deprecated and shouldn't be used. Use FieldElement2 instead. Try replacing the use of the
          deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:56:24 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing the
          use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:85:20 • 'PropertyAccessorElement' is deprecated and shouldn't be used. Use PropertyAccessorElement2 instead. Try
          replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:100:42 • 'InterfaceElement' is deprecated and shouldn't be used. Use InterfaceElement2 instead. Try replacing the use
          of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:107:15 • 'getParsedLibraryByElement' is deprecated and shouldn't be used. Use getParsedLibraryByElement2() instead.
          Try replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:107:49 • 'library' is deprecated and shouldn't be used. This is part of the old analyzer element model. Please
          see
          https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/doc/element_model_migration_guide.md
          for information about how to migrate to the new
          element model. Try replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:108:9 • 'ElementDeclarationResult' is deprecated and shouldn't be used. Use FragmentDeclarationResult instead. Try
          replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:109:21 • 'getElementDeclaration' is deprecated and shouldn't be used. Use getFragmentDeclaration() instead. Try
          replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:118:21 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:133:54 • 'element' is deprecated and shouldn't be used. Use element3 instead. Try replacing the use of the deprecated
          member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:135:26 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:168:18 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:309:11 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:347:7 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing the
          use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:444:7 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing the
          use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:466:27 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:467:40 • 'ParameterElement' is deprecated and shouldn't be used. Use FormalParameterElement instead. Try replacing
          the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:479:5 • 'Element' is deprecated and shouldn't be used. This is part of the old analyzer element model. Please
          see
          https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/doc/element_model_migration_guide.md
          for information about how to migrate to the new
          element model. Try replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • tool/run_tests.dart:40:13 • 'LibraryElement' is deprecated and shouldn't be used. Use LibraryElement2 instead. Try replacing the use of the
          deprecated member with the replacement. • deprecated_member_use
   info • tool/run_tests.dart:40:59 • 'LibraryElement' is deprecated and shouldn't be used. Use LibraryElement2 instead. Try replacing the use of the
          deprecated member with the replacement. • deprecated_member_use

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.p: deprecated apiUse of a deprecated Dart API in flutter/packages that needs to be updatedp: go_routerThe go_router packagepackageflutter/packages repository. See also p: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions