33 writes to Value
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1216Interlocked.Add(ref totalTicks.Value, elapsed);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
289completed.Value = true;
Microsoft.CodeAnalysis.CSharp (1)
CodeGen\EmitStatement.cs (1)
481EmitCondBranch(top.condition, ref top.destBox.Value, top.sense);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (3)
InteractiveSessionTests.cs (3)
2029globals.Value = cancellationSource; 2063globals.Value = cancellationSource; 2097globals.Value = cancellationSource;
Microsoft.CodeAnalysis.EditorFeatures (2)
EditorConfigSettings\Data\EnumFlagsSetting.cs (1)
46return _valueStorage.Value = _conversions.From(flags);
EditorConfigSettings\Data\Setting.cs (1)
78valueStorage.Value = initialValue;
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
289completed.Value = true;
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\RequestContext.cs (1)
333_lspSolution.Value = default;
Microsoft.CodeAnalysis.Scripting (1)
ScriptExecutionState.cs (1)
151exceptionHolderOpt.Value = exception;
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\HostDiagnosticAnalyzers.cs (2)
310box.Value ??= ImmutableDictionary<string, SkippedHostAnalyzersInfo>.Empty; 315box.Value = box.Value.Add(project.Language, info);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
TestExportJoinableTaskContext+DenyExecutionSynchronizationContext.cs (2)
110_failedTransfer.Value = ExceptionDispatchInfo.Capture(e); 130_failedTransfer.Value = ExceptionDispatchInfo.Capture(e);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionTests.cs (1)
103counter.Value++;
System.Collections.Concurrent (5)
System\Collections\Concurrent\PartitionerStatic.cs (5)
428_localOffset.Value++; 463_localOffset.Value = 0; 924return _enumerable.GrabChunk(_localList, requestedChunkSize, ref _currentChunkSize!.Value); 1112_currentChunkSize!.Value = (int)(newSharedIndex - oldSharedIndex); 1113_localOffset!.Value = -1;
System.Linq.Expressions (1)
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
1704nullCase.Value = caseOffset;
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\StrongBox.cs (2)
33Value = value; 39set => Value = (T)value!;
src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreSlim.cs (1)
900m_lockObjAndDisposed.Value = true;
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\TextEncoderSettings.cs (1)
235return ref newBitmap.Value;
System.Threading.Tasks.Dataflow (1)
Base\DataflowBlock.cs (1)
2122_completed.Value = Task;
System.Threading.Tasks.Parallel (2)
System\Threading\Tasks\ParallelRangeManager.cs (2)
121fixed (long* indexPtr = &sharedCurrentIndexOffset.Value) 129nMyOffset = Interlocked.Add(ref sharedCurrentIndexOffset.Value, _nIncrementValue) - _nIncrementValue;
System.Windows.Forms (1)
System\Windows\Forms\PropertyStore.cs (1)
225storedValue.Value = value;
System.Windows.Forms.UI.IntegrationTests (3)
Infra\DataCollectionService.cs (1)
142logged.Value = true;
Infra\DenyExecutionSynchronizationContext.cs (2)
54_failedTransfer.Value = ExceptionDispatchInfo.Capture(e); 73_failedTransfer.Value = ExceptionDispatchInfo.Capture(e);
182 references to Value
GenerateDocumentationAndConfigFiles (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Metrics (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Metrics.Legacy (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis (25)
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
185return _analyzerExecutionTimeMap.ToImmutableDictionary(pair => pair.Key, pair => TimeSpan.FromTicks(pair.Value.Value)); 1543return TimeSpan.FromTicks(executionTime.Value);
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (19)
376this.GetOrCreateAnalyzerActions().Value.AddCompilationStartAction(analyzerAction); 382GetOrCreateAnalyzerActions().Value.EnableConcurrentExecution(); 492return this.GetOrCreateAnalyzerActions().Value; 498this.GetOrCreateAnalyzerActions().Value.AddCompilationAction(analyzerAction); 504this.GetOrCreateAnalyzerActions().Value.AddCompilationEndAction(analyzerAction); 510this.GetOrCreateAnalyzerActions().Value.AddSemanticModelAction(analyzerAction); 516this.GetOrCreateAnalyzerActions().Value.AddSyntaxTreeAction(analyzerAction); 522this.GetOrCreateAnalyzerActions().Value.AddAdditionalFileAction(analyzerAction); 528this.GetOrCreateAnalyzerActions().Value.AddSymbolAction(analyzerAction); 590this.GetOrCreateAnalyzerActions().Value.AddSymbolStartAction(analyzerAction); 596this.GetOrCreateAnalyzerActions().Value.AddSymbolEndAction(analyzerAction); 602this.GetOrCreateAnalyzerActions().Value.AddCodeBlockStartAction(analyzerAction); 608this.GetOrCreateAnalyzerActions().Value.AddCodeBlockEndAction(analyzerAction); 614this.GetOrCreateAnalyzerActions().Value.AddCodeBlockAction(analyzerAction); 620this.GetOrCreateAnalyzerActions().Value.AddSyntaxNodeAction(analyzerAction); 626this.GetOrCreateAnalyzerActions().Value.AddOperationBlockStartAction(analyzerAction); 632this.GetOrCreateAnalyzerActions().Value.AddOperationBlockEndAction(analyzerAction); 638this.GetOrCreateAnalyzerActions().Value.AddOperationBlockAction(analyzerAction); 644this.GetOrCreateAnalyzerActions().Value.AddOperationAction(analyzerAction);
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (2)
237return _lazySuppressMessageAttribute.Value; 253return _lazyUnconditionalSuppressMessageAttribute.Value;
InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.Analyzers (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (3)
230if (completed.Value) 253if (completed.Value) 282if (!completed.Value && !context.FilterSpan.HasValue)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.CSharp (16)
CodeGen\EmitStatement.cs (3)
437object? fallThrough = top.destBox.Value; 475dest = destBox.Value; 486dest = destBox.Value;
Compilation\CSharpCompilation.cs (1)
5109if (typeDecl.MemberNames.Value.Contains(_name))
Declarations\DeclarationTable.cs (2)
285t => t.MemberNames.Value.Contains(name), 299foreach (var name in t.MemberNames.Value)
Declarations\DeclarationTreeBuilder.cs (3)
1046memberNames = previousMemberNames.Value.Count == memberNamesBuilder.Count && previousMemberNames.Value.SetEquals(memberNamesBuilder) 1056if (memberNames.Value.Count > 0)
Declarations\MergedTypeDeclaration.cs (1)
262var names = UnionCollection<string>.Create(this.Declarations, d => d.MemberNames.Value);
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (1)
104return lazyNullableContext.Value;
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
403return uncommon.LazyExtensionParameter.Value;
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
106return _lazyExtensionParameter.Value;
Symbols\Source\SourcePropertySymbolBase.cs (2)
787return _lazyMergedBackingField.Value; 807Debug.Assert((object?)_lazyMergedBackingField.Value == backingField);
Symbols\SubstitutedNamedTypeSymbol.cs (1)
505return _lazyExtensionParameter.Value;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (26)
DeclarationTests.cs (26)
407Assert.True(type1.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 412Assert.True(type2.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 420Assert.True(type3.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "w", "x", "y", "z" })); 460Assert.True(type1.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 465Assert.True(type2.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 503Assert.True(type1.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 508Assert.True(type2.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 556Assert.True(type1a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 559Assert.True(type1b.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "a", "b", "c" })); 564Assert.True(type2a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 567Assert.True(type2b.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "a", "b", "c" })); 611Assert.True(type1a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 614Assert.True(type1b.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "a", "b", "c" })); 619Assert.True(type2a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 660Assert.True(type1a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 665Assert.True(type2a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 703Assert.True(type1a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 708Assert.True(type2a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 750Assert.True(type1a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 755Assert.True(type2a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 795Assert.True(type1a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 800Assert.True(type2a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 840Assert.True(type1a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 845Assert.True(type2a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 874Assert.True(type1.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 875Assert.True(type2.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" }));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
208return hasAliases.Value;
Microsoft.CodeAnalysis.EditorFeatures (3)
EditorConfigSettings\Data\EnumFlagsSetting.cs (2)
36var flags = _conversions.To(_valueStorage.Value); 50=> (_conversions.To(_valueStorage.Value) & _flag) == _flag;
IntelliSense\AsyncCompletion\CompletionSource.cs (1)
521itemData = boxedItemData.Value;
Microsoft.CodeAnalysis.Features (14)
AddImport\AbstractAddImportFeatureService.cs (1)
403static reference => new StrongBox<bool>(ComputeIsInPackagesDirectory(reference))).Value;
Common\AbstractProjectExtensionProvider.cs (2)
39extensions = providers.Value; 63=> s_referencesToExtensionsMap.GetValue(analyzerReferences, _ => new(ComputeExtensions(language, analyzerReferences))).Value;
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer.CompilationManager.cs (3)
44tupleBox.Value.checksum != checksum || 45!analyzers.IsSubsetOf(tupleBox.Value.analyzers)) 65return tupleBox.Value.compilationWithAnalyzersPair;
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnostics.cs (3)
122analyzers.IsSubsetOf(box.Value.analyzers)) 125if (box.Value.checksum == checksum) 126return box.Value.diagnosticAnalysisResults;
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (2)
46box.Value.checksum != checksum) 62var (_, analyzers, projectAnalysisData) = box.Value;
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (3)
230if (completed.Value) 253if (completed.Value) 282if (!completed.Value && !context.FilterSpan.HasValue)
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\RequestContext.cs (4)
76return _lspSolution.Value.Workspace ?? throw new InvalidOperationException(); 95return _lspSolution.Value.Solution ?? throw new InvalidOperationException(); 139if (_lspSolution.Value.Workspace is null) 144return _lspSolution.Value.Document;
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\SourceGeneration\RemoteSourceGenerationService.cs (1)
130if (hasGenerators.Value)
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.Scripting (1)
Script.cs (1)
583return new ScriptState<T>(executionState, this, result, exceptionOpt?.Value);
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Metadata\PE\PEPropertySymbol.vb (1)
236Return _lazyOverloadResolutionPriority.Value
Symbols\Source\SourceModuleSymbol.vb (1)
717diagnostics.AddRange(Me._lazyBoundImportsAdditionalDiagnostics.Value, allowMismatchInDependencyAccumulation:=True)
Microsoft.CodeAnalysis.Workspaces (13)
Diagnostics\HostDiagnosticAnalyzers.cs (4)
303if (box.Value != null && box.Value.TryGetValue(project.Language, out var info)) 312if (!box.Value.TryGetValue(project.Language, out info)) 315box.Value = box.Value.Add(project.Language, info);
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (2)
49tuple.Value.checksum != checksum) 64return await tuple.Value.lazyProjectIndex.GetValueAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (1)
128var textAndDirectivesChecksum = CodeAnalysis.Checksum.Create(textChecksum, directivesChecksum.Value);
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Workspace\Solution\FileTextLoader.cs (1)
68GetType(), _ => new StrongBox<bool>(new Func<Stream, Workspace, SourceText>(CreateText).Method.DeclaringType != typeof(FileTextLoader))).Value;
Workspace\Solution\StateChecksums.cs (2)
595return checksumCollection.Value; 600=> s_objectToChecksumCollectionCache.GetValue(value, _ => new StrongBox<TResult>(checksumCreator(value, arg))).Value;
Workspace\Solution\TextLoader.cs (1)
65_ => new StrongBox<bool>(new Func<Workspace, DocumentId, CancellationToken, Task<TextAndVersion>>(LoadTextAndVersionAsync).Method.DeclaringType != typeof(TextLoader))).Value)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
TestExportJoinableTaskContext+DenyExecutionSynchronizationContext.cs (4)
91if (_failedTransfer.Value == null) 96_failedTransfer.Value.Throw(); 103if (_failedTransfer.Value == null) 123if (_failedTransfer.Value == null)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionTests.cs (1)
102Assert.Equal(0, counter.Value);
Roslyn.Diagnostics.Analyzers (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
System.Collections.Concurrent (24)
System\Collections\Concurrent\PartitionerStatic.cs (24)
425if (_localOffset.Value < _currentChunkSize.Value - 1) 437Debug.Assert(_localOffset.Value == _currentChunkSize.Value - 1 || _currentChunkSize.Value == 0); 441if (_currentChunkSize.Value == 0) //first time grabbing from source enumerator 447requestedChunkSize = _currentChunkSize.Value; 451requestedChunkSize = Math.Min(_currentChunkSize.Value * 2, _maxChunkSize); 462Debug.Assert(_currentChunkSize.Value <= requestedChunkSize && _currentChunkSize.Value > 0); 951Debug.Assert(_localOffset!.Value >= 0 && _localOffset.Value < _currentChunkSize.Value); 952return (_localList[_localOffset.Value]); 1221Debug.Assert(_localOffset!.Value >= 0 && _localOffset.Value < _currentChunkSize.Value); 1222return new KeyValuePair<long, TSource>(_startIndex + _localOffset.Value, 1223_sharedReader[_startIndex + _localOffset.Value]); 1305Debug.Assert(_localOffset!.Value >= 0 && _localOffset.Value < _currentChunkSize.Value); 1306return new KeyValuePair<long, TSource>(_startIndex + _localOffset.Value, 1307_sharedReader[_startIndex + _localOffset.Value]);
System.Linq.Expressions (3)
System\Linq\Expressions\Compiler\HoistedLocals.cs (1)
91return ((StrongBox<object[]>)locals[0]).Value!;
System\Linq\Expressions\Interpreter\ControlFlowInstructions.cs (1)
781return _nullCase.Value;
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
1702if (nullCase.Value == 1)
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\StrongBox.cs (1)
38get => Value;
src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreSlim.cs (1)
927ObjectDisposedException.ThrowIf(m_lockObjAndDisposed.Value, this);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
283try { m_cancellationRegistration.Value.Dispose(); }
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\TextEncoderSettings.cs (1)
232newBitmap.Value.AllowChar((char)allowedCodePoint);
System.Threading.Tasks.Dataflow (1)
Base\DataflowBlock.cs (1)
2110if (_completed.Value != null || base.Task.IsCompleted) return DataflowMessageStatus.DecliningPermanently;
System.Windows.Forms (3)
System\Windows\Forms\PropertyStore.cs (3)
46? foundValue.GetValue<StrongBox<T>>().Value 90? foundValue.GetValue<StrongBox<T>>().Value 171? foundValue.GetValue<StrongBox<T>>().Value
System.Windows.Forms.UI.IntegrationTests (5)
Infra\DataCollectionService.cs (1)
136if (logged.Value)
Infra\DenyExecutionSynchronizationContext.cs (4)
35if (_failedTransfer.Value is null) 40_failedTransfer.Value.Throw(); 47if (_failedTransfer.Value is null) 66if (_failedTransfer.Value is null)
Test.Utilities (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Text.Analyzers (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;