From fb80782f6ee09b47a9e82a52d4715228cff50032 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Tue, 3 Dec 2024 13:02:30 +1100 Subject: [PATCH] Fix analysis --- pkgs/ffigen/lib/src/header_parser/parser.dart | 1 - pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart | 4 +++- pkgs/ffigen/test/large_integration_tests/large_objc_test.dart | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/ffigen/lib/src/header_parser/parser.dart b/pkgs/ffigen/lib/src/header_parser/parser.dart index 15dc0f5e3..882e68c3f 100644 --- a/pkgs/ffigen/lib/src/header_parser/parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/parser.dart @@ -12,7 +12,6 @@ import 'package:logging/logging.dart'; import '../code_generator.dart'; import '../code_generator/utils.dart'; import '../config_provider.dart'; -import '../config_provider/config_types.dart'; import '../strings.dart' as strings; import '../visitor/apply_config_filters.dart'; import '../visitor/ast.dart'; diff --git a/pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart b/pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart index d06c7db1a..62914e53f 100644 --- a/pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart +++ b/pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart @@ -130,7 +130,9 @@ class FixOverriddenMethodsVisitation extends Visitation { final (root, rootMethod) = _findRootWithMethod(node, method); // If method and rootMethod are the same kind, then there's nothing to do. if ((method.kind == ObjCMethodKind.propertyGetter) == - (rootMethod.kind == ObjCMethodKind.propertyGetter)) continue; + (rootMethod.kind == ObjCMethodKind.propertyGetter)) { + continue; + } _convertAllSubtreeMethodsToProperties(root, rootMethod); } } diff --git a/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart b/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart index 212f997df..58f919c54 100644 --- a/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart +++ b/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart @@ -14,7 +14,6 @@ import 'dart:io'; import 'package:ffigen/ffigen.dart'; import 'package:ffigen/src/code_generator/utils.dart'; -import 'package:ffigen/src/config_provider/config.dart'; import 'package:ffigen/src/config_provider/config_types.dart'; import 'package:logging/logging.dart'; import 'package:pub_semver/pub_semver.dart';