67 references to AddRange
Microsoft.CodeAnalysis (25)
Collections\ImmutableArrayExtensions.cs (1)
813return first.AddRange(second);
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActions.cs (1)
75var newGroupedActions = GroupedActionsByAnalyzer.AddRange(groupedAnalyzerActions.GroupedActionsByAnalyzer);
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
274result = result.AddRange(attributeSupportedLanguages);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (2)
315var reportedDiagnostics = compDiags.AddRange(analyzerDiags); 952compilationEvents = compilationEventsForTree.AddRange(compilationEvents);
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (17)
982actions._compilationStartActions = _compilationStartActions.AddRange(otherActions._compilationStartActions); 983actions._compilationEndActions = _compilationEndActions.AddRange(otherActions._compilationEndActions); 984actions._compilationActions = _compilationActions.AddRange(otherActions._compilationActions); 985actions._syntaxTreeActions = _syntaxTreeActions.AddRange(otherActions._syntaxTreeActions); 986actions._additionalFileActions = _additionalFileActions.AddRange(otherActions._additionalFileActions); 987actions._semanticModelActions = _semanticModelActions.AddRange(otherActions._semanticModelActions); 988actions._symbolActions = _symbolActions.AddRange(otherActions._symbolActions); 989actions._symbolStartActions = appendSymbolStartAndSymbolEndActions ? _symbolStartActions.AddRange(otherActions._symbolStartActions) : _symbolStartActions; 990actions._symbolEndActions = appendSymbolStartAndSymbolEndActions ? _symbolEndActions.AddRange(otherActions._symbolEndActions) : _symbolEndActions; 991actions._codeBlockStartActions = _codeBlockStartActions.AddRange(otherActions._codeBlockStartActions); 992actions._codeBlockEndActions = _codeBlockEndActions.AddRange(otherActions._codeBlockEndActions); 993actions._codeBlockActions = _codeBlockActions.AddRange(otherActions._codeBlockActions); 994actions._syntaxNodeActions = _syntaxNodeActions.AddRange(otherActions._syntaxNodeActions); 995actions._operationActions = _operationActions.AddRange(otherActions._operationActions); 996actions._operationBlockStartActions = _operationBlockStartActions.AddRange(otherActions._operationBlockStartActions); 997actions._operationBlockEndActions = _operationBlockEndActions.AddRange(otherActions._operationBlockEndActions); 998actions._operationBlockActions = _operationBlockActions.AddRange(otherActions._operationBlockActions);
SourceGeneration\GeneratorDriver.cs (3)
88var newState = _state.With(sourceGenerators: _state.Generators.AddRange(generators), 89incrementalGenerators: _state.IncrementalGenerators.AddRange(incrementalGenerators), 137var newState = _state.With(additionalTexts: _state.AdditionalTexts.AddRange(additionalTexts));
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (2)
127additionalLocations.AddRange(additionalUnnecessaryLocations), 198additionalLocations.AddRange(additionalUnnecessaryLocations),
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
813return first.AddRange(second);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
192return InstanceConstructors.AddRange(StaticConstructors);
Microsoft.CodeAnalysis.CSharp (5)
Binder\Imports.cs (1)
186var usings = this.Usings.AddRange(otherImports.Usings).Distinct(UsingTargetComparer.Instance);
BoundTree\Expression.cs (1)
149protected override ImmutableArray<BoundNode?> Children => StaticCast<BoundNode?>.From(this.Arguments.AddRange(BoundObjectCreationExpression.GetChildInitializers(this.InitializerExpressionOpt)));
Lowering\SpillSequenceSpiller.cs (1)
719locals = locals.AddRange(builder.GetLocals());
Symbols\ReferenceManager.cs (2)
401var references = explicitReferences.AddRange(implicitlyResolvedReferences); 402referenceMap = referenceMap.AddRange(implicitlyResolvedReferenceMap);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
137additionalLocations = additionalLocations.AddRange(referenceLocations);
Microsoft.CodeAnalysis.CSharp.Features (2)
EditAndContinue\DeclarationBody\OrdinaryInstanceConstructorWithExplicitInitializerDeclarationBody.cs (1)
30=> model.AnalyzeDataFlow(Initializer)!.CapturedInside.AddRange(model.AnalyzeDataFlow(Body).CapturedInside).Distinct();
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
137additionalLocations = additionalLocations.AddRange(referenceLocations);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
ExpressionCompiler.cs (1)
243references = references.AddRange(newReferences);
Microsoft.CodeAnalysis.Features (4)
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
115var defaultPathBasedOnCurrentFolder = currentFolder.AddRange(parts);
Completion\CommonCompletionItem.cs (1)
37tags = GlyphTags.GetTags(glyph.Value).AddRange(tags);
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (2)
127additionalLocations.AddRange(additionalUnnecessaryLocations), 198additionalLocations.AddRange(additionalUnnecessaryLocations),
Microsoft.CodeAnalysis.LanguageServer (1)
Program.cs (1)
115analyzerPaths = analyzerPaths.AddRange(extensionManager.ExtensionAssemblyPaths);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Diagnostics\Public\PublicDocumentPullDiagnosticsHandler_IOnInitialized.cs (1)
39.AddRange(workspaceSources)
Microsoft.CodeAnalysis.Remote.Workspaces (2)
Serialization\MessagePackFormatters.cs (2)
41=> (additionalFormatters.IsEmpty && additionalResolvers.IsEmpty) ? DefaultResolver : CompositeResolver.Create(Formatters.AddRange(additionalFormatters), s_resolvers.AddRange(additionalResolvers));
Microsoft.CodeAnalysis.UnitTests (4)
Collections\ImmutableArrayExtensionsTests.cs (4)
280Assert.Equal(empty, empty.AddRange(empty)); 281Assert.Equal(a, a.AddRange(empty)); 282Assert.Equal(a, empty.AddRange(a)); 283Assert.True(a.AddRange(a).SequenceEqual(ImmutableArray.Create<int>(0, 2, 4, 0, 2, 4)));
Microsoft.CodeAnalysis.VisualBasic (4)
Binding\Binder_Query.vb (1)
3956ImmutableArray.Create(m_GroupReference).AddRange(arguments),
BoundTree\Expression.vb (1)
79Return StaticCast(Of BoundNode).From(Me.ConstructorArguments.AddRange(Me.NamedArguments))
Symbols\ReferenceManager.vb (2)
348Dim references = explicitReferences.AddRange(implicitlyResolvedReferences) 349referenceMap = referenceMap.AddRange(implicitlyResolvedReferenceMap)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\CompletionProviders\ImplementsClauseCompletionProvider.vb (1)
188.AddRange([interface].GetMembers())
Microsoft.CodeAnalysis.Workspaces (5)
Diagnostics\HostDiagnosticAnalyzers.cs (1)
110builder[displayName] = existing.AddRange(descriptors);
FindSymbols\FindReferences\BaseTypeFinder.cs (1)
15=> FindBaseTypes(type).AddRange(type.AllInterfaces);
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
813return first.AddRange(second);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
192return InstanceConstructors.AddRange(StaticConstructors);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (1)
57this.GetSpecializedIndentationFormattingRule(options.IndentStyle)).AddRange(
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
813return first.AddRange(second);
Microsoft.Interop.ComInterfaceGenerator (3)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
122Diagnostics = managedToUnmanagedGenerator.Diagnostics.AddRange(unmanagedToManagedGenerator.Diagnostics)
VtableIndexStubGenerator.cs (2)
375methodStub.Diagnostics.Array.AddRange(diagnostics)); 388methodStub.Diagnostics.Array.AddRange(diagnostics));
Microsoft.Interop.SourceGeneration (2)
GeneratedStatements.cs (1)
39.AddRange(GenerateStatementsForStubContext(marshallers, context with { CurrentStage = StubIdentifierContext.Stage.Unmarshal })),
IncrementalValuesProviderExtensions.cs (1)
57return first.Collect().Combine(second.Collect()).SelectMany((data, ct) => data.Left.AddRange(data.Right));
Microsoft.VisualStudio.LanguageServices (1)
UnusedReferences\Dialog\UnusedReferencesTableProvider.DataSource.cs (1)
46_currentEntries = _currentEntries.AddRange(entries);