Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ namespace System.Activities.Expressions;

public class CompiledExpressionInvoker
{
private static bool DisableLocationArgumentCreation = Environment.GetEnvironmentVariable("UIPATH_EXPRESSION_DISABLE_LOCATION_ARGUMENT") != null;

private static readonly AttachableMemberIdentifier compiledExpressionRootProperty =
new(typeof(CompiledExpressionInvoker), "CompiledExpressionRoot");
private static readonly AttachableMemberIdentifier compiledExpressionRootForImplementationProperty =
Expand Down Expand Up @@ -226,7 +228,10 @@ private void ProcessLocationReferences()
{
foreach (LocationReference reference in environment.GetLocationReferences())
{
_accessor.CreateLocationArgument(reference, false);
if (!DisableLocationArgumentCreation)
{
_accessor.CreateLocationArgument(reference, false);
}
_locationReferences.Add(new InlinedLocationReference(reference, _metadata.CurrentActivity));
}
}
Expand Down
Loading