Esempio n. 1
0
        /// <summary>
        /// Raise a warning
        /// </summary>
        public void Warning(string message)
        {
            m_diagnosticsCallback.Warning(message);
            CompilerError error = new CompilerError();

            error.ErrorText = message;
            error.IsWarning = true;
            Errors.Add(error);
        }
Esempio n. 2
0
 public void Warning(string message)
 {
     if (m_messagePrefix != null)
     {
         message = $"{m_messagePrefix}{message}";
     }
     m_innerCallback.Warning(message);
     Interlocked.Increment(ref m_warnings);
 }