Ejemplo n.º 1
0
 internal DiagnosticsUpdatedArgs(Microsoft.CodeAnalysis.Diagnostics.DiagnosticsUpdatedArgs inner, ImmutableArray <DiagnosticData>?diagnostics = null) : base(inner)
 {
     _inner      = inner;
     Solution    = inner.Solution;
     Diagnostics = diagnostics ?? inner.GetAllDiagnosticsRegardlessOfPushPullSetting().Select(x => new DiagnosticData(x)).ToImmutableArray();
     Kind        = (DiagnosticsUpdatedKind)inner.Kind;
 }
Ejemplo n.º 2
0
 // ReSharper disable once UnusedParameter.Local
 private void OnDiagnosticsUpdated(object sender, Microsoft.CodeAnalysis.Diagnostics.DiagnosticsUpdatedArgs e)
 {
     if (e.Solution.Workspace is IDiagnosticsEventSink diagnosticsEventSink)
     {
         diagnosticsEventSink.OnDiagnosticsUpdated(this, new DiagnosticsUpdatedArgs(e));
     }
 }
Ejemplo n.º 3
0
 // ReSharper disable once UnusedParameter.Local
 private void OnDiagnosticsUpdated(object sender, Microsoft.CodeAnalysis.Diagnostics.DiagnosticsUpdatedArgs e)
 {
     DiagnosticsUpdated?.Invoke(this, new DiagnosticsUpdatedArgs(e));
 }
Ejemplo n.º 4
0
 internal DiagnosticsUpdatedArgs(Microsoft.CodeAnalysis.Diagnostics.DiagnosticsUpdatedArgs inner) : base(inner)
 {
     Solution    = inner.Solution;
     Diagnostics = inner.Diagnostics.Select(x => new DiagnosticData(x)).ToImmutableArray();
     Kind        = (DiagnosticsUpdatedKind)inner.Kind;
 }