protected void AddParseError(string description) { var errorData = new ScriptParseError(this, description); errors?.Add(errorData); Debug.LogError(errorData); }
/// <summary> /// Adds provided error to the collection. /// </summary> public static void Add(this ICollection <ScriptParseError> errors, string description, int lineIndex) { var error = new ScriptParseError(lineIndex, description); errors.Add(error); }