Exemple #1
0
        } // end of PrintMissingDependencies

        /// <summary>
        /// Adds an error to the list of errors.
        /// Use PrintErrors() to report them to the user.
        /// </summary>
        /// <param name="E">The error exception.</param>
        public void AddError(G25.UserException E)
        {
            lock (m_errors)
            {
                m_errors.Add(E);
            }
        }
Exemple #2
0
 protected void ErrorDetected(G25.UserException E)
 {
     m_sane = false; // do not continue code generation for this type
     if (E.m_XMLerrorSource.Length == 0)
     {
         string XMLstring = XML.FunctionToXmlString(m_specification, m_fgs);
         m_cgd.AddError(new G25.UserException(E.m_message, XMLstring, E.m_filename, E.m_line, E.m_column));
     }
     else
     {
         m_cgd.AddError(E);
     }
 }