diff --git a/pkgs/swift2objc/lib/src/ast/declarations/compounds/members/initializer_declaration.dart b/pkgs/swift2objc/lib/src/ast/declarations/compounds/members/initializer_declaration.dart index 922a53d61..287afbbbf 100644 --- a/pkgs/swift2objc/lib/src/ast/declarations/compounds/members/initializer_declaration.dart +++ b/pkgs/swift2objc/lib/src/ast/declarations/compounds/members/initializer_declaration.dart @@ -29,7 +29,6 @@ class InitializerDeclaration @override bool isOverriding; - @override bool isFailable; @override diff --git a/pkgs/swift2objc/lib/src/parser/_core/utils.dart b/pkgs/swift2objc/lib/src/parser/_core/utils.dart index f17e0acff..9bb0ba3d7 100644 --- a/pkgs/swift2objc/lib/src/parser/_core/utils.dart +++ b/pkgs/swift2objc/lib/src/parser/_core/utils.dart @@ -61,13 +61,13 @@ String parseSymbolName(Json symbolJson) { } bool parseSymbolHasObjcAnnotation(Json symbolJson) { - return symbolJson['declarationFragments'].any( - (json) => matchFragment(json, 'attribute', '@objc')); + return symbolJson['declarationFragments'] + .any((json) => matchFragment(json, 'attribute', '@objc')); } bool parseIsOverriding(Json symbolJson) { - return symbolJson['declarationFragments'].any( - (json) => matchFragment(json, 'keyword', 'override')); + return symbolJson['declarationFragments'] + .any((json) => matchFragment(json, 'keyword', 'override')); } ReferredType parseTypeFromId(String typeId, ParsedSymbolgraph symbolgraph) { diff --git a/pkgs/swift2objc/lib/src/transformer/_core/unique_namer.dart b/pkgs/swift2objc/lib/src/transformer/_core/unique_namer.dart index 6430bfba8..8a13e1202 100644 --- a/pkgs/swift2objc/lib/src/transformer/_core/unique_namer.dart +++ b/pkgs/swift2objc/lib/src/transformer/_core/unique_namer.dart @@ -7,8 +7,8 @@ import '../../ast/_core/interfaces/compound_declaration.dart'; class UniqueNamer { final Set _usedNames; - UniqueNamer([Iterable usedNames = const []]) : - _usedNames = usedNames.toSet(); + UniqueNamer([Iterable usedNames = const []]) + : _usedNames = usedNames.toSet(); UniqueNamer.inCompound(CompoundDeclaration compoundDeclaration) : _usedNames = { diff --git a/pkgs/swift2objc/lib/src/transformer/transformers/transform_initializer.dart b/pkgs/swift2objc/lib/src/transformer/transformers/transform_initializer.dart index 710fa8771..2fa043edd 100644 --- a/pkgs/swift2objc/lib/src/transformer/transformers/transform_initializer.dart +++ b/pkgs/swift2objc/lib/src/transformer/transformers/transform_initializer.dart @@ -61,8 +61,8 @@ List _generateInitializerStatements( final originalParam = originalInitializer.params[i]; final transformedParam = transformedInitializer.params[i]; - final transformedParamName = - localNamer.makeUnique(transformedParam.internalName ?? transformedParam.name); + final transformedParamName = localNamer + .makeUnique(transformedParam.internalName ?? transformedParam.name); final (unwrappedParamValue, unwrappedType) = maybeUnwrapValue( transformedParam.type,