Example #1
0
 private void RaiseDiagnosticsUpdated(
     StateType type, object key, ProviderId providerId, SolutionArgument solution, ImmutableArray <DiagnosticData> diagnostics)
 {
     if (_owner != null)
     {
         var id = new ArgumentKey(providerId, type, key);
         _owner.RaiseDiagnosticsUpdated(this,
                                        new DiagnosticsUpdatedArgs(id, _analyzersAndState.Workspace, solution.Solution, solution.ProjectId, solution.DocumentId, diagnostics));
     }
 }
        private void RaiseDiagnosticsUpdated(
            StateType type, object key, DiagnosticAnalyzer analyzer, SolutionArgument solution, ImmutableArray <DiagnosticData> diagnostics)
        {
            if (_owner == null)
            {
                return;
            }

            var id = new ArgumentKey(analyzer, type, key);

            _owner.RaiseDiagnosticsUpdated(this,
                                           new DiagnosticsUpdatedArgs(id, Workspace, solution.Solution, solution.ProjectId, solution.DocumentId, diagnostics));
        }
 public override void RemoveDocument(DocumentId documentId)
 {
     _owner.RaiseDiagnosticsUpdated(
         this, new DiagnosticsUpdatedArgs(ValueTuple.Create(this, documentId), Workspace, null, null, null, ImmutableArray <DiagnosticData> .Empty));
 }