Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
revert javasig
Browse files Browse the repository at this point in the history
  • Loading branch information
HosseinYousefi committed Jun 26, 2023
1 parent a31eab8 commit 2540828
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jnigen/lib/src/elements/elements.dart
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,12 @@ class Method extends ClassMember implements Element<Method> {
TypeUsage? asyncReturnType;

@JsonKey(includeFromJson: false)
late String javaSig = '$name$descriptor';
late String javaSig = _javaSig();

String _javaSig() {
final paramNames = params.map((p) => p.type.name).join(', ');
return '${returnType.name} $name($paramNames)';
}

bool get isCtor => name == '<init>';

Expand Down

0 comments on commit 2540828

Please sign in to comment.