Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/Flee/Flee.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Authors>Flee Contributors</Authors>
<Company>Flee</Company>
<Product>Flee</Product>
<TargetFrameworks>net6.0;net5.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net8.0;net7.0;net6.0;net5.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
Expand Down
2 changes: 1 addition & 1 deletion src/Flee/InternalTypes/FleeILGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,6 @@ public void ValidateLength()

public int LabelCount => _myLabelCount;

private int ILGeneratorLength => Utility.GetILGeneratorLength(_myIlGenerator);
private int ILGeneratorLength => _myIlGenerator.ILOffset;
}
}
6 changes: 0 additions & 6 deletions src/Flee/InternalTypes/Utility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,6 @@ public static MethodInfo GetOverloadedOperator(string name, Type sourceType, Bin
return null;
}

public static int GetILGeneratorLength(ILGenerator ilg)
{
System.Reflection.FieldInfo fi = typeof(ILGenerator).GetField("m_length", BindingFlags.Instance | BindingFlags.NonPublic);
return (int)fi.GetValue(ilg);
}

public static bool IsLongBranch(int startPosition, int endPosition)
{
return (endPosition - startPosition) > sbyte.MaxValue;
Expand Down
2 changes: 1 addition & 1 deletion test/Flee.Test/Flee.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
Expand Down