/// <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; }
/// <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); }