Implemented interface member:
123 references to Add
Microsoft.CodeAnalysis.CodeStyle (123)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
196_hashedSymbols.Add(member);
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (8)
378categoryBuilder.Add(trimmedPart); 382idBuilder.Add(trimmedPart); 410analyzersBuilder.Add(analyzer); 435unhandledIds.Add(descriptor.Id); 441analyzersBuilder.Add(analyzer); 499reportedDiagnostics.Add(diagnostic); 656diagnosticsBuilder.Add(diagnostic); 671diagnosticsBuilder.Add(diagnostic);
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
65builder.Add((propertyReference.Property.Name, simpleAssignment.Value));
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
694builder.Add(value);
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerAnalyzer.cs (1)
125postMatches.Add(match.Value);
src\Analyzers\Core\Analyzers\UseObjectInitializer\UseNamedMemberInitializerAnalyzer.cs (1)
167postMatches.Add(new Match<TExpressionSyntax, TStatementSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax>(
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (7)
94builder.Add(map(item)); 134builder.Add(map(item, arg)); 174builder.Add(map(item, builder.Count, arg)); 186builder.Add(item); 195builder.Add(e); 232builder.Add(value.Value); 241builder.Add(value);
src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (1)
88values.Add(value);
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (10)
194builder.Add(map(items[i], i, arg)); 222builder.Add(selector(item)); 252builder.Add(selector(item, arg)); 456builder.Add(map(self[i], other[i], i, arg)); 505builder.Add(a); 523builder.Add(array[j]); 758builder.Add(a); 1089arrayBuilder.Add((T)existingValueOrArray); 1093arrayBuilder.Add(item); 1186builder.Add(namedType);
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
322arrayBuilder.Add((V)_value); 323arrayBuilder.Add(item); 327arrayBuilder.Add(item);
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (4)
160_builder.Add(item); 172_builder.Add(item); 213_builder.Add(item); 338builder.Add(this[i]);
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (6)
192results.Add(method); 233results.Add(singleResult); 326builder.Add(parameter.Value); 671builder.Add(type.Value); 759builder.Add(methodSymbol); 767builder.Add(methodSymbol);
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (4)
377builder.Add(selector(element, index)); 459builder.Add(await selector(item).ConfigureAwait(false)); 474builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 489builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
102builder.Add(_one);
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
36_elements!.Add(value);
src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (1)
401builder.Add(change);
src\Dependencies\PooledObjects\ArrayBuilder.cs (8)
377tmp.Add((U)i!); 481builder.Add(fillWithValue); 545bucket.Add(item); 583Add(items[i]); 603Add(items[i]); 618Add(items[i]); 662Add(item); 716result.Add(selected);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\NamingStyles\NamingStyleOptionAccumulator.cs (1)
34_rules.Add(new NamingStyleOption(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher_TryParseSection.cs (1)
121numberRangePairs.Add(pair);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICollectionExtensions.cs (1)
21result.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (3)
29builder.Add(reference.Compilation); 35builder.Add(previous); 65builder.Add(previous.Assembly);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
441results.Add(member);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
917condDirectivesBuilder.Add(directive); 921condDirectivesBuilder.Add(poppedDirective);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
46unreachableBlocksToVisit.Add(blocks[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
176=> _allocatedBasicBlockAnalysisDatas.Add(allocatedData);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (5)
263result.Add(trivia); 777changes.Add(CreateEndOfLine()); 788changes.Add(CreateWhitespace(delta.Spaces.CreateIndentationString(Options.UseTabs, Options.TabSize))); 793changes.Add(CreateWhitespace(GetSpaces(delta.Spaces))); 829changes.Add(new TextChange(span, newText));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\TriviaHelpers.cs (1)
21builder.Add(triviaList[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
33symbolSpecifications.Add(symbolSpec); 34namingStyles.Add(namingStyle); 35namingRules.Add(serializableNamingRule);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (26)
159builder.Add(_class); 162builder.Add(_struct); 165builder.Add(_interface); 168builder.Add(_enum); 171builder.Add(_property); 174builder.Add(_method); 177builder.Add(_localFunction); 180builder.Add(_field); 183builder.Add(_event); 186builder.Add(_delegate); 189builder.Add(_parameter); 192builder.Add(_typeParameter); 195builder.Add(_namespace); 198builder.Add(_local); 252builder.Add(Accessibility.Public); 256builder.Add(Accessibility.Internal); 259builder.Add(Accessibility.Private); 262builder.Add(Accessibility.Protected); 266builder.Add(Accessibility.ProtectedOrInternal); 269builder.Add(Accessibility.ProtectedAndInternal); 272builder.Add(Accessibility.NotApplicable); 323builder.Add(s_abstractModifierKind); 326builder.Add(s_asyncModifierKind); 329builder.Add(s_constModifierKind); 332builder.Add(s_readonlyModifierKind); 336builder.Add(s_staticModifierKind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (2)
219violations.Add(Substring(name, wordSpan)); 272violations.Add(Substring(name, wordSpan));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (3)
295applicableSymbolKindList.Add(SymbolKindOrTypeKind.AddSymbolKindFromXElement(symbolKindElement)); 300applicableSymbolKindList.Add(SymbolKindOrTypeKind.AddTypeKindFromXElement(typeKindElement)); 305applicableSymbolKindList.Add(SymbolKindOrTypeKind.AddMethodKindFromXElement(methodKindElement));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (2)
138selectedMembers.Add(decl); 157selectedMembers.Add(decl);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (2)
30result.Add(location); 34result.Add(syntaxRef.GetSyntax(cancellationToken).GetLocation());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
58builder.Add(namespaceSymbol.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PooledArrayBuilder.cs (1)
28Builder.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
213builder.Builder.Add(readFunction(out var elementFailureReason));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (3)
31friendlyNames.Add(element.IsImplicitlyDeclared ? null : element.Name); 32locations.Add(element.Locations.FirstOrDefault() ?? Location.None); 44elementTypes.Add(element.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
40result.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
85builder.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
52items.Add(item);