Exemple #1
0
 /// <summary>
 /// Adds a warning.
 /// </summary>
 /// <param name="description">Warning description.</param>
 /// <param name="node">The node associated with the warning.</param>
 /// <param name="quickFix">How to fix this warning.</param>
 public void AddWarning(string description, INodeModel node = null, QuickFix quickFix = null)
 {
     AddError(description, node, true, quickFix);
 }
Exemple #2
0
 void AddError(string desc, INodeModel node, bool isWarning, QuickFix quickFix)
 {
     m_Errors.Add(new GraphProcessingError {
         Description = desc, SourceNode = node, SourceNodeGuid = node == null ? default : node.Guid, IsWarning = isWarning, Fix = quickFix
     });
Exemple #3
0
 /// <summary>
 /// Adds an error.
 /// </summary>
 /// <param name="description">Error description.</param>
 /// <param name="node">The node associated with the error.</param>
 /// <param name="quickFix">How to fix this error.</param>
 public void AddError(string description, INodeModel node = null, QuickFix quickFix = null)
 {
     AddError(description, node, false, quickFix);
 }