Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.1.2-preview-555" />

 CompilerContext

public readonly bool HasClosure

public bool IsNestedLambda

public readonly Closure Target

public CompilerContext(Closure target, ExpandableArray<Expression> definedVariables, ExpandableArray<Expression> capturedArguments, ExpandableArray<NestedLambda> nestedLambdas)

public CompilerContext CreateNew(ExpandableArray<Expression> definedVariables, bool isNestedLambda, bool hasCapturedArgument)