Beispiel #1
0
        protected override object DoVisit(ArgumentIndex argumentIndex)
        {
            if (argumentIndex.Index >= arguments.Count)
            {
                errorLogger.LogError(
                    argumentIndex.Location, Utilities.InvariantFormat("Argument index {0} is out of range.", argumentIndex.Index));

                return(Error);
            }

            return(arguments[argumentIndex.Index].Value);
        }
Beispiel #2
0
 public object Visit(ArgumentIndex argumentIndex)
 {
     return(DoVisit(Utilities.ThrowIfNull(argumentIndex, "argumentIndex")));
 }
Beispiel #3
0
 protected virtual object DoVisit(ArgumentIndex argumentIndex)
 {
     return(Default(argumentIndex));
 }