public ParameterValue(string name, Value value, VisibilityType visibility) { Name = name; Value = value.ArgumentValue(); Bound = BoundValue.Unbind(Value, out var boundName, out var innerValue); if (Bound) { BoundName = boundName; Value = innerValue; } else { BoundName = ""; } Visibility = visibility; DefaultValue = PushValue(""); }
public ParameterValue(string name, Block block, VisibilityType visibility, bool lazy) { Name = name; Value = evaluateBlock(block, lazy); Bound = BoundValue.Unbind(Value, out var boundName, out var innerValue); if (Bound) { BoundName = boundName; Value = innerValue; } else { BoundName = ""; } Visibility = visibility; DefaultValue = PushValue(""); }