diff --git a/.github/workflows/corpus.yml b/.github/workflows/corpus.yml index 508a2df1..8cd1e43f 100644 --- a/.github/workflows/corpus.yml +++ b/.github/workflows/corpus.yml @@ -26,7 +26,7 @@ jobs: strategy: fail-fast: false matrix: - sdk: [stable, dev] + sdk: [3.6, dev] steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94 @@ -38,6 +38,6 @@ jobs: - run: dart analyze --fatal-infos - run: dart format --output=none --set-exit-if-changed . - if: ${{ matrix.sdk == 'stable' }} + if: ${{ matrix.sdk == 'dev' }} - run: dart test diff --git a/pkgs/corpus/lib/api.dart b/pkgs/corpus/lib/api.dart index 333696dc..2f6880f7 100644 --- a/pkgs/corpus/lib/api.dart +++ b/pkgs/corpus/lib/api.dart @@ -180,9 +180,7 @@ class ApiUseCollector extends RecursiveAstVisitor implements SurveyorVisitor { return; } - //TODO: fix as soon as enclosingElement3 is on Dart stable - // ignore: deprecated_member_use - var enclosingElement = element.enclosingElement!; + var enclosingElement = element.enclosingElement3!; if (enclosingElement.kind == ElementKind.CLASS) { final name = enclosingElement.name!; diff --git a/pkgs/corpus/pubspec.yaml b/pkgs/corpus/pubspec.yaml index ff49626e..50b54ebf 100644 --- a/pkgs/corpus/pubspec.yaml +++ b/pkgs/corpus/pubspec.yaml @@ -4,20 +4,20 @@ description: A tool to calculate the API usage for a package. publish_to: none environment: - sdk: ^3.1.0 + sdk: ^3.6.0 dependencies: - analyzer: ^6.0.0 - args: ^2.0.0 + analyzer: ^7.0.0 + args: ^2.1.0 cli_util: ^0.4.0 - collection: ^1.16.0 + collection: ^1.19.0 http: ^1.0.0 - path: ^1.8.0 - pub_semver: ^2.0.0 + path: ^1.9.0 + pub_semver: ^2.1.4 yaml: ^3.0.0 dev_dependencies: checks: ^0.3.0 dart_flutter_team_lints: ^3.0.0 - test: ^1.22.0 + test: ^1.25.9 test_descriptor: ^2.0.0