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

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
liamappelbe committed Oct 25, 2023
1 parent 06d0b6e commit 2725cc7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/src/code_generator/func_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class FunctionType extends Type {
});

String _getTypeImpl(
bool writeArgumentNames, String Function(Type) typeToString, {String? argSuffix}) {
bool writeArgumentNames, String Function(Type) typeToString,
{String? argSuffix}) {
final sb = StringBuffer();

// Write return Type.
Expand Down Expand Up @@ -55,7 +56,8 @@ class FunctionType extends Type {
sb.write(",)>");
}

return _getTypeImpl(writeArgumentNames, (Type t) => t.getCType(w), argSuffix: varArgs);
return _getTypeImpl(writeArgumentNames, (Type t) => t.getCType(w),
argSuffix: varArgs);
}

@override
Expand Down
2 changes: 1 addition & 1 deletion lib/src/code_generator/objc_interface.dart
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ class $name extends ${superType?.name ?? '_ObjCWrapper'} {
String value,
String library,
bool isObjCOwnedReturn,
){
) {
final ownershipFlags = 'retain: ${!isObjCOwnedReturn}, release: true';
return '$className._($value, $library, $ownershipFlags)';
}
Expand Down

0 comments on commit 2725cc7

Please sign in to comment.