Skip to content

Commit

Permalink
misc: Fix formatting errors
Browse files Browse the repository at this point in the history
I blame Visual Studio's AI completion feature
  • Loading branch information
burnedram committed Sep 20, 2023
1 parent 46494b3 commit cbdc8ff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Il2CppInterop.Generator/Passes/Pass80UnstripMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private static PropertyDefinition GetOrCreateProperty(MethodDefinition unityMeth

if (unityType is ArrayType arrayType)
{
if (arrayType.Rank != 1) { rwContext = null; return null; }
if (arrayType.Rank != 1) { rwContext = null; return null; }
var resolvedElementType = ResolveTypeInNewAssemblies(context, unityType.GetElementType(), imports, out rwContext, resolveValueTypes);
if (resolvedElementType == null) { rwContext = null; return null; }
if (resolvedElementType.FullName == "System.String")
Expand Down
2 changes: 1 addition & 1 deletion Il2CppInterop.Generator/Utils/RetargetingILProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void Append(Instruction instruction)

public void InsertAfter(Instruction target, Instruction instruction)
{
var index = _targetBuilder.Body.Instructions.IndexOf (target);
var index = _targetBuilder.Body.Instructions.IndexOf(target);
_targetBuilder.InsertAfter(index, instruction);
}

Expand Down
2 changes: 1 addition & 1 deletion Il2CppInterop.Generator/Utils/StackWalker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static bool TryWalkStack(RuntimeAssemblyReferences imports,
return false;
}

var nPush = ins.PushAmount() ;
var nPush = ins.PushAmount();
if (stackPos == stackTarget && nPush > 0)
{
results[stackTargetIdx].source ??= ins;
Expand Down
2 changes: 1 addition & 1 deletion Il2CppInterop.Generator/Utils/UnstripTranslator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static Result Unimplemented(Instruction ins) =>
public readonly string reason;
public bool IsError => type != ErrorType.None;

public Result(ErrorType type, Instruction offendingInstruction, string reason)
public Result(ErrorType type, Instruction offendingInstruction, string reason)
{
this.type = type;
this.offendingInstruction = offendingInstruction;
Expand Down

0 comments on commit cbdc8ff

Please sign in to comment.