private int Error(string message) { Errors.Add(new Pair<int, string>(position, message)); return Errors.Count; }