namespace TightWiki.Engine.Function
{
public class OrdinalParameter
{
public string Value { get; set; }
///
/// Has been matched to a prototype parameter?
///
public bool IsMatched { get; set; } = false;
///
/// If matched to a prototype parameter, this is the name of the parameter.
///
public string ParameterName { get; set; } = string.Empty;
public OrdinalParameter(string value)
{
Value = value;
}
public void AssociateWithPrototypeParam(string paramName)
{
IsMatched = true;
ParameterName = paramName;
}
}
}