Example #1
0
        protected void AddParseError(string description)
        {
            var errorData = new ScriptParseError(this, description);

            errors?.Add(errorData);
            Debug.LogError(errorData);
        }
Example #2
0
        /// <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);
        }