Skip to content

Commit

Permalink
Update to analyzer ^5.0.0 (supports dart3 on master)
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Dec 19, 2022
1 parent 7e93207 commit ca23a4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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 ca23a4a

Please sign in to comment.