From 0faa863d9241b95a2ffa97b931de68a9b64466ff Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Fri, 8 Nov 2024 13:18:47 +1100 Subject: [PATCH] Fix analysis --- pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart b/pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart index b75710db3..a0e929f9d 100644 --- a/pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart +++ b/pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart @@ -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) { @@ -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; }