Implemented interface member:
110 references to Add
AnalyzerRunner (3)
CodeRefactoringRunner.cs (1)
144kindBuilder.Add(Convert.ToInt32(Enum.Parse(enumType, name)));
Options.cs (2)
178builder.Add(ReadValue()); 181refactoringBuilder.Add(ReadValue());
Microsoft.AspNetCore.Analyzers (1)
CompilationFeatureDetector.cs (1)
50features.Add(WellKnownFeatures.SignalR);
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\Converters\CollectionAdapters\ImmutableHashSetBufferAdapter.cs (1)
14buffer.Add(element);
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ImmutableHashSetBufferAdapter.cs (1)
14buffer.Add(element);
Microsoft.Build (2)
Definition\Project.cs (1)
2558_fragmentStrings.Add(removeFragment);
Evaluation\LazyItemEvaluator.cs (1)
348globsToIgnoreForPreviousOperations.Add(globToRemove);
Microsoft.CodeAnalysis (8)
DiagnosticAnalyzer\AnalyzerDriver.cs (5)
541builder.Add(analyzer); 995builder.Add(severityForTree); 1339generatedSymbolsBuilder.Add(symbol); 1417suppressedAnalyzersBuilder.Add(analyzer); 1502builder.Add(analyzer);
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
248builder.Add(typeName);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+Builder.cs (1)
36/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
74/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/>
Microsoft.CodeAnalysis.CodeStyle (7)
src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (2)
53multipleLanguagesOptionsBuilder.Add(perLanguageValuedOption); 66multipleLanguagesOptionsBuilder.Add(option);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+Builder.cs (1)
36/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
74/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (3)
251builder.Add(alias); 257builder.Add(aliasWithoutAttribute); 261builder.Add(alias.GetWithSingleAttributeSuffix(caseSensitive));
Microsoft.CodeAnalysis.Collections.Package (2)
ImmutableSegmentedHashSet`1+Builder.cs (1)
36/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/>
ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
74/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/>
Microsoft.CodeAnalysis.CSharp (57)
BoundTree\BoundDecisionDag.cs (1)
57result.Add(leaf.Label);
Errors\ErrorFacts.cs (56)
28nullableWarnings.Add(GetId(ErrorCode.WRN_NullReferenceAssignment)); 29nullableWarnings.Add(GetId(ErrorCode.WRN_NullReferenceReceiver)); 30nullableWarnings.Add(GetId(ErrorCode.WRN_NullReferenceReturn)); 31nullableWarnings.Add(GetId(ErrorCode.WRN_NullReferenceArgument)); 32nullableWarnings.Add(GetId(ErrorCode.WRN_UninitializedNonNullableField)); 33nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInAssignment)); 34nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInArgument)); 35nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInArgumentForOutput)); 36nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate)); 37nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate)); 38nullableWarnings.Add(GetId(ErrorCode.WRN_NullAsNonNullable)); 39nullableWarnings.Add(GetId(ErrorCode.WRN_NullableValueTypeMayBeNull)); 40nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint)); 41nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint)); 42nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint)); 43nullableWarnings.Add(GetId(ErrorCode.WRN_ThrowPossibleNull)); 44nullableWarnings.Add(GetId(ErrorCode.WRN_UnboxPossibleNull)); 45nullableWarnings.Add(GetId(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull)); 46nullableWarnings.Add(GetId(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNullWithWhen)); 48nullableWarnings.Add(GetId(ErrorCode.WRN_ConvertingNullableToNonNullable)); 49nullableWarnings.Add(GetId(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment)); 50nullableWarnings.Add(GetId(ErrorCode.WRN_ParameterConditionallyDisallowsNull)); 52nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInTypeOnOverride)); 53nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride)); 54nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnPartial)); 55nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride)); 56nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial)); 57nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInTypeOnImplicitImplementation)); 58nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnImplicitImplementation)); 59nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnImplicitImplementation)); 60nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInTypeOnExplicitImplementation)); 61nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnExplicitImplementation)); 62nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnExplicitImplementation)); 63nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation)); 64nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInExplicitlyImplementedInterface)); 65nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInInterfaceImplementedByBase)); 66nullableWarnings.Add(GetId(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList)); 67nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInConstraintsOnPartialImplementation)); 68nullableWarnings.Add(GetId(ErrorCode.WRN_NullReferenceInitializer)); 69nullableWarnings.Add(GetId(ErrorCode.WRN_ShouldNotReturn)); 70nullableWarnings.Add(GetId(ErrorCode.WRN_DoesNotReturnMismatch)); 71nullableWarnings.Add(GetId(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation)); 72nullableWarnings.Add(GetId(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation)); 73nullableWarnings.Add(GetId(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride)); 74nullableWarnings.Add(GetId(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation)); 75nullableWarnings.Add(GetId(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation)); 76nullableWarnings.Add(GetId(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride)); 77nullableWarnings.Add(GetId(ErrorCode.WRN_MemberNotNull)); 78nullableWarnings.Add(GetId(ErrorCode.WRN_MemberNotNullBadMember)); 79nullableWarnings.Add(GetId(ErrorCode.WRN_MemberNotNullWhen)); 80nullableWarnings.Add(GetId(ErrorCode.WRN_ParameterDisallowsNull)); 81nullableWarnings.Add(GetId(ErrorCode.WRN_ParameterNotNullIfNotNull)); 82nullableWarnings.Add(GetId(ErrorCode.WRN_ReturnNotNullIfNotNull)); 83nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnInterceptor)); 84nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnInterceptor)); 86nullableWarnings.Add(GetId(ErrorCode.WRN_UninitializedNonNullableBackingField));
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (2)
VisualBasicParsingTests.cs (2)
27builder.Add(SyntaxKind.ReferenceKeyword); 32bool added = builder.Add(kind);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
VS\IFSharpWorkspaceProjectContextFactory.cs (1)
178builder.Add(referencePath);
Microsoft.CodeAnalysis.Features (2)
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
216resultBuilder.Add(assemblyName);
src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (1)
53multipleLanguagesOptionsBuilder.Add(perLanguageValuedOption);
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (1)
314failedDocuments.Add(document);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.HostStates.cs (1)
100builder.Add(analyzerReference.Id);
Microsoft.CodeAnalysis.VisualBasic (1)
Declarations\DeclarationTreeBuilder.vb (1)
738results.Add(name)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (2)
31[set].Add(importsClause.Alias.Identifier.ValueText) 36[set].Add(import.Name)
Microsoft.CodeAnalysis.Workspaces (7)
CodeFixes\FixAllOccurrences\FixAllState.cs (1)
113uniqueIds.Add(diagnostic.Id);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+Builder.cs (1)
36/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
74/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (3)
251builder.Add(alias); 257builder.Add(aliasWithoutAttribute); 261builder.Add(alias.GetWithSingleAttributeSuffix(caseSensitive));
Workspace\Solution\ProjectDependencyGraph.cs (1)
227builder.Add(projectId);
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildProjectLoader.SolutionFilterReader.cs (1)
69filterProjects.Add(absoluteProjectPath);
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (1)
94_projectReferences.Add(projectReference);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+Builder.cs (1)
36/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
74/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/>
Microsoft.VisualStudio.LanguageServices (4)
Library\ObjectBrowser\AbstractListItemFactory.cs (4)
490set.Add((projectId, compilation.Assembly)); 498set.Add((projectId, referenceAssembly)); 516set.Add((project.Id, compilation.Assembly)); 526set.Add((project.Id, referenceAssembly));
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\RemoteLanguageServiceWorkspace.cs (2)
184remoteRootPaths.Add(localRoot); 185externalPaths.Add(externalPath);
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableHashSet_1.Builder.cs (1)
387this.Add(item);