Ejemplo n.º 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <author>ALVES Quentin</author>
 /// <param name="type" >Type of diagnostic</param>
 /// <param name="message" >Message of the diagnostic</param>
 /// <param name="meta" >Metadata of the diagnostic</param>
 public Diagnostic(EDiagnosticTypes type, string message, Textmeta meta)
 {
     this.Type    = type;
     this.Message = message;
     this.Meta    = meta;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Emit method
        /// </summary>
        /// <author>ALVES Quentin</author>
        /// <note>Add a line to the report</note>
        /// <param name="type" >Type of diagnostic</param>
        /// <param name="message" >Message of the diagnostic</param>
        /// <param name="meta" >Metadata of the diagnostic</param>
        private void Emit(EDiagnosticTypes type, string message, Textmeta meta)
        {
            var diag = new Diagnostic(type, message, meta);

            this.diags.Add(diag);
        }