Skip to content

Commit

Permalink
Fix analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
liamappelbe committed Nov 8, 2024
1 parent 2d8300c commit 0faa863
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class FixOverriddenMethodsVisitation extends Visitation {

(ObjCInterface, ObjCMethod) _findRootWithMethod(
ObjCInterface node, ObjCMethod method) {
ObjCInterface root = node;
ObjCMethod rootMethod = method;
var root = node;
var rootMethod = method;
for (ObjCInterface? t = node; t != null; t = t.superType) {
final tMethod = t.getMethod(method.originalName);
if (tMethod != null) {
Expand All @@ -76,7 +76,7 @@ class FixOverriddenMethodsVisitation extends Visitation {

void _convertAllSubtreeMethodsToProperties(
ObjCInterface node, ObjCMethod rootMethod) {
ObjCMethod? method = node.getMethod(rootMethod.originalName);
final method = node.getMethod(rootMethod.originalName);
if (method != null && method.kind == ObjCMethodKind.method) {
method.kind = ObjCMethodKind.propertyGetter;
}
Expand Down

0 comments on commit 0faa863

Please sign in to comment.