28 references to AddRange
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
1563var compilation = CSharpCompilation.Create("Test", [s_implicitUsingsSyntaxTree, s_attributesSyntaxTree, sourceSyntaxTree], s_defaultReferences.AddRange(references), compilationOptions);
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginServiceBenchmarks.cs (1)
43.AddRange(EditorTestCompositions.EditorFeatures.Assemblies)
Microsoft.CodeAnalysis (4)
CommandLine\CommonCompiler.cs (1)
1197embeddedTexts = embeddedTexts.AddRange(embeddedTextBuilder);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (2)
295return diagnostics.AddRange(_exceptionDiagnostics); 377analyzers = analyzers.AddRange(suppressors.Where(suppressor => !suppressorsInAnalysisScope.Contains(suppressor)));
ReferenceManager\CommonReferenceManager.Binding.cs (1)
341allAssemblies = explicitAssemblies.AddRange(implicitAssemblies);
Microsoft.CodeAnalysis.CSharp (1)
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
502AddRange(currentAwaitCatchFrame.GetHoistedLocals()),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\ReferenceManagerTests.cs (1)
831references = TargetFrameworkUtil.StandardReferences.AddRange(references);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.cs (1)
89return GetOrCreateHostStateSets(project, projectStateSets).OrderedStateSets.AddRange(projectStateSets.StateSetMap.Values);
Microsoft.CodeAnalysis.Test.Utilities (1)
TargetFrameworkUtil.cs (1)
342return references.AddRange(additionalReferences);
Microsoft.CodeAnalysis.UnitTests (4)
Collections\ImmutableArrayExtensionsTests.cs (4)
285Assert.Equal(empty, empty.AddRange((IEnumerable<int>)empty)); 286Assert.Equal(a, a.AddRange((IEnumerable<int>)empty)); 287Assert.True(a.SequenceEqual(empty.AddRange((IEnumerable<int>)a))); 288Assert.True(a.AddRange((IEnumerable<int>)a).SequenceEqual(ImmutableArray.Create<int>(0, 2, 4, 0, 2, 4)));
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\ProjectSystem\ProjectSystemProjectFactory.ProjectUpdateState.cs (2)
128=> this with { RemovedAnalyzerReferences = RemovedAnalyzerReferences.AddRange(references) }; 134=> this with { AddedAnalyzerReferences = AddedAnalyzerReferences.AddRange(references) };
Workspace\Solution\SolutionState.cs (1)
1211var newReferences = oldReferences.AddRange(analyzerReferences);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
TestAnalyzerReferenceByLanguage.cs (1)
51kvp.Key, kvp.Key == language ? kvp.Value.AddRange(analyzers) : kvp.Value)));
Microsoft.Interop.ComInterfaceGenerator (2)
VirtualMethodPointerStubGenerator.cs (2)
94methodStub.Diagnostics.Array.AddRange(diagnostics.Diagnostics)); 174methodStub.Diagnostics.Array.AddRange(diagnostics.Diagnostics));
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSExportGenerator.cs (1)
332incrementalContext.Diagnostics.Array.AddRange(diagnostics.Diagnostics));
JSImportGenerator.cs (1)
211return (PrintGeneratedSource(incrementalContext.StubMethodSyntaxTemplate, incrementalContext.SignatureContext, incrementalContext.ContainingSyntaxContext, code), incrementalContext.Diagnostics.Array.AddRange(diagnostics.Diagnostics));
Microsoft.Interop.LibraryImportGenerator (3)
LibraryImportGenerator.cs (3)
333return (PrintForwarderStub(pinvokeStub.StubMethodSyntaxTemplate, explicitForwarding: true, pinvokeStub, diagnostics), pinvokeStub.Diagnostics.Array.AddRange(diagnostics.Diagnostics)); 355return (PrintForwarderStub(pinvokeStub.StubMethodSyntaxTemplate, explicitForwarding: false, pinvokeStub, diagnostics), pinvokeStub.Diagnostics.Array.AddRange(diagnostics.Diagnostics)); 379return (pinvokeStub.ContainingSyntaxContext.WrapMemberInContainingSyntaxWithUnsafeModifier(PrintGeneratedSource(pinvokeStub.StubMethodSyntaxTemplate, pinvokeStub.SignatureContext, code)), pinvokeStub.Diagnostics.Array.AddRange(diagnostics.Diagnostics));
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
DownlevelLibraryImportGenerator.cs (2)
250return (PrintForwarderStub(pinvokeStub.StubMethodSyntaxTemplate, pinvokeStub, diagnostics), pinvokeStub.Diagnostics.Array.AddRange(diagnostics.Diagnostics)); 273return (pinvokeStub.ContainingSyntaxContext.WrapMemberInContainingSyntaxWithUnsafeModifier(PrintGeneratedSource(pinvokeStub.StubMethodSyntaxTemplate, pinvokeStub.SignatureContext, code)), pinvokeStub.Diagnostics.Array.AddRange(diagnostics.Diagnostics));
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableArray_1.cs (1)
1095return self.AddRange(items);