Implemented interface member:
247 references to Add
Microsoft.CodeAnalysis.Workspaces (247)
Classification\Classifier.cs (1)
139parts.Add(new SymbolDisplayPart(kind.Value, null, sourceText.ToString(span.TextSpan)));
CodeActions\CodeAction_Cleanup.cs (1)
98documentIdsAndOptions.Add((documentId, codeActionOptions));
CodeCleanup\AbstractCodeCleanerService.cs (1)
139builder.Add(span);
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (2)
222tasks.Add(Task.Run( 242codeActions.Add(currentAction);
Diagnostics\DiagnosticAnalysisResult.cs (1)
140diagnosticsWithoutDocumentId.Add(data);
Diagnostics\Extensions.cs (2)
392document, documentAnalysisScope.Span, diagnosticsBuilder.Add, cancellationToken).ConfigureAwait(false); 418document, span: null, diagnosticsBuilder.Add, cancellationToken).ConfigureAwait(false);
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (1)
193matches.Add(token);
FindSymbols\FindReferences\BaseTypeFinder.cs (2)
48results.Add(member); 87typesBuilder.Add(currentType);
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
358uncomputedReferences.Add((peReference, metadataId));
FindSymbols\FindReferences\Finders\AbstractMemberScopedReferenceFinder.cs (1)
120tokens.Add(token);
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (7)
79symbols.Add(invokeMethod.Parameters[parameter.Ordinal]); 152results.Add(symbol); 196results.Add(containingProperty.GetMethod.Parameters[ordinal]); 199results.Add(containingProperty.SetMethod.Parameters[ordinal]); 237results.Add(parameters.Value[ordinal]); 249results.Add(method.PartialDefinitionPart.Parameters[ordinal]); 252results.Add(method.PartialImplementationPart.Parameters[ordinal]);
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (2)
59result.Add(field); 98result.Add(parameter);
FindSymbols\FindReferences\FindReferenceCache.cs (3)
173result.Add(token); 203result.Add(token); 231initializers.Add(token);
FindSymbols\FindReferences\StandardCallbacks.cs (1)
17static (data, builder) => builder.Add(data);
FindSymbols\SymbolFinder_Hierarchy.cs (2)
70results.Add(bestMember); 379results.Add(bestDef.OriginalDefinition);
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (1)
746unsortedNodes.Add(childNode);
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (1)
209nodes.Add(new Node(name, parentIndex));
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (3)
113allChecksums.Add(SerializationFormatChecksum); 158list.Add(node); 191list.Add(new BuilderNode(childMemberName, nodeIndex));
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (2)
148tasks.Add(CreateWorkAsync(() => this.UpdateSourceSymbolTreeInfoAsync(project, cancellationToken), cancellationToken)); 153tasks.Add(CreateWorkAsync(() => UpdateReferenceAsync(project, reference, cancellationToken), cancellationToken));
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (2)
244declaredSymbolInfos.Add(GetEnumDeclarationInfo( 357arrayBuilder.Add(declaredSymbolInfoIndex);
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (1)
84commentChanges.Add(new TextChange(TextSpan.FromBounds(startLineStartPosition, startLineStartPosition), warningText));
LinkedFileDiffMerging\LinkedFileDiffMergingSession.cs (13)
154successfullyMergedChanges.Add(cumulativeChanges[cumulativeChangeIndex]); 164successfullyMergedChanges.Add(change); 172unmergedDocumentChanges.Add(change); 177successfullyMergedChanges.Add(change); 185successfullyMergedChanges.Add(change); 192successfullyMergedChanges.Add(cumulativeChanges[cumulativeChangeIndex]); 198unmergedChanges.Add(new UnmergedDocumentChanges( 227mergeConflictResolutionSpans.Add(new TextSpan(commentChangesList[commentChangeIndex].Span.Start + currentPositionDelta, commentChangesList[commentChangeIndex].NewText!.Length)); 244combinedChanges.Add(new TextChange(conflictingCommentInsertionLocation, commentChangesList[commentChangeIndex].NewText!)); 245mergeConflictResolutionSpans.Add(new TextSpan(commentChangesList[commentChangeIndex].Span.Start + currentPositionDelta, commentChangesList[commentChangeIndex].NewText!.Length)); 260mergeConflictResolutionSpans.Add(new TextSpan(commentChangesList[commentChangeIndex].Span.Start + currentPositionDelta, commentChangesList[commentChangeIndex].NewText!.Length)); 286normalizedChanges.Add(currentChange); 291normalizedChanges.Add(currentChange);
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (4)
67stack.Add(root.FindNode(span)); 79stack.Add(childNode); 98stack.Add(trivia.GetStructure()!); 106result.Add(span);
Options\GlobalOptionService.cs (1)
206changedOptions.Add((optionKey, value));
PatternMatching\CamelCaseResult.cs (1)
41MatchedSpansInReverse?.Add(value);
ReassignedVariable\AbstractReassignedVariableService.cs (7)
69stack.Add(root.FindNode(span)); 84stack.Add(childNode); 131result.Add(identifier.Span); 138result.Add(syntaxFacts.GetIdentifierOfParameter(parameterSyntax).Span); 145result.Add(GetIdentifierOfVariable(variable).Span); 152result.Add(GetIdentifierOfSingleVariableDesignation(designation).Span); 309stack.Add(childNode);
Recommendations\AbstractRecommendationServiceRunner.cs (5)
164concreteTypes.Add(concreteType ?? typeParameter); 168concreteTypes.Add(parameterTypeSymbol); 229builder.Add(parameters[ordinalInLambda].Type); 300builder.Add(systemNamespace); 422result.Add(member);
Remote\RemoteUtilities.cs (1)
37builder.Add((docId, textChanges.ToImmutableArray()));
Rename\ConflictEngine\DeclarationConflictHelpers.cs (3)
108resultBuilder.Add(signatureBuilder.ToImmutable()); 111signatureBuilder.Add(parameter.Type); 114resultBuilder.Add(signatureBuilder.ToImmutableAndFree());
Rename\SymbolicRenameLocations.cs (1)
120overloadsResult.Add(await AddLocationsReferenceSymbolsAsync(overloadedSymbol, solution, cancellationToken).ConfigureAwait(false));
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
240results.Add(new RenameLocation(location, document.Id, isRenamableAccessor: isRenamableAccessor)); 425renameLocations.Add(renameLocation);
Serialization\SerializationExtensions.cs (2)
77builder.Add(PathUtilities.GetDirectoryName(info.FilePath)!); 83builder.Add(PathUtilities.GetDirectoryName(info.OutputFilePath)!);
Shared\Extensions\IFindReferencesResultExtensions.cs (1)
139result.Add(reference);
Shared\Extensions\ILanguageMetadataExtensions.cs (2)
38list.Add(service); 56list.Add(service);
Shared\Extensions\ISolutionExtensions.cs (1)
31results.Add(compilation.Assembly.GlobalNamespace);
Shared\Extensions\ITypeSymbolExtensions.cs (1)
117builder.Add(result);
Shared\Utilities\AsyncBatchingWorkQueue`2.cs (1)
144items.Add(item);
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)); 527builder.Add(map(self[i], other[i], i, arg)); 576builder.Add(a); 594builder.Add(array[j]); 829builder.Add(a); 1160arrayBuilder.Add((T)existingValueOrArray); 1164arrayBuilder.Add(item); 1257builder.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\AnalyzerAssemblyLoader.Core.cs (1)
105contexts.Add(context);
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (4)
377builder.Add(selector(element, index)); 487builder.Add(await selector(item).ConfigureAwait(false)); 502builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 517builder.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(rule);
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\ISymbolExtensions.cs (1)
159result.Add(interfaceMember);
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 (2)
29namingRules.Add((rule.Value, priority, namingRuleTitle)); 70serializableRules.Add(new SerializableNamingRule
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (26)
138builder.Add(s_class); 141builder.Add(s_struct); 144builder.Add(s_interface); 147builder.Add(s_enum); 150builder.Add(s_property); 153builder.Add(s_method); 156builder.Add(s_localFunction); 159builder.Add(s_field); 162builder.Add(s_event); 165builder.Add(s_delegate); 168builder.Add(s_parameter); 171builder.Add(s_typeParameter); 174builder.Add(s_namespace); 177builder.Add(s_local); 216builder.Add(Accessibility.Public); 220builder.Add(Accessibility.Internal); 223builder.Add(Accessibility.Private); 226builder.Add(Accessibility.Protected); 230builder.Add(Accessibility.ProtectedOrInternal); 233builder.Add(Accessibility.ProtectedAndInternal); 236builder.Add(Accessibility.NotApplicable); 272builder.Add(s_abstractModifierKind); 275builder.Add(s_asyncModifierKind); 278builder.Add(s_constModifierKind); 281builder.Add(s_readonlyModifierKind); 285builder.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);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
579updatedModifiersList.Add(newModifier);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (2)
127triviaList.Add(syntaxFacts.ElasticCarriageReturnLineFeed); 145triviaList.Add(lastWhitespace);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (2)
130nodesToSimplify.Add(node); 143importsToAdd.Add(namespaceSyntax);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (6)
301result.Add(CodeGenerationSymbolFactory.CreateFieldSymbol( 323result.Add(CodeGenerationSymbolFactory.CreatePropertySymbol( 370assignStatements.Add(statement); 413assignStatements.Add(CreateAssignWithNullCheckStatement( 421nullCheckStatements.Add( 426assignStatements.Add(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (11)
146expressions.Add( 198expressions.Add(factory.InvocationExpression( 240expressions.Add(factory.ValueEqualsExpression(thisSymbol, otherSymbol)); 252expressions.Add(factory.InvocationExpression( 262expressions.Add(factory.InvocationExpression( 301expressions.Add(factory.InvocationExpression( 316statements.Add(factory.ReturnStatement( 329expressions.Add(factory.ReferenceNotEqualsExpression(otherNameExpression, nullLiteral)); 336expressions.Add( 344expressions.Add( 353expressions.Add(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (8)
29result.Add(factory.InvocationExpression( 35result.Add(GetMemberForGetHashCode(factory, generatorInternal, compilation, member, justMemberReference)); 56statements.Add(factory.SimpleLocalDeclarationStatement(generatorInternal, 62statements.Add(factory.ExpressionStatement( 68statements.Add(factory.ReturnStatement( 135statements.Add(!useInt64 157statements.Add(factory.ExpressionStatement( 162statements.Add(!useInt64
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
27siblings.Add((method.Parameters[i], before: true)); 32siblings.Add((method.Parameters[i], before: false));
TaskList\TaskListItemDescriptor.cs (1)
57result.Add(new TaskListItemDescriptor(token, priority));
Workspace\Host\DocumentService\AbstractSpanMappingService.cs (1)
43mappedFilePathAndTextChange.Add((mappedSpanResults[i].FilePath, newTextChange));
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (1)
131checksumsToRemove.Add(checksum);
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
408documentsToChange.Add((documentId, new WorkspaceFileTextLoader(_project._projectSystemProjectFactory.SolutionServices, filePath, defaultEncoding: null)));
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
802initialReferenceList.Add(new AnalyzerFileReference(analyzer, sharedShadowCopyLoader));
Workspace\Solution\Solution.cs (2)
363projectInfos.Add(projectInfo); 375projectIds.Add(projectId);
Workspace\Solution\SolutionCompilationState.cs (7)
630updatedDocuments.Add(newDocumentState); 635addedDocumentInfos.Add(newDocumentInfo); 646removedDocumentInfos.Add(oldDocumentId); 819newDocumentStates.Add(newDocumentState); 1603documentStates.Add(documentState); 1713removedDocumentStates.Add(oldDocumentStates.GetRequiredState(documentId)); 1804changedDocuments.Add((documentId, text));
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (4)
770documentsWithTreesBuilder.Add(documentState); 788alreadyParsedTrees.Add(alreadyParsedTree); 1112tempChecksumArray.Add(projectChecksum); 1133tempChecksumArray.Add(referencedProjectChecksum);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
260treesToRemove.Add(await documentState.Value.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false));
Workspace\Solution\SolutionState.cs (1)
334projectStates.Add(CreateProjectState(projectInfo));
Workspace\Solution\SolutionState_Checksum.cs (1)
128projectChecksumTasks.Add(projectState.GetStateChecksumsAsync(cancellationToken));
Workspace\Solution\SourceGeneratorExecutionVersion.cs (2)
112checksums.Add(projectId.Checksum); 113checksums.Add(Checksum.Create(version, static (v, w) => v.WriteTo(w)));
Workspace\Solution\SourceGeneratorIdentity.cs (1)
44result.Add(Create(generator, analyzerReference));
Workspace\Workspace.cs (2)
361relatedDocumentIdsAndStates.Add((addedDocumentId, relatedDocument.DocumentState)); 750builder.Add(project);