61 references to Add
Microsoft.CodeAnalysis (5)
Binding\UseSiteInfo.cs (1)
97secondaryDependencies = secondaryDependencies.Add(PrimaryDependency);
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
149_knownAssemblyPathsBySimpleName[simpleName] = paths.Add(fullPath);
InternalUtilities\MultiDictionary.cs (1)
167return new ValueSet(set.Add(v), _equalityComparer);
MetadataReader\PEModule.cs (1)
1491result = result.Add(parameterName);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
105/// <inheritdoc cref="ImmutableHashSet{T}.Add(T)"/>
Microsoft.CodeAnalysis.CodeStyle (3)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
167return new ValueSet(set.Add(v), _equalityComparer);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
105/// <inheritdoc cref="ImmutableHashSet{T}.Add(T)"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
105var updated = set.Add(value);
Microsoft.CodeAnalysis.Collections.Package (1)
ImmutableSegmentedHashSet`1.cs (1)
105/// <inheritdoc cref="ImmutableHashSet{T}.Add(T)"/>
Microsoft.CodeAnalysis.CSharp (10)
Binder\LockOrUsingBinder.cs (2)
62lockedOrDisposedVariables = lockedOrDisposedVariables.Add(((BoundLocal)expression).LocalSymbol); 65lockedOrDisposedVariables = lockedOrDisposedVariables.Add(((BoundParameter)expression).ParameterSymbol);
Compilation\CSharpCompilation.cs (1)
3174var updated = current.Add(tree);
Symbols\Attributes\WellKnownAttributeData\ParameterWellKnownAttributeData.cs (1)
158_notNullIfParameterNotNull = _notNullIfParameterNotNull.Add(parameterName);
Symbols\Attributes\WellKnownAttributeData\ReturnTypeWellKnownAttributeData.cs (1)
59_notNullIfParameterNotNull = _notNullIfParameterNotNull.Add(parameterName);
Symbols\Source\ConstantEvaluationHelpers.cs (1)
147node.DependedOnBy = node.DependedOnBy.Add(field);
Symbols\TypeSymbol.cs (3)
2394abstractMembers = abstractMembers.Add(member); 2419overriddenMembers = overriddenMembers.Add(overriddenMember); 2429abstractMembers = abstractMembers.Add(baseAbstractMember);
Utilities\ValueSetFactory.EnumeratedValueSet.cs (1)
44=> new EnumeratedValueSet<T>(included: true, ImmutableHashSet<T>.Empty.Add(value), tc);
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\KeywordCompletionProvider.cs (1)
184public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharacters.Add(' ');
Completion\CompletionProviders\ObjectAndWithInitializerCompletionProvider.cs (1)
105public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharacters.Add(' ');
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (1)
168public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharacters.Add(' ');
Microsoft.CodeAnalysis.EditorFeatures (1)
Workspaces\AbstractTextBufferVisibilityTracker.cs (1)
174this.Callbacks = this.Callbacks.Add(callback);
Microsoft.CodeAnalysis.Features (2)
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
297.FindReferencesAsync(symbol, document.Project.Solution, ImmutableHashSet<Document>.Empty.Add(document), cancellationToken)
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (1)
442.FindReferencesAsync(parameterSymbol, document.Project.Solution, ImmutableHashSet<Document>.Empty.Add(document), cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (2)
178s_highPriorityComputeTasks = s_highPriorityComputeTasks.Add(computeTask); 253s_normalPriorityCancellationTokenSources = s_normalPriorityCancellationTokenSources.Add(cancellationTokenSource);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\SourceFieldSymbol.vb (1)
344node.DependedOnBy = node.DependedOnBy.Add(field)
Microsoft.CodeAnalysis.VisualBasic.Features (4)
Completion\CompletionProviders\CompletionUtilities.vb (2)
20Friend ReadOnly CommonTriggerCharsAndParen As ImmutableHashSet(Of Char) = CommonTriggerChars.Add("("c) 22Friend ReadOnly SpaceTriggerChar As ImmutableHashSet(Of Char) = CommonTriggerChars.Add(" "c)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.vb (2)
86_aliasedNames = _aliasedNames.Add(aliasSymbol.Target.Name) 115aliasedNames = aliasedNames.Add(identifierName.Identifier.ValueText)
Microsoft.CodeAnalysis.Workspaces (9)
Diagnostics\DiagnosticAnalysisResult.cs (1)
267=> new(ProjectId, version, DocumentIdsOrEmpty.Add(documentId), isEmpty: false, fromBuild: fromBuild);
Options\SolutionOptionSet.cs (1)
76_changedOptionKeys.Add(optionKey));
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
149_knownAssemblyPathsBySimpleName[simpleName] = paths.Add(fullPath);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
167return new ValueSet(set.Add(v), _equalityComparer);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
105/// <inheritdoc cref="ImmutableHashSet{T}.Add(T)"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
105var updated = set.Add(value);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
209DocumentsNotFromFiles = DocumentsNotFromFiles.Add(documentId);
Workspace\Solution\ProjectDependencyGraph_AddProject.cs (1)
37ProjectIds.Add(projectId),
Workspace\Solution\ProjectDependencyGraph_AddProjectReference.cs (1)
168newReverseTranstiveReferences = newReverseTranstiveReferences.Add(projectId);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
167return new ValueSet(set.Add(v), _equalityComparer);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
105/// <inheritdoc cref="ImmutableHashSet{T}.Add(T)"/>
Microsoft.Interop.SourceGeneration (3)
MarshallingInfoParser.cs (2)
307_activeInspectingElements = inspectedElements.Add(elementName); 336_activeInspectingElements = inspectedElements.Add(paramName);
TypeSymbolExtensions.cs (1)
160if (!IsBlittableWorker(field.Type, seenTypes.Add(type), compilation, isBlittable))
Microsoft.VisualStudio.LanguageServices (12)
NavigateTo\RoslynSearchItemsSource.cs (12)
24.Add(NavigateToItemKind.Class) 25.Add(NavigateToItemKind.Enum) 26.Add(NavigateToItemKind.Structure) 27.Add(NavigateToItemKind.Interface) 28.Add(NavigateToItemKind.Delegate) 29.Add(NavigateToItemKind.Module); 31.Add(NavigateToItemKind.Constant) 32.Add(NavigateToItemKind.EnumItem) 33.Add(NavigateToItemKind.Field) 34.Add(NavigateToItemKind.Method) 35.Add(NavigateToItemKind.Property) 36.Add(NavigateToItemKind.Event);
System.Collections.Immutable (3)
System\Collections\Immutable\ImmutableHashSet.cs (2)
44return ImmutableHashSet<T>.Empty.Add(item); 56return ImmutableHashSet<T>.Empty.WithComparer(equalityComparer).Add(item);
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
360return this.Add(item);