Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
change location of space
  • Loading branch information
bparrishMines committed Feb 10, 2025
commit b4553a280a7ccc1e4d724d034c3dccbd7dbe4d92
8 changes: 4 additions & 4 deletions packages/pigeon/lib/src/kotlin/kotlin_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,7 @@ if (wrapped == null) {
}) {
indent.writeScoped(
'if (pigeonRegistrar.ignoreCallsToDart) {',
'} ',
'}',
() {
indent.format(
'''
Expand All @@ -1926,14 +1926,14 @@ if (wrapped == null) {
addTrailingNewline: false,
);
indent.writeScoped(
'else if (pigeonRegistrar.instanceManager.containsInstance(${classMemberNamePrefix}instanceArg)) {',
'} ',
' else if (pigeonRegistrar.instanceManager.containsInstance(${classMemberNamePrefix}instanceArg)) {',
'}',
() {
indent.writeln('callback(Result.success(Unit))');
},
addTrailingNewline: false,
);
indent.writeScoped('else {', '}', () {
indent.writeScoped(' else {', '}', () {
if (api.hasCallbackConstructor()) {
indent.writeln(
'val ${classMemberNamePrefix}identifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(${classMemberNamePrefix}instanceArg)',
Expand Down
8 changes: 4 additions & 4 deletions packages/pigeon/lib/src/swift/swift_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2313,7 +2313,7 @@ private func nilOrValue<T>(_ value: Any?) -> T? {
indent.writeScoped('$methodSignature {', '}', () {
indent.writeScoped(
'if pigeonRegistrar.ignoreCallsToDart {',
'} ',
'}',
() {
indent.format(
'''
Expand All @@ -2328,14 +2328,14 @@ private func nilOrValue<T>(_ value: Any?) -> T? {
);

indent.writeScoped(
'else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) {',
'} ',
' else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) {',
'}',
() {
indent.writeln('completion(.success(()))');
},
addTrailingNewline: false,
);
indent.writeScoped('else {', '}', () {
indent.writeScoped(' else {', '}', () {
if (api.hasCallbackConstructor()) {
indent.writeln(
'let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeonInstance as AnyObject)',
Expand Down