Skip to content

Commit 75762c4

Browse files
author
GitHub Actions Autoformatter
committed
Auto-format source code
1 parent c6b108b commit 75762c4

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/rgen/Microsoft.Macios.Generator/Emitters/TrampolineEmitter.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,24 @@ public bool TryEmitStaticClass (in TypeInfo typeInfo, string trampolineName, Tab
5353
// initialized the parameters, this might be needed for the parameters that are out or ref
5454
invokeMethod.WriteLine ($"var {delegateVariableName} = {BlockLiteral}.GetTarget<{delegateIdentifier}> ({Nomenclator.GetTrampolineBlockParameterName (typeInfo.Delegate!.Parameters)}");
5555
using (var ifBlock = invokeMethod.CreateBlock ($"if ({delegateVariableName} is not null)", true)) {
56-
56+
5757
// build any needed pre conversion operations before calling the delegate
5858
foreach (var argument in argumentSyntax) {
5959
ifBlock.Write (argument.PreDelegateCallConversion);
6060
}
61-
61+
6262
ifBlock.WriteLine ($"{CallTrampolineDelegate (typeInfo.Delegate!, argumentSyntax)}");
63-
63+
6464
// build any needed post conversion operations after calling the delegate
6565
foreach (var argument in argumentSyntax) {
6666
ifBlock.Write (argument.PostDelegateCallConversion);
6767
}
68-
68+
6969
// perform any needed
70-
if (typeInfo.Delegate.ReturnType.SpecialType != SpecialType.System_Void)
71-
ifBlock.WriteLine($"return {GetTrampolineInvokeReturnType (typeInfo, Nomenclator.GetReturnVariableName ())};");
70+
if (typeInfo.Delegate.ReturnType.SpecialType != SpecialType.System_Void)
71+
ifBlock.WriteLine ($"return {GetTrampolineInvokeReturnType (typeInfo, Nomenclator.GetReturnVariableName ())};");
7272
}
73-
if (typeInfo.Delegate.ReturnType.SpecialType != SpecialType.System_Void)
73+
if (typeInfo.Delegate.ReturnType.SpecialType != SpecialType.System_Void)
7474
invokeMethod.WriteLine ("return default;");
7575
}
7676

tests/rgen/Microsoft.Macios.Generator.Tests/Classes/Data/TrampolinePropertyTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ namespace TestNamespace;
1919

2020
[BindingType<Class>]
2121
public partial class TrampolinePropertyTests {
22-
22+
2323
public delegate NSObject CreateObject (NSObject obj);
24-
24+
2525
[Export<Property> ("createObjectHandler", ArgumentSemantic.Copy)]
2626
public partial CreateObject CreateObjectHandler { get; set; }
2727

@@ -46,9 +46,9 @@ public partial class TrampolinePropertyTests {
4646
// Property using Action<int>
4747
[Export<Property> ("intActionHandler", ArgumentSemantic.Copy)]
4848
public partial Action<int> IntActionHandler { get; set; }
49-
49+
5050
// Property using Action<bool>
51-
[Export<Property>("boolActionHandler", ArgumentSemantic.Copy)]
51+
[Export<Property> ("boolActionHandler", ArgumentSemantic.Copy)]
5252
public partial Action<bool> BoolActionHandler { get; set; }
5353

5454
// Property using AVAssetImageGenerator.AsynchronouslyForTimeCompletionHandler
@@ -58,8 +58,8 @@ public partial class TrampolinePropertyTests {
5858
// Property using CIKernelRoiCallback
5959
[Export<Property> ("kernelRoiCallback", ArgumentSemantic.Copy)]
6060
public partial CIKernelRoiCallback KernelRoiCallback { get; set; }
61-
61+
6262
// Property using AVAssetImageGenerator.AsynchronouslyForTimeCompletionHandler
63-
[Export<Property>("manualRenderingCallback", ArgumentSemantic.Copy)]
63+
[Export<Property> ("manualRenderingCallback", ArgumentSemantic.Copy)]
6464
public partial AVAudioEngineManualRenderingBlock ManualRendering { get; set; }
6565
}

0 commit comments

Comments
 (0)