114 references to Create
ConfigurationSchemaGenerator (1)
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (1)
168case 4: return ImmutableArray.Create(span[0], span[1], span[2], span[3]);
ILLink.RoslynAnalyzer (2)
CompilationExtensions.cs (1)
147 case 4: return ImmutableArray.Create (span[0], span[1], span[2], span[3]);
RequiresDynamicCodeAnalyzer.cs (1)
28 ImmutableArray.Create (s_requiresDynamicCodeRule, s_requiresDynamicCodeAttributeMismatch, s_requiresDynamicCodeOnStaticCtor, s_requiresDynamicCodeOnEntryPoint);
Microsoft.CodeAnalysis (6)
Collections\ArrayBuilderExtensions.cs (3)
88return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2]), map(items[3])); 128return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg), map(items[3], arg)); 168return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg));
Collections\ImmutableArrayExtensions.cs (2)
188return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg)); 503return ImmutableArray.Create(map(self[0], other[0]), map(self[1], other[1]), map(self[2], other[2]), map(self[3], other[3]));
Collections\TemporaryArray`1.cs (1)
3134 => ImmutableArray.Create(_item0, _item1, _item2, _item3),
Microsoft.CodeAnalysis.CodeStyle (7)
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
129var allLocations = ImmutableArray.Create(
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (3)
88return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2]), map(items[3])); 128return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg), map(items[3], arg)); 168return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg));
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
188return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg)); 503return ImmutableArray.Create(map(self[0], other[0]), map(self[1], other[1]), map(self[2], other[2]), map(self[3], other[3]));
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
3134 => ImmutableArray.Create(_item0, _item1, _item2, _item3),
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Query.cs (4)
430ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda), 458ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda), 498ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda), 528ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda),
FlowAnalysis\NullableWalker.cs (1)
269private static readonly ImmutableArray<BoundKind> s_skippedExpressions = ImmutableArray.Create(BoundKind.ArrayInitialization,
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
402return BoundCall.Synthesized(syntax, receiverOpt: null, initialBindingReceiverIsSubjectToCloning: ThreeState.Unknown, method, ImmutableArray.Create(loweredFirst, loweredSecond, loweredThird, loweredFourth));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
CodeActions\MoveStaticMembers\CSharpMoveStaticMembersTests.cs (1)
445var selectedMembers = ImmutableArray.Create(
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\EditAndContinue\EditAndContinuePdbTests.cs (1)
270ImmutableArray.Create(
Emit\EditAndContinue\EditAndContinueTests.cs (1)
7382ImmutableArray.Create(
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
189=> ImmutableArray.Create(
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
SourceGeneration\StateTableTests.cs (3)
782inputNodeValue = ImmutableArray.Create(1, 4, 5, 6); 836inputNodeValue = ImmutableArray.Create(1, 4, 5, 6); 871inputNodeValue = ImmutableArray.Create(1, 4, 5, 6);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CSharpCompilationOptionsTests.cs (2)
81TestHiddenProperty((old, value) => old.WithCryptoPublicKey(value), opt => opt.CryptoPublicKey, ImmutableArray.Create<byte>(0, 1, 2, 3)); 119TestProperty((old, value) => old.WithCryptoPublicKey(value), opt => opt.CryptoPublicKey, ImmutableArray.Create<byte>(0, 1, 2, 3));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
NavigateTo\AbstractNavigateToTests.cs (1)
227ImmutableArray.Create<Func<NavigateToItem, IComparable>>(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
CodeFixes\CodeFixServiceTests.cs (2)
101ImmutableArray.Create<DiagnosticAnalyzer>( 877var fixers = ImmutableArray.Create<CodeFixProvider>(fixer1, fixer2, fixer3, fixer4);
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
129var allLocations = ImmutableArray.Create(
Microsoft.CodeAnalysis.InteractiveHost (4)
Interactive\Core\InteractiveHost.Service.cs (1)
109private static readonly ImmutableArray<string> s_systemNoShadowCopyDirectories = ImmutableArray.Create(
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (3)
88return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2]), map(items[3])); 128return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg), map(items[3], arg)); 168return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg));
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Diagnostics\PullDiagnosticTests.cs (1)
1095ImmutableArray.Create("HACK:2", $"TODO:{priString}", "UNDONE:2", "UnresolvedMergeConflict:3"));
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
MetadataShadowCopyProviderTests.cs (1)
31: ImmutableArray.Create(
Microsoft.CodeAnalysis.Test.Utilities (4)
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
1518public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Warning, Error, Summary, Summary2); 1792public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(GeneratedCodeDescriptor, NonGeneratedCodeDescriptor, UniqueTextFileDescriptor, NumberOfUniqueTextFileDescriptor);
Diagnostics\OperationTestAnalyzer.cs (2)
531return ImmutableArray.Create(BigParamArrayArgumentsDescriptor, 1508public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(OperatorAddMethodDescriptor, OperatorMinusMethodDescriptor, DoubleMultiplyDescriptor, BooleanNotDescriptor);
Microsoft.CodeAnalysis.UnitTests (14)
Collections\ImmutableArrayExtensionsTests.cs (10)
368var a = ImmutableArray.Create<int>(3, 2, 1, 0); 369var b = ImmutableArray.Create<int>(0, 1, 2, 3); 370var c = ImmutableArray.Create<int>(2, 2, 2, 2); 381AssertEx.Equal(new[] { 10, 20, 30, 40 }, ImmutableArray.Create(1, 2, 3, 4).SelectAsArray(i => 10 * i)); 417var quad1 = ImmutableArray.Create(1, 2, 3, 4); 418var quad2 = ImmutableArray.Create(10, 11, 12, 13); 419var quad3 = ImmutableArray.Create(11, 13, 15, 17); 449var quad1 = ImmutableArray.Create(1, 2, 3, 4); 450var quad2 = ImmutableArray.Create(10, 11, 12, 13); 451var quad3 = ImmutableArray.Create(13, 16, 19, 22);
InternalUtilities\OneOrManyTests.cs (4)
66Verify(OneOrMany.Create(ImmutableArray.Create(1, 2, 3, 4)), 1, 2, 3, 4); 69Verify(new OneOrMany<int>(ImmutableArray.Create(1, 2, 3, 4)), 1, 2, 3, 4); 102Verify(OneOrMany.Create(ImmutableArray.Create(1, 1, 1, 2)).RemoveAll(1), 2); 211var quad = OneOrMany.Create(ImmutableArray.Create<int>(10, 20, 30, 40));
Microsoft.CodeAnalysis.VisualBasic (7)
Binding\Binder_Query.vb (2)
1534ImmutableArray.Create(Of BoundExpression)(inner, outerKeyLambda, innerKeyLambda, joinSelectorLambda), 1720ImmutableArray.Create(Of BoundExpression)(inner, outerKeyLambda, innerKeyLambda, intoLambda),
Binding\Binder_XmlLiterals.vb (1)
369ImmutableArray.Create(Of BoundExpression)(prefixesPlaceholder, namespacesPlaceholder, xmlnsAttributesPlaceholder, expr),
BoundTree\Expression.vb (1)
211Return ImmutableArray.Create(Of BoundNode)(Me.Original, Me.Start, Me.LengthOpt, Me.Source)
Symbols\AnonymousTypes\PublicSymbols\AnonymousDelegate_TypePublicSymbol.vb (1)
111_members = ImmutableArray.Create(delegateCtor, delegateBeginInvoke, delegateEndInvoke, delegateInvoke)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (1)
119_members = ImmutableArray.Create(delegateCtor, delegateBeginInvoke, delegateEndInvoke, delegateInvoke)
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
79members = ImmutableArray.Create(Of Symbol)(ctor, beginInvoke, endInvoke, invoke)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Analyzers\VisualBasic\Analyzers\NamingStyle\VisualBasicNamingStyleDiagnosticAnalyzer.vb (1)
15ImmutableArray.Create(
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastDiagnosticAnalyzer.vb (1)
19ImmutableArray.Create(SyntaxKind.CTypeExpression,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (4)
src\Analyzers\VisualBasic\CodeFixes\AddExplicitCast\VisualBasicAddExplicitCastCodeFixProvider.vb (1)
34Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30512, BC42016, BC30518, BC30519)
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\GenerateConstructorDiagnosticIds.vb (1)
23Friend Shared ReadOnly CannotConvertDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30512, BC32006, BC30311, BC36625)
src\Analyzers\VisualBasic\CodeFixes\GenerateVariable\VisualBasicGenerateVariableCodeFixProvider.vb (1)
34Return ImmutableArray.Create(BC30456, BC30401, BC30451, BC36610)
src\Analyzers\VisualBasic\CodeFixes\MakeMethodAsynchronous\VisualBasicMakeMethodAsynchronousCodeFixProvider.vb (1)
24Private Shared ReadOnly s_diagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(
Microsoft.CodeAnalysis.VisualBasic.Features (11)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (1)
34Return ImmutableArray.Create(BC30401, BC30590, BC30456, BC30451)
Completion\KeywordRecommenders\Expressions\LambdaKeywordRecommender.vb (1)
19Return ImmutableArray.Create(
Completion\KeywordRecommenders\OptionStatements\OptionNamesRecommender.vb (1)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create(
Diagnostics\Analyzers\VisualBasicSimplifyTypeNamesDiagnosticAnalyzer.vb (1)
23Private Shared ReadOnly s_kindsOfInterest As ImmutableArray(Of SyntaxKind) = ImmutableArray.Create(
RemoveSharedFromModuleMembers\VisualBasicRemoveSharedFromModuleMembersCodeFixProvider.vb (1)
36Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(
src\Analyzers\VisualBasic\Analyzers\NamingStyle\VisualBasicNamingStyleDiagnosticAnalyzer.vb (1)
15ImmutableArray.Create(
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastDiagnosticAnalyzer.vb (1)
19ImmutableArray.Create(SyntaxKind.CTypeExpression,
src\Analyzers\VisualBasic\CodeFixes\AddExplicitCast\VisualBasicAddExplicitCastCodeFixProvider.vb (1)
34Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30512, BC42016, BC30518, BC30519)
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\GenerateConstructorDiagnosticIds.vb (1)
23Friend Shared ReadOnly CannotConvertDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30512, BC32006, BC30311, BC36625)
src\Analyzers\VisualBasic\CodeFixes\GenerateVariable\VisualBasicGenerateVariableCodeFixProvider.vb (1)
34Return ImmutableArray.Create(BC30456, BC30401, BC30451, BC36610)
src\Analyzers\VisualBasic\CodeFixes\MakeMethodAsynchronous\VisualBasicMakeMethodAsynchronousCodeFixProvider.vb (1)
24Private Shared ReadOnly s_diagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(
Microsoft.CodeAnalysis.Workspaces (6)
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (3)
88return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2]), map(items[3])); 128return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg), map(items[3], arg)); 168return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg));
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
188return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg)); 503return ImmutableArray.Create(map(self[0], other[0]), map(self[1], other[1]), map(self[2], other[2]), map(self[3], other[3]));
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
3134 => ImmutableArray.Create(_item0, _item1, _item2, _item3),
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (3)
88return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2]), map(items[3])); 128return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg), map(items[3], arg)); 168return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg));
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
188return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg)); 503return ImmutableArray.Create(map(self[0], other[0]), map(self[1], other[1]), map(self[2], other[2]), map(self[3], other[3]));
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
3134 => ImmutableArray.Create(_item0, _item1, _item2, _item3),
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
168case 4: return ImmutableArray.Create(span[0], span[1], span[2], span[3]);
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
168case 4: return ImmutableArray.Create(span[0], span[1], span[2], span[3]);
Microsoft.Gen.Logging (1)
src\Generators\Shared\RoslynExtensions.cs (1)
120return ImmutableArray.Create(span[0], span[1], span[2], span[3]);
Microsoft.Gen.Metrics (1)
src\Generators\Shared\RoslynExtensions.cs (1)
120return ImmutableArray.Create(span[0], span[1], span[2], span[3]);
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
158ImmutableArray.Create<IMarshallingInfoAttributeParser>(
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
168case 4: return ImmutableArray.Create(span[0], span[1], span[2], span[3]);
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
168case 4: return ImmutableArray.Create(span[0], span[1], span[2], span[3]);
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
DownlevelLibraryImportGeneratorHelpers.cs (1)
41ImmutableArray.Create<ITypeBasedMarshallingInfoProvider>(
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
168case 4: return ImmutableArray.Create(span[0], span[1], span[2], span[3]);
Microsoft.Interop.SourceGeneration (2)
DefaultMarshallingInfoParser.cs (1)
61ImmutableArray.Create<IMarshallingInfoAttributeParser>(
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
168case 4: return ImmutableArray.Create(span[0], span[1], span[2], span[3]);
Microsoft.ML.InternalCodeAnalyzer (2)
ContractsCheckAnalyzer.cs (1)
76ImmutableArray.Create(
NameFixProvider.cs (1)
34private static ImmutableArray<string> _fixable = ImmutableArray.Create(
System.Private.CoreLib.Generators (1)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
48public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(Rule, RuleHelper, RuleCantParse, RuleAttributeNotSpecificEnough); } }
System.Reflection.Metadata (2)
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (1)
159return ImmutableArray.Create(
System\Reflection\Metadata\Ecma335\MetadataBuilder.cs (1)
22var heapSizes = ImmutableArray.Create(
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
168case 4: return ImmutableArray.Create(span[0], span[1], span[2], span[3]);
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
168case 4: return ImmutableArray.Create(span[0], span[1], span[2], span[3]);
VBCSCompiler.UnitTests (1)
AnalyzerConsistencyCheckerTests.cs (1)
99var analyzerReferences = ImmutableArray.Create(