Example #1
0
        /// <summary>
        /// Adds a new message to the report.
        /// </summary>
        /// <param name="line">Line where the issue was seen.</param>
        /// <param name="col">Column where the problem starts, or NO_COLUMN.</param>
        /// <param name="isWarn">Is this a warning or an error?</param>
        /// <param name="msg">Human-readable message.</param>
        public void Add(int line, int col, FileLoadItem.Type msgType, string msg)
        {
            mItems.Add(new FileLoadItem(line, col, msgType, msg));
            switch (msgType)
            {
            case FileLoadItem.Type.Warning:
                HasWarnings = true;
                break;

            case FileLoadItem.Type.Error:
                HasErrors = true;
                break;
            }
        }
Example #2
0
 /// <summary>
 /// Adds a new message to the report.
 /// </summary>
 /// <param name="isWarn">Is this a warning or an error?</param>
 /// <param name="msg">Human-readable message.</param>
 public void Add(FileLoadItem.Type msgType, string msg)
 {
     Add(FileLoadItem.NO_LINE, FileLoadItem.NO_COLUMN, msgType, msg);
 }