49 references to Create
dotnet-format (1)
CodeFormatter.cs (1)
16private static readonly ImmutableArray<ICodeFormatter> s_codeFormatters = ImmutableArray.Create<ICodeFormatter>(
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
ILLink.RoslynAnalyzer (3)
RequiresAssemblyFilesAnalyzer.cs (1)
37public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_locationRule, s_getFilesRule, s_requiresAssemblyFilesRule, s_requiresAssemblyFilesAttributeMismatch, s_requiresAssemblyFilesOnStaticCtor, s_requiresAssemblyFilesOnEntryPoint);
RequiresDynamicCodeAnalyzer.cs (1)
29ImmutableArray.Create(s_requiresDynamicCodeRule, s_requiresDynamicCodeAttributeMismatch, s_requiresDynamicCodeOnStaticCtor, s_requiresDynamicCodeOnEntryPoint, s_referenceNotMarkedIsAotCompatibleRule);
RequiresUnreferencedCodeAnalyzer.cs (1)
37ImmutableArray.Create(s_makeGenericMethodRule, s_makeGenericTypeRule, s_requiresUnreferencedCodeRule, s_requiresUnreferencedCodeAttributeMismatch, s_requiresUnreferencedCodeOnStaticCtor, s_requiresUnreferencedCodeOnEntryPoint, s_referenceNotMarkedIsTrimmableRule, s_dynamicallyAccessedMembersMismatchTypeArgumentTargetsGenericParameterRule);
Microsoft.AspNetCore.App.Analyzers (2)
RouteHandlers\RouteHandlerAnalyzer.cs (1)
23public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
WebApplicationBuilder\WebApplicationBuilderAnalyzer.cs (1)
21public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
ImmutableArrayExtensions.cs (1)
64var array = ImmutableArray.Create(items);
Microsoft.Build (1)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\HashHelpers.cs (1)
40private 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)
6074var validKinds = ImmutableArray.Create(OperationKind.Invocation, OperationKind.DynamicInvocation, OperationKind.Increment, OperationKind.Literal,
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.Analyzers (4)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (1)
177public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
MetaAnalyzers\RegisterActionAnalyzer.cs (1)
107public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\WebInputSources.cs (1)
32var dependencyFullTypeNames = ImmutableArray.Create(WellKnownTypeNames.MicrosoftAspNetCoreMvcControllerBase,
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.CSharp (4)
Compiler\MethodBodySynthesizer.cs (1)
519statements: ImmutableArray.Create<BoundStatement>(
Symbols\Compilation_WellKnownMembers.cs (1)
476ImmutableArray.Create(
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (2)
297? ImmutableArray.Create( 306: ImmutableArray.Create(
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
12ImmutableArray.Create(
Microsoft.CodeAnalysis.CSharp.Features (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
12ImmutableArray.Create(
Microsoft.CodeAnalysis.Extensions.Package (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.Interop.ComInterfaceGenerator (3)
Analyzers\ComInterfaceGeneratorDiagnosticsAnalyzer.cs (1)
21ImmutableArray.Create(
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
167ImmutableArray.Create<ITypeBasedMarshallingInfoProvider>(
Analyzers\VtableIndexStubDiagnosticsAnalyzer.cs (1)
18ImmutableArray.Create(
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Analyzers\JSImportExportDiagnosticsAnalyzer.cs (1)
20private static readonly ImmutableArray<DiagnosticDescriptor> s_sharedDescriptors = ImmutableArray.Create(
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (1)
570ImmutableArray.Create(
Analyzers\LibraryImportDiagnosticsAnalyzer.cs (1)
25ImmutableArray.Create(
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportDiagnosticsAnalyzer.cs (1)
24ImmutableArray.Create(
Microsoft.Interop.SourceGeneration (1)
DefaultMarshallingInfoParser.cs (1)
66ImmutableArray.Create<ITypeBasedMarshallingInfoProvider>(
Roslyn.Diagnostics.Analyzers (3)
AbstractDoNotCopyValue.cs (1)
130public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule, UnsupportedUseRule, NoBoxingRule, NoUnboxingRule, NoFieldOfCopyableTypeRule, NoAutoPropertyRule);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
System.Collections.Immutable (3)
System\Collections\Immutable\ImmutableArray.cs (3)
111return Create((ReadOnlySpan<T>)items); 122return Create(items); 134return Create((ReadOnlySpan<T>)items);
System.Reflection.Metadata (1)
System\Reflection\Metadata\BlobWriter.cs (1)
105return ImmutableArray.Create(_buffer.AsSpan(_start + start, byteCount));