1 implementation of Target
Microsoft.CodeAnalysis.Workspaces (1)
ReferenceCountedDisposable.cs (1)
118
public 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)
140
return _ruleSetFile?.
Target
.Value.FilePath;
149
_ruleSetFile.
Target
.Value.UpdatedOnDisk -= RuleSetFile_UpdatedOnDisk;
173
if (_ruleSetFile?.
Target
.Value.FilePath != effectiveRuleSetPath)
182
_ruleSetFile.
Target
.Value.UpdatedOnDisk += RuleSetFile_UpdatedOnDisk;
199
compilationOptions = ComputeCompilationOptionsWithHostValues(compilationOptions, _ruleSetFile?.
Target
.Value);
225
if (_ruleSetFile?.
Target
.Value != (IRuleSetFile)sender)
Microsoft.VisualStudio.LanguageServices (2)
ProjectSystem\RuleSets\VisualStudioRuleSetManager.cs (1)
40
cacheEntry.
Target
.Value.InitializeFileTracking(_fileChangeWatcher);
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (1)
306
if (subscribedHierarchy.
Target
.Key == hierarchy)
Microsoft.VisualStudio.LanguageServices.UnitTests (13)
ProjectSystemShim\VisualStudioRuleSetTests.vb (13)
56
Dim generalDiagnosticOption = visualStudioRuleSet.
Target
.Value.GetGeneralDiagnosticOption()
100
Dim generalDiagnosticOption = visualStudioRuleSet.
Target
.Value.GetGeneralDiagnosticOption()
147
AddHandler ruleSet1.
Target
.Value.UpdatedOnDisk, Sub() handlerCalled = True
150
Dim generalDiagnosticOption = ruleSet1.
Target
.Value.GetGeneralDiagnosticOption()
189
Dim generalDiagnosticOption = ruleSet1.
Target
.Value.GetGeneralDiagnosticOption()
198
generalDiagnosticOption = ruleSet2.
Target
.Value.GetGeneralDiagnosticOption()
202
Assert.NotSame(ruleSet1.
Target
, ruleSet2.
Target
)
234
Dim generalDiagnosticOption = ruleSet1.
Target
.Value.GetGeneralDiagnosticOption()
240
Assert.Same(ruleSet1.
Target
, ruleSet2.
Target
)
271
Dim generalDiagnosticOption = ruleSet.
Target
.Value.GetGeneralDiagnosticOption()
276
Dim exception = ruleSet.
Target
.Value.GetException()