Skip to content

Commit

Permalink
Update to analyzer 5+ (#1072)
Browse files Browse the repository at this point in the history
* Update to analyzer ^5.0.0 (supports dart3 on master)

* Update CHANGELOG

* Fix flutter tests after update
  • Loading branch information
nielsenko authored Jan 3, 2023
1 parent dddb4db commit 2e6e547
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
### Internal
* Using Core 13.1.2.
* No longer use vcpkg ([#1069](https://github.com/realm/realm-dart/pull/1069))
* Upgraded analyzer dependency to ^5.0.0. ([#1072](https://github.com/realm/realm-dart/pull/1072))

## 0.8.0+rc (2022-11-14)

Expand Down
2 changes: 2 additions & 0 deletions flutter/realm_flutter/tests/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ dev_dependencies:
test: ^1.20.1
timezone: ^0.9.0

dependency_overrides:
test_api: 0.4.17

flutter:
uses-material-design: true
Expand Down
5 changes: 4 additions & 1 deletion generator/lib/src/pseudo_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PseudoType extends TypeImpl {
final NullabilitySuffix nullabilitySuffix;
final String _name;

PseudoType(this._name, {this.nullabilitySuffix = NullabilitySuffix.none}) : super(null);
PseudoType(this._name, {this.nullabilitySuffix = NullabilitySuffix.none});

Never get _never => throw UnimplementedError();

Expand Down Expand Up @@ -53,4 +53,7 @@ class PseudoType extends TypeImpl {

@override
Element? get element2 => null;

@override
Element? get element => _never;
}
2 changes: 1 addition & 1 deletion generator/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ environment:
sdk: ">=2.17.5 <3.0.0"

dependencies:
analyzer: ^4.7.0
analyzer: ^5.0.0
build_resolvers: ^2.0.9
build: ^2.0.0
dart_style: ^2.2.0
Expand Down

0 comments on commit 2e6e547

Please sign in to comment.