Skip to content

Commit

Permalink
Removed addValidBindingIfNotPresent parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shpakh-MSFT committed Oct 31, 2024
1 parent a690643 commit 6ae7485
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ internal interface IExternalRule
// Returns true when Binding is non-null, otherwise false.
bool HasValidBinding { get; }

// Returns true when rule is constant.Adds valid null binding when addValidBindingIfNotPresent is true.
bool IsInvariantExpression(bool addValidBindingIfNotPresent);
// Returns true when rule is constant.
bool IsInvariantExpression { get; }
}
}
2 changes: 1 addition & 1 deletion src/libraries/Microsoft.PowerFx.Core/Binding/Binder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3619,7 +3619,7 @@ public override void PostVisit(DottedNameNode node)
// we need to mark the node as constant, and save the control info so we may look up the
// rule later.
if (controlInfo?.GetRule(property.InvariantName) is IExternalRule rule &&
rule.IsInvariantExpression(addValidBindingIfNotPresent: true))
rule.IsInvariantExpression)
{
value = controlInfo;
isConstant = true;
Expand Down

0 comments on commit 6ae7485

Please sign in to comment.