Beispiel #1
0
 public virtual void BuilderWarning(string section, string message)
 {
     if (_onBuilderWarning != null)
     {
         _onBuilderWarning(BuildWarning.Create(BuilderType, section, message));
     }
 }
 private void Builder_OnBuilderWarning(BuildWarning warning)
 {
     SetMessage(BuildStatistics.GetWarningMessage(warning));
 }
    void eventSource_WarningRaised(object sender, BuildWarningEventArgs e)
    {
        BuildWarning warning = new BuildWarning()
        {
            File = e.File,
            Timestamp = e.Timestamp,
            LineNumber = e.LineNumber,
            ColumnNumber = e.ColumnNumber,
            Code = e.Code,
            Message = e.Message,
        };

        Warnings.Add(warning);
    }
Beispiel #4
0
 public void Visit(BuildWarning warning) =>
 _warnings.Add(warning);