Skip to content

Commit 3778c57

Browse files
author
Maksim Volkau
committed
region removed
1 parent f73167e commit 3778c57

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/FastExpressionCompiler/FastExpressionCompiler.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ public interface IDelegateDebugInfo
132132
[RequiresUnreferencedCode(Trimming.Message)]
133133
public static partial class ExpressionCompiler
134134
{
135-
#region Expression.CompileFast overloads for Delegate, Func, and Action
136-
137135
/// <summary>Compiles lambda expression to TDelegate type. Use ifFastFailedReturnNull parameter to Not fallback to Expression.Compile, useful for testing.</summary>
138136
public static TDelegate CompileFast<TDelegate>(this LambdaExpression lambdaExpr,
139137
bool ifFastFailedReturnNull = false, CompilerFlags flags = CompilerFlags.Default) where TDelegate : class =>
@@ -292,8 +290,6 @@ public static Action<T1, T2, T3, T4, T5, T6> CompileFast<T1, T2, T3, T4, T5, T6>
292290
(Action<T1, T2, T3, T4, T5, T6>)TryCompileBoundToFirstClosureParam(typeof(Action<T1, T2, T3, T4, T5, T6>), lambdaExpr.Body, lambdaExpr.GetParamExprs(), typeof(void), flags)
293291
?? (ifFastFailedReturnNull ? null : lambdaExpr.CompileSys());
294292

295-
#endregion
296-
297293
/// <summary>Tries to compile lambda expression to <typeparamref name="TDelegate"/></summary>
298294
public static TDelegate TryCompile<TDelegate>(this LambdaExpression lambdaExpr, CompilerFlags flags = CompilerFlags.Default)
299295
where TDelegate : class =>
@@ -325,7 +321,7 @@ public static TDelegate TryCompileWithPreCreatedClosure<TDelegate>(this LambdaEx
325321
}
326322

327323
internal static TDelegate TryCompileWithPreCreatedClosure<TDelegate>(
328-
this LambdaExpression lambdaExpr, ref CompilerContext context, CompilerFlags flags) where TDelegate : class
324+
LambdaExpression lambdaExpr, ref CompilerContext context, CompilerFlags flags) where TDelegate : class
329325
{
330326
var closurePlusParamTypes = RentPooledOrNewClosureTypeToParamTypes(lambdaExpr.GetParamExprs());
331327

@@ -1074,8 +1070,6 @@ public static Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>
10741070
(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) => f(c, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10);
10751071
}
10761072

1077-
#region Collect Bound Constants
1078-
10791073
/// Helps to identify constants as the one to be put into the Closure
10801074
public static bool IsClosureBoundConstant(object value, Type type) =>
10811075
value is Delegate || type.IsArray ||
@@ -1809,8 +1803,6 @@ private static Result TryCollectTryExprInfo(ref CompilerContext context, TryExpr
18091803
return r;
18101804
}
18111805

1812-
#endregion
1813-
18141806
/// The minimal context-aware flags set by parent
18151807
[Flags]
18161808
public enum ParentFlags

0 commit comments

Comments
 (0)