/// <summary> /// Predicate which indicates whether the namable provided matches the expectation for the semantic analysis /// </summary> /// <param name="value"></param> /// <returns></returns> public override bool AcceptableChoice(INamable value) { bool retVal = base.AcceptableChoice(value); if (!retVal) { retVal = IsValue.Predicate(value); } return(retVal); }
/// <summary> /// Predicate, so that the code can be reused /// </summary> /// <param name="value"></param> /// <returns></returns> public new static bool Predicate(INamable value) { return(value is IVariable || IsValue.Predicate(value)); }