Skip to content

Commit

Permalink
Merge pull request #1128 from rrousselGit:ci
Browse files Browse the repository at this point in the history
Ci
  • Loading branch information
rrousselGit authored Sep 28, 2024
2 parents db09494 + e5c9cba commit 50350b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/freezed/lib/src/ast.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ extension ClassX on ClassDeclaration {

extension ConstructorX on ConstructorDeclaration {
String get fullName {
// ignore: deprecated_member_use, latest analyzer with enclosingElement3 not available in stable channel
final classElement = declaredElement!.enclosingElement;

var generics =
Expand All @@ -64,12 +65,14 @@ extension ConstructorX on ConstructorDeclaration {
generics = '<$generics>';
}

// ignore: deprecated_member_use, latest analyzer with enclosingElement3 not available in stable channel
final className = classElement.enclosingElement.name;

return name == null ? '$className$generics' : '$className$generics.$name';
}

String get escapedName {
// ignore: deprecated_member_use, latest analyzer with enclosingElement3 not available in stable channel
final classElement = declaredElement!.enclosingElement;

var generics =
Expand Down

0 comments on commit 50350b8

Please sign in to comment.