100 references to Create
Analyzer.Utilities.UnitTests (6)
Options\SymbolNamesWithValueOptionTests.cs (6)
59var symbolNames = ImmutableArray.Create("MyNamespace", "MyClass", "MyMethod()", "MyProperty", "MyEvent", "MyField"); 87var symbolNames = ImmutableArray.Create( 121var symbolNames = ImmutableArray.Create( 143var symbolNames = ImmutableArray.Create( 185var symbolNames = ImmutableArray.Create( 214var symbolNames = ImmutableArray.Create(
Microsoft.AspNetCore.App.Analyzers.Test (1)
Verifiers\CSharpAnalyzerVerifier.cs (1)
64return net10Ref.AddAssemblies(ImmutableArray.Create(
Microsoft.Build.Framework (1)
HashHelpers.cs (1)
38private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis (3)
InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
Operations\ControlFlowGraphBuilder.cs (1)
6063var validKinds = ImmutableArray.Create(OperationKind.Invocation, OperationKind.DynamicInvocation, OperationKind.Increment, OperationKind.Literal,
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.Analyzers (2)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (1)
174public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
MetaAnalyzers\RegisterActionAnalyzer.cs (1)
107public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.CodeAnalysis.Analyzers.UnitTests (1)
MetaAnalyzers\CompareSymbolsCorrectlyTests.cs (1)
1657=> ReferenceAssemblies.NetCore.NetCoreApp31.AddPackages(ImmutableArray.Create(
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\WebInputSources.cs (1)
31var dependencyFullTypeNames = ImmutableArray.Create(WellKnownTypeNames.MicrosoftAspNetCoreMvcControllerBase,
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.Collections.Package (1)
Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.CSharp (2)
Compiler\MethodBodySynthesizer.cs (1)
517statements: ImmutableArray.Create<BoundStatement>(
Symbols\Compilation_WellKnownMembers.cs (1)
470ImmutableArray.Create(
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
12ImmutableArray.Create(
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Classification\SemanticClassifierTests_TestMarkup.cs (1)
144var expected = ImmutableArray.Create(Keyword("class"),
SignatureHelp\GenericNameSignatureHelpProviderTests.cs (1)
1005classificationTypeNames: ImmutableArray.Create(
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (24)
CodeGen\CodeGenFunctionPointersTests.cs (1)
12623publicKeyOrToken: metadata.GetOrAddBlob(ImmutableArray.Create<byte>(0xB7, 0x7A, 0x5C, 0x56, 0x19, 0x34, 0xE0, 0x89)),
CodeGen\CodeGenTupleTest.cs (23)
6083var tuple8WithNames = comp.CreateTupleTypeSymbol(vt8, ImmutableArray.Create("Alice1", "Alice2", "Alice3", "Alice4", "Alice5", "Alice6", "Alice7", "Alice8")); 6133var tuple9WithNames = comp.CreateTupleTypeSymbol(vt9, ImmutableArray.Create("Alice1", "Alice2", "Alice3", "Alice4", "Alice5", "Alice6", "Alice7", "Alice8", "Alice9")); 6165var tuple9WithNames = comp.CreateTupleTypeSymbol(vt9, ImmutableArray.Create("Item1", "Item2", "Item3", "Item4", "Item5", "Item6", "Item7", "Item8", "Item9")); 6483ImmutableArray.Create("Alice1", "Alice2", "Alice3", "Alice4", "Alice5", "Alice6", "Alice7", "Alice8")); 6524ImmutableArray.Create("Alice1", "Alice2", "Alice3", "Alice4", "Alice5", "Alice6", "Alice7", "Alice8", "Alice9")); 6610var tuple3 = comp.CreateTupleTypeSymbol(ImmutableArray.Create<ITypeSymbol>(intType, intType, intType, intType, intType, intType, intType, stringType, stringType), 6611ImmutableArray.Create("Item1", "Item2", "Item3", "Item4", "Item5", "Item6", "Item7", "a", "b")); 6613var tuple4 = comp.CreateTupleTypeSymbol(tuple1, ImmutableArray.Create("Item1", "Item2", "Item3", "Item4", "Item5", "Item6", "Item7", "a", "b")); 13645ImmutableArray.Create("a", "b", "c", "d", "e", "f", "g", "h", "i")); 13647ImmutableArray.Create("a", "b", "c", "d", "e", "f", "g", "h", "i")); 13649ImmutableArray.Create("a", "b", "c", "d", "e", "f", "g", "i", "h")); 13665ImmutableArray.Create("Item1", "Item2", "Item3", "Item4", "Item5", "Item6", "Item7", "Item8", "Item9")); 13667ImmutableArray.Create("Item1", "Item2", "Item3", "Item4", "Item5", "Item6", "Item7", "Item8", "Item9")); 13678ImmutableArray.Create("Item1", "Item2", "Item3", "Item4", "Item5", "Item6", "Item7", "Item9", "Item8")); 13691ImmutableArray.Create("a", "b", "c", "d", "e", "f", "g", "Item1", "Item2")); 13693ImmutableArray.Create("a", "b", "c", "d", "e", "f", "g", "Item1", "Item2")); 13759ImmutableArray.Create("Item1", "Item2", "Item3", "Item4", "Item5", "Item6", "Item7", "Item8", "Item9")); 13820ImmutableArray.Create("Item1", "Item2", "Item3", "Item4", "Item5", "Item6", "Item7", "Item8", "item9")); 28996elementLocations: ImmutableArray.Create<Location>(null, null, null, null, null, null, null, null, null), 28997elementNames: ImmutableArray.Create("a", "b", "c", "d", "e", "f", "g", "h", "i"), 29001errorPositions: ImmutableArray.Create(true, true, true, true, true, true, true, true, true)); 29014elementLocations: ImmutableArray.Create<Location>(null, null, null, null, null, null, null, null, null), 29019errorPositions: ImmutableArray.Create(true, true, true, true, true, true, true, true, true));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Emit\EditAndContinue\EditAndContinueTests.cs (3)
281ImmutableArray.Create( 7451ImmutableArray.Create( 7476ImmutableArray.Create(
PDB\PDBUsingTests.cs (1)
1786new CSharpCompilationReference(compilation1, ImmutableArray.Create("global", "B", "A", "A", "global"))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Attributes\AttributeTests_NativeInteger.cs (1)
1386AssertEx.Equal(ImmutableArray.Create(true, true, true, false, true, true), reader.ReadBoolArray(customAttribute.Value));
Attributes\AttributeTests_Nullable.cs (3)
4758AssertEx.Equal(ImmutableArray.Create<byte>(0, 0, 2, 0, 2, 0, 0, 0, 0, 2, 0, 2), reader.ReadByteArray(customAttribute.Value)); 4767AssertEx.Equal(ImmutableArray.Create<byte>(0, 2, 0, 2, 0, 2, 0, 2, 0, 0, 2), reader.ReadByteArray(customAttribute.Value)); 4902var expectedBits = ImmutableArray.Create<byte>(0, 2, 0, 1, 2, 1, 2, 1, 2, 1, 0, 2);
Diagnostics\DiagnosticAnalyzerTests.cs (1)
763get { return ImmutableArray.Create(Descriptor1, Descriptor2, Descriptor3, Descriptor4, Descriptor5, Descriptor6); }
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
12ImmutableArray.Create(
Microsoft.CodeAnalysis.Extensions.Package (2)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\ActiveStatementsMapTests.cs (2)
34var array = ImmutableArray.Create( 50var array = ImmutableArray.Create(
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Completion\CompletionTests.cs (1)
357completionParams, document, preselect: true, commitCharacters: ImmutableArray.Create(' ', '(', '[', '{', ';', '.')).ConfigureAwait(false);
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
DeclarePublicApiAnalyzer_Diagnostics.cs (1)
280ImmutableArray.Create(
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
1963return ImmutableArray.Create(
Diagnostics\OperationTestAnalyzer.cs (1)
1021ImmutableArray.Create(EventReferenceDescriptor,
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.UnitTests (23)
Collections\ImmutableArrayExtensionsTests.cs (16)
271Assert.True(a.Concat(a).SequenceEqual(ImmutableArray.Create<int>(0, 2, 4, 0, 2, 4))); 283Assert.True(a.AddRange(a).SequenceEqual(ImmutableArray.Create<int>(0, 2, 4, 0, 2, 4))); 288Assert.True(a.AddRange((IEnumerable<int>)a).SequenceEqual(ImmutableArray.Create<int>(0, 2, 4, 0, 2, 4))); 301Assert.True(a.InsertRange(2, a).SequenceEqual(ImmutableArray.Create<int>(0, 2, 0, 2, 4, 4))); 382AssertEx.Equal(new[] { 10, 20, 30, 40, 50 }, ImmutableArray.Create(1, 2, 3, 4, 5).SelectAsArray(i => 10 * i)); 390var array = ImmutableArray.Create(1, 2, 3, 4, 5); 422var quin1 = ImmutableArray.Create(1, 2, 3, 4, 5); 423var quin2 = ImmutableArray.Create(10, 11, 12, 13, 14); 424var quin3 = ImmutableArray.Create(11, 13, 15, 17, 19); 454var quin1 = ImmutableArray.Create(1, 2, 3, 4, 5); 455var quin2 = ImmutableArray.Create(10, 11, 12, 13, 14); 456var quin3 = ImmutableArray.Create(13, 16, 19, 22, 25); 469var a = ImmutableArray.Create<int>(0, 1, 2, 3, 4, 5); 475Assert.True(a.WhereAsArray(i => i > 0).SequenceEqual(ImmutableArray.Create<int>(1, 2, 3, 4, 5))); 477Assert.True(a.WhereAsArray(i => i < 5).SequenceEqual(ImmutableArray.Create<int>(0, 1, 2, 3, 4))); 498var a = ImmutableArray.Create(0, 1, 2, 3, 4, 5);
Emit\CustomDebugInfoTests.cs (1)
340compressedStateMachineStateMap: ImmutableArray.Create<byte>(0x06, 0x00, 0x02, 0x20, 0x04, 0x10, 0x00, 0x10, 0x06, 0x20, 0x08, 0x20, 0x0A, 0x30)));
Text\SourceTextTests.cs (3)
115var checksumNoBOM = ImmutableArray.Create<byte>(0xa, 0xa, 0x9f, 0x2a, 0x67, 0x72, 0x94, 0x25, 0x57, 0xab, 0x53, 0x55, 0xd7, 0x6a, 0xf4, 0x42, 0xf8, 0xf6, 0x5e, 0x1); 116var checksumBOM = ImmutableArray.Create<byte>(0xb2, 0x19, 0x0, 0x9b, 0x61, 0xce, 0xcd, 0x50, 0x7b, 0x2e, 0x56, 0x3c, 0xc0, 0xeb, 0x96, 0xe2, 0xa1, 0xd9, 0x3f, 0xfc); 118var expectedContentHash = ImmutableArray.Create<byte>(0xa9, 0x94, 0xb1, 0x1f, 0x7e, 0x49, 0x29, 0x4d, 0xd4, 0x90, 0xe0, 0x6e, 0xc8, 0xcc, 0x3c, 0xdd);
Text\TextChangeTests.cs (3)
925var oldChanges = ImmutableArray.Create( 931var newChanges = ImmutableArray.Create( 940var expected = ImmutableArray.Create(
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Roslyn.Diagnostics.Analyzers (1)
AbstractDoNotCopyValue.cs (1)
131public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule, UnsupportedUseRule, NoBoxingRule, NoUnboxingRule, NoFieldOfCopyableTypeRule, NoAutoPropertyRule);
System.Collections.Immutable (3)
System\Collections\Immutable\ImmutableArray.cs (3)
111return Create((ReadOnlySpan<T>)items); 122return Create(items); 134return Create((ReadOnlySpan<T>)items);
Test.Utilities (1)
AdditionalMetadataReferences.cs (1)
15.AddPackages(ImmutableArray.Create(
Text.Analyzers (1)
IdentifiersShouldBeSpelledCorrectly.cs (1)
215public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(