1 implementation of Target
Microsoft.CodeAnalysis.Workspaces (1)
ReferenceCountedDisposable.cs (1)
118public T Target => _instance ?? throw new ObjectDisposedException(nameof(ReferenceCountedDisposable<T>));
22 references to Target
Microsoft.CodeAnalysis.Workspaces (7)
IReferenceCountedDisposable.cs (1)
12/// disposing <see cref="Target"/> directly.
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (6)
140return _ruleSetFile?.Target.Value.FilePath; 149_ruleSetFile.Target.Value.UpdatedOnDisk -= RuleSetFile_UpdatedOnDisk; 173if (_ruleSetFile?.Target.Value.FilePath != effectiveRuleSetPath) 182_ruleSetFile.Target.Value.UpdatedOnDisk += RuleSetFile_UpdatedOnDisk; 199compilationOptions = ComputeCompilationOptionsWithHostValues(compilationOptions, _ruleSetFile?.Target.Value); 225if (_ruleSetFile?.Target.Value != (IRuleSetFile)sender)
Microsoft.VisualStudio.LanguageServices (2)
ProjectSystem\RuleSets\VisualStudioRuleSetManager.cs (1)
40cacheEntry.Target.Value.InitializeFileTracking(_fileChangeWatcher);
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (1)
306if (subscribedHierarchy.Target.Key == hierarchy)
Microsoft.VisualStudio.LanguageServices.UnitTests (13)
ProjectSystemShim\VisualStudioRuleSetTests.vb (13)
56Dim generalDiagnosticOption = visualStudioRuleSet.Target.Value.GetGeneralDiagnosticOption() 100Dim generalDiagnosticOption = visualStudioRuleSet.Target.Value.GetGeneralDiagnosticOption() 147AddHandler ruleSet1.Target.Value.UpdatedOnDisk, Sub() handlerCalled = True 150Dim generalDiagnosticOption = ruleSet1.Target.Value.GetGeneralDiagnosticOption() 189Dim generalDiagnosticOption = ruleSet1.Target.Value.GetGeneralDiagnosticOption() 198generalDiagnosticOption = ruleSet2.Target.Value.GetGeneralDiagnosticOption() 202Assert.NotSame(ruleSet1.Target, ruleSet2.Target) 234Dim generalDiagnosticOption = ruleSet1.Target.Value.GetGeneralDiagnosticOption() 240Assert.Same(ruleSet1.Target, ruleSet2.Target) 271Dim generalDiagnosticOption = ruleSet.Target.Value.GetGeneralDiagnosticOption() 276Dim exception = ruleSet.Target.Value.GetException()