Skip to content

Commit

Permalink
🐛 fix chopper_generator regression introduced in #534
Browse files Browse the repository at this point in the history
fixes #546
  • Loading branch information
techouse committed Jan 6, 2024
1 parent 2dc868f commit 2a90923
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions chopper_generator/lib/src/generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,7 @@ final class ChopperGenerator
// ignore: deprecated_member_use
function.enclosingElement is ClassElement
// ignore: deprecated_member_use
? refer(function.enclosingElement!.name!)
.property(function.name!)
.toString()
? '${function.enclosingElement!.name}.${function.name}'
: function.name!;

static Map<String, ConstantReader> _getAnnotation(
Expand Down

0 comments on commit 2a90923

Please sign in to comment.