217 references to Create
ConfigurationSchemaGenerator (1)
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (1)
167case 3: return ImmutableArray.Create(span[0], span[1], span[2]);
GenerateRulesMissingDocumentation (1)
Program.cs (1)
173private static readonly ImmutableArray<string> s_assemblies = ImmutableArray.Create(
ILLink.CodeFixProvider (1)
RequiresAssemblyFilesCodeFixProvider.cs (1)
20 public static ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create (
ILLink.RoslynAnalyzer (2)
CompilationExtensions.cs (1)
146 case 3: return ImmutableArray.Create (span[0], span[1], span[2]);
DynamicallyAccessedMembersAnalyzer.cs (1)
28 ImmutableArray.Create<RequiresAnalyzerBase> (
Microsoft.Analyzers.Local (1)
CallAnalysis\CallAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
Microsoft.AspNetCore.App.CodeFixes (1)
WebApplicationBuilderFixer.cs (1)
20public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(
Microsoft.AspNetCore.Mvc.Analyzers (1)
AttributesShouldNotBeAppliedToPageModelAnalyzer.cs (1)
13public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ApiConventionAnalyzer.cs (1)
15public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.CodeAnalysis (8)
Collections\ArrayBuilderExtensions.cs (3)
85return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2])); 125return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg)); 165return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg));
Collections\ImmutableArrayExtensions.cs (2)
185return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg)); 500return ImmutableArray.Create(map(self[0], other[0]), map(self[1], other[1]), map(self[2], other[2]));
Collections\TemporaryArray`1.cs (1)
3123 => ImmutableArray.Create(_item0, _item1, _item2),
Diagnostic\DiagnosticInfo.cs (1)
36private static readonly ImmutableArray<string> s_compilerErrorCustomTags = ImmutableArray.Create(WellKnownDiagnosticTags.Compiler, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTags.NotConfigurable);
PEWriter\MetadataWriter.cs (1)
89ImmutableArray.Create(
Microsoft.CodeAnalysis.CodeStyle (10)
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
119var locations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
123var locations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
190var locations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (1)
99ImmutableArray.Create(
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (3)
85return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2])); 125return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg)); 165return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg));
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
185return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg)); 500return ImmutableArray.Create(map(self[0], other[0]), map(self[1], other[1]), map(self[2], other[2]));
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
3123 => ImmutableArray.Create(_item0, _item1, _item2),
Microsoft.CodeAnalysis.CSharp (14)
Compiler\MethodBodySynthesizer.cs (1)
485arguments: ImmutableArray.Create<BoundExpression>(boundBackingField, boundTmps[2], boundTmps[1]));
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
459return ImmutableArray.Create(addressOf, _factory.Sizeof(targetType), index);
Lowering\LocalRewriter\LocalRewriter_DoStatement.cs (1)
69ImmutableArray.Create<BoundStatement>(rewrittenBody,
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
152marshalArguments = ImmutableArray.Create<BoundExpression>(addDelegate, removeDelegate, rewrittenArgument);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
693outerLocals: preambleLocal is null ? ImmutableArray.Create<LocalSymbol>(collectionTemp, positionVar) : ImmutableArray.Create<LocalSymbol>(preambleLocal, collectionTemp, positionVar),
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (2)
171ImmutableArray.Create( 222ImmutableArray.Create(
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
389return BoundCall.Synthesized(syntax, receiverOpt: null, initialBindingReceiverIsSubjectToCloning: ThreeState.Unknown, method, ImmutableArray.Create(loweredFirst, loweredSecond, loweredThird));
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
259statements: ImmutableArray.Create<BoundStatement>(
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (1)
150ImmutableArray.Create(
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (1)
87this.SpecialMembers = ImmutableArray.Create<MethodSymbol>(
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
38_interfaces = ImmutableArray.Create(
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
503ImmutableArray.Create<BoundStatement>(
Symbols\Synthesized\SynthesizedHotReloadExceptionConstructorSymbol.cs (1)
56ImmutableArray.Create<BoundStatement>(
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
230var allLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
113var additionalLocations = ImmutableArray.Create(
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
CodeActions\MoveStaticMembers\CSharpMoveStaticMembersTests.cs (2)
2959var selectedMembers = ImmutableArray.Create("Goo", "Foo", "DoSomething"); 3045var selectedMembers = ImmutableArray.Create("Goo", "Foo", "DoSomething");
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
314return ImmutableArray.Create(SyntaxKind.MethodDeclaration, SyntaxKind.ExpressionStatement, SyntaxKind.EqualsValueClause);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (11)
CodeGen\CodeGenTupleTest.cs (11)
5991var tupleWithSomeNames = comp.CreateTupleTypeSymbol(vt3, ImmutableArray.Create(null, "Item2", "Charlie")); 6275var tuple2 = comp.CreateTupleTypeSymbol(vt3, ImmutableArray.Create("123", " ", null)); 13834var t3 = NamedTypeSymbol.CreateTuple(m3Tuple, ImmutableArray.Create("a", "b", "c")); 13835var t4 = NamedTypeSymbol.CreateTuple(m3Tuple, ImmutableArray.Create("a", "b", "c")); 13836var t5 = NamedTypeSymbol.CreateTuple(m3Tuple, ImmutableArray.Create("c", "b", "a")); 13851var t6 = NamedTypeSymbol.CreateTuple(m3Tuple, ImmutableArray.Create("Item1", "Item2", "Item3")); 13852var t7 = NamedTypeSymbol.CreateTuple(m3Tuple, ImmutableArray.Create("Item1", "Item2", "Item3")); 13862var t8 = NamedTypeSymbol.CreateTuple(m3Tuple, ImmutableArray.Create("Item2", "Item3", "Item1")); 18885var int_int_int = comp.CreateTupleTypeSymbol(ImmutableArray.Create(intType, intType, intType)); 19071var int_object_object = tupleComp1.CreateTupleTypeSymbol(ImmutableArray.Create(intType, objectType, objectType)); 19110var int_object_object = tupleComp1.CreateTupleTypeSymbol(ImmutableArray.Create(intType, objectType, objectType));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\EditAndContinue\EditAndContinueTests.cs (2)
3597ImmutableArray.Create( 4011? ImmutableArray.Create(
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
773WithCryptoPublicKey(ImmutableArray.Create<byte>(1, 2, 3)).
Diagnostics\DiagnosticAnalyzerTests.cs (1)
477get { return ImmutableArray.Create(desc1, desc2, desc3); }
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Conversions.cs (1)
72var symbols = ImmutableArray.Create<ISymbol>(conversion.ContainingType, conversion.Parameters.First().Type, conversion.ReturnType);
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
230var allLocations = ImmutableArray.Create(
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\SyntaxComparerTests.cs (1)
45ImmutableArray.Create(MakeLiteral(0), MakeLiteral(1), MakeLiteral(2)),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (38)
SourceGeneration\StateTableTests.cs (38)
37builder.AddEntries(ImmutableArray.Create(1, 2, 3), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 38builder.AddEntries(ImmutableArray.Create(4, 5, 6), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 39builder.AddEntries(ImmutableArray.Create(7, 8, 9), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 52builder.AddEntries(ImmutableArray.Create(o, o, o), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 87builder.TryModifyEntries(ImmutableArray.Create(20, 21, 22), EqualityComparer<int>.Default, TimeSpan.Zero, default, EntryState.Modified); 109builder.AddEntries(ImmutableArray.Create(1, 2, 3), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 110builder.AddEntries(ImmutableArray.Create(4, 5, 6), EntryState.Removed, TimeSpan.Zero, default, EntryState.Removed); 111builder.AddEntries(ImmutableArray.Create(7, 8, 9), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 126builder.AddEntries(ImmutableArray.Create(1, 2, 3), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 127builder.AddEntries(ImmutableArray.Create(4, 5, 6), EntryState.Removed, TimeSpan.Zero, default, EntryState.Removed); 128builder.AddEntries(ImmutableArray.Create(7, 8, 9), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 281nodeBuilder.AddEntries(ImmutableArray.Create(1, 2, 3), EntryState.Cached, TimeSpan.Zero, default, EntryState.Cached); 310nodeBuilder.AddEntries(ImmutableArray.Create(1, 2, 3), EntryState.Added, TimeSpan.Zero, emptyInputSteps, EntryState.Added); 372var inputNode = new InputNode<int>((_) => ImmutableArray.Create(1, 2, 3)); 405Assert.Equal(ImmutableArray.Create(1, 2, 3), (IEnumerable<int>)output.Value); 414var inputNode = new InputNode<int>((_) => ImmutableArray.Create(1, 2, 3)); 425AssertTableEntries(table, new[] { (ImmutableArray.Create(1, 2, 3), EntryState.Cached, 0) }); 432var inputNode = new InputNode<int>((_) => ImmutableArray.Create(1, 2, 3)); 468Assert.Equal(ImmutableArray.Create(1, 2, 3), (IEnumerable<int>)output.Value); 477var inputValue = ImmutableArray.Create(1, 2, 3); 525var inputNode = new InputNode<int>((_) => ImmutableArray.Create(1, 2, thirdElement++)); 536AssertTableEntries(table, new[] { (ImmutableArray.Create(1, 2, 4), EntryState.Modified, 0) }); 544var inputNode = new InputNode<int>((_) => ImmutableArray.Create(1, 2, thirdElement)); 582Assert.Equal(ImmutableArray.Create(1, 2, 4), (IEnumerable<int>)output.Value); 774ImmutableArray<int> inputNodeValue = ImmutableArray.Create(1, 2, 3); 827ImmutableArray<int> inputNodeValue = ImmutableArray.Create(1, 2, 3); 861ImmutableArray<int> inputNodeValue = ImmutableArray.Create(1, 2, 3); 919var inputNode = new InputNode<int>((_) => ImmutableArray.Create(1, 2, 3)) 937var inputNode = new InputNode<int>((_) => ImmutableArray.Create(1, 2, thirdValue)).WithTrackingName("Input"); 970ImmutableArray<int> values = ImmutableArray.Create(1, 2, 3); 1007values = ImmutableArray.Create(1, 2, 3); 1119_ => ImmutableArray.Create("1.1", "inserted", "1.2") 1154_ => ImmutableArray.Create("inserted", "1.1", "1.2") 1189_ => ImmutableArray.Create("1.1", "1.2", "inserted") 1224_ => ImmutableArray.Create("2.1", "inserted", "2.2") 1250ImmutableArray<string> values = ImmutableArray.Create("1", "2", "3"); 1260_ => ImmutableArray.Create("2.1", "inserted", "2.2") 1274values = ImmutableArray.Create("1", "4", "3");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\FunctionPointerTypeSymbolTests.cs (3)
1992var funcPtrObjectThiscallObject = createTypeSymbol(customModifiers: ImmutableArray.Create(objectMod, thiscallMod, objectMod)); 1996var funcPtrThiscallThiscallStdcall = createTypeSymbol(customModifiers: ImmutableArray.Create(thiscallMod, thiscallMod, stdcallMod)); 1997var funcPtrThiscallObjectStdcall = createTypeSymbol(customModifiers: ImmutableArray.Create(thiscallMod, objectMod, stdcallMod));
Symbols\Metadata\PE\LoadingProperties.cs (1)
264var implementedByProperty1 = ImmutableArray.Create<PropertySymbol>(interfaceProperty1, interfaceProperty4, interfaceProperty5);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Parsing\CSharpParseOptionsTests.cs (1)
47TestProperty((old, value) => old.WithPreprocessorSymbols(value), opt => opt.PreprocessorSymbols, ImmutableArray.Create<string>("A", "B", "C"));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
919public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_syntaxRule, s_semanticRule, s_compilationRule); 935public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_syntaxRule, s_semanticRule, s_compilationRule);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (4)
Diagnostics\DiagnosticServiceTests.vb (2)
2272Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(compilerAnalyzer, syntaxAnalyzer, semanticAnalyzer)) 2342Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(compilerAnalyzer, syntaxAnalyzer, semanticAnalyzer))
IntelliSense\IntellisenseQuickInfoBuilderTests.vb (2)
28ImmutableArray.Create( 205ImmutableArray.Create(
Microsoft.CodeAnalysis.Features (3)
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
119var locations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
190var locations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (1)
99ImmutableArray.Create(
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\MockManagedEditAndContinueDebuggerService.cs (1)
41=> ValueTaskFactory.FromResult(GetCapabilitiesImpl?.Invoke() ?? ImmutableArray.Create("Baseline", "AddDefinitionToExistingType", "NewTypeDefinition"));
Microsoft.CodeAnalysis.Features.UnitTests (4)
EditAndContinue\ActiveStatementsMapTests.cs (2)
69var array = ImmutableArray.Create( 82var array = ImmutableArray.Create(
EditAndContinue\EditAndContinueCapabilitiesTests.cs (2)
37var capabilities = ImmutableArray.Create("Baseline", "Invalid", "NewTypeDefinition"); 48var capabilities = ImmutableArray.Create("Baseline", "90", "NewTypeDefinition");
Microsoft.CodeAnalysis.InteractiveHost (3)
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (3)
85return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2])); 125return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg)); 165return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg));
Microsoft.CodeAnalysis.Scripting (2)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCache.cs (2)
38? ImmutableArray.Create(ProcessorArchitecture.None, ProcessorArchitecture.MSIL, ProcessorArchitecture.X86) 39: ImmutableArray.Create(ProcessorArchitecture.None, ProcessorArchitecture.MSIL, ProcessorArchitecture.Amd64);
Microsoft.CodeAnalysis.Test.Utilities (4)
Diagnostics\OperationTestAnalyzer.cs (4)
48get { return ImmutableArray.Create(InvalidExpressionDescriptor, InvalidStatementDescriptor, IsInvalidDescriptor); } 327return ImmutableArray.Create(SparseSwitchDescriptor, 1304ImmutableArray.Create(LambdaExpressionDescriptor, 1776public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(InvalidBinaryDescriptor,
Microsoft.CodeAnalysis.UnitTests (29)
Collections\ImmutableArrayExtensionsTests.cs (20)
153Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>(1, 2, 3).Single(isOdd)); 167Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>(1, 2, 3).Single((x, a) => x % a == 1, 2)); 266var a = ImmutableArray.Create<int>(0, 2, 4); 278var a = ImmutableArray.Create<int>(0, 2, 4); 295var a = ImmutableArray.Create<int>(0, 2, 4); 338var a = ImmutableArray.Create<string>("A", "B", "C"); 339var b = ImmutableArray.Create<string>("A", "b", "c"); 348var r = ImmutableArray.Create<int>(1, 2, 3); 353var s = ImmutableArray.Create<int>(10, 20, 30); 380AssertEx.Equal(new[] { 10, 20, 30 }, ImmutableArray.Create(1, 2, 3).SelectAsArray(i => 10 * i)); 412var triple1 = ImmutableArray.Create(1, 2, 3); 413var triple2 = ImmutableArray.Create(10, 11, 12); 414var triple3 = ImmutableArray.Create(11, 13, 15); 444var triple1 = ImmutableArray.Create(1, 2, 3); 445var triple2 = ImmutableArray.Create(10, 11, 12); 446var triple3 = ImmutableArray.Create(13, 16, 19); 483Assert.True(a.WhereAsArray(i => i < 3).SequenceEqual(ImmutableArray.Create<int>(0, 1, 2))); 485Assert.True(a.WhereAsArray(i => i > 2).SequenceEqual(ImmutableArray.Create<int>(3, 4, 5))); 487Assert.True(a.WhereAsArray(i => i % 2 == 0).SequenceEqual(ImmutableArray.Create<int>(0, 2, 4))); 489Assert.True(a.WhereAsArray(i => i % 2 == 1).SequenceEqual(ImmutableArray.Create<int>(1, 3, 5)));
Diagnostics\SuppressMessageAttributeCompilerTests.cs (1)
63return ImmutableArray.Create(TestBase.MscorlibRef, compRef, TestBase.ValueTupleRef);
Emit\CustomDebugInfoTests.cs (1)
655(LocalName: "b", SlotIndex: -1, ScopeStart: 0, ScopeEnd: 10, Names: ImmutableArray.Create("u", null, "v")),
InternalUtilities\OneOrManyTests.cs (5)
65Verify(OneOrMany.Create(ImmutableArray.Create(1, 2, 3)).Add(4), 1, 2, 3, 4); 68Verify(new OneOrMany<int>(ImmutableArray.Create(1, 2, 3)).Add(4), 1, 2, 3, 4); 233Assert.False(OneOrMany.Create(1, 2).SequenceEqual(OneOrMany.Create(ImmutableArray.Create(1, 2, 3)))); 252Assert.False(new[] { 1, 2 }.SequenceEqual(OneOrMany.Create(ImmutableArray.Create(1, 2, 3)))); 261Assert.False(ImmutableArray.Create(1, 2).SequenceEqual(OneOrMany.Create(ImmutableArray.Create(1, 2, 3))));
MetadataReferences\AssemblyMetadataTests.cs (1)
38Assert.Throws<ArgumentNullException>(() => AssemblyMetadata.Create(ImmutableArray.Create(m1, m2, null)));
StrongNameProviderTests.cs (1)
44var searchPathsSP = ImmutableArray.Create(@"C:\goo", dir, subdir);
Microsoft.CodeAnalysis.VisualBasic (12)
Binding\Binder_Query.vb (4)
1137boundCallOrBadExpression = BadExpression(variable, ImmutableArray.Create(Of BoundExpression)(source, manySelectorLambda, joinSelectorLambda), 1486lambdaBinders = ImmutableArray.Create(Of Binder)(outerKeyBinder, innerKeyBinder, joinSelectorBinder) 1729ImmutableArray.Create(Of Binder)(outerKeyBinder, innerKeyBinder, intoBinder), 1802lambdaBinders = ImmutableArray.Create(Of Binder)(keysLambdaBinder, itemsLambdaBinder, intoBinder)
Binding\Binder_XmlLiterals.vb (1)
63ImmutableArray.Create(Of BoundExpression)(version, encoding, standalone),
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (1)
134marshalArguments = ImmutableArray.Create(Of BoundExpression)(addDelegate, removeDelegate, rewrittenHandler)
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (1)
485arguments = ImmutableArray.Create(
Lowering\LocalRewriter\LocalRewriter_If.vb (1)
166Return New BoundStatementList(syntaxNode, ImmutableArray.Create(condGoto, rewrittenConsequence, afterIfStatement))
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (2)
492Dim callArgs = ImmutableArray.Create(Of BoundExpression)(receiver, 628callArgs = ImmutableArray.Create(Of BoundExpression)(receiver,
Symbols\Source\SynthesizedEntryPointSymbol.vb (1)
308ImmutableArray.Create(Of BoundStatement)(scriptAssignment, scriptInitialize, returnStatement)).MakeCompilerGenerated()
Symbols\Source\SynthesizedEventAccessorSymbol.vb (1)
443ImmutableArray.Create(Of BoundExpression)(boundBackingField, boundTmps(2).MakeRValue(), boundTmps(1).MakeRValue()),
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
11037Return ImmutableArray.Create(Warning01, Warning02, Warning03)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
Attributes\InternalsVisibleToAndStrongNameTests.vb (1)
478WithCryptoPublicKey(ImmutableArray.Create(Of Byte)(1, 2, 3)).
CodeGen\CodeGenTuples.vb (2)
6984Dim tupleWithSomeNames = comp.CreateTupleTypeSymbol(vt3, ImmutableArray.Create(Nothing, "Item2", "Charlie")) 7173Dim tuple2 = comp.CreateTupleTypeSymbol(vt3, ImmutableArray.Create("123", " ", Nothing))
Microsoft.CodeAnalysis.VisualBasic.Features (4)
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.vb (1)
33Return ImmutableArray.Create(BC30465, BC30637, BC30627)
Completion\KeywordRecommenders\Declarations\CharsetModifierKeywordRecommender.vb (1)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create(
Completion\KeywordRecommenders\Statements\DoKeywordRecommender.vb (1)
19Return ImmutableArray.Create(
Completion\KeywordRecommenders\Statements\LoopKeywordRecommender.vb (1)
31Return ImmutableArray.Create(
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (6)
EditAndContinue\LineEditTests.vb (1)
1384New SequencePointUpdates("a", ImmutableArray.Create(
EditAndContinue\SyntaxComparerTests.vb (5)
35ImmutableArray.Create(MakeLiteral(0), MakeLiteral(1), MakeLiteral(2)), 65ImmutableArray.Create(SyntaxFactory.Token(SyntaxKind.PublicKeyword), SyntaxFactory.Token(SyntaxKind.StaticKeyword), SyntaxFactory.Token(SyntaxKind.AsyncKeyword)), 66ImmutableArray.Create(SyntaxFactory.Token(SyntaxKind.StaticKeyword), SyntaxFactory.Token(SyntaxKind.PublicKeyword), SyntaxFactory.Token(SyntaxKind.AsyncKeyword))) 98ImmutableArray.Create(SyntaxFactory.Token(SyntaxKind.PublicKeyword), SyntaxFactory.Token(SyntaxKind.StaticKeyword), SyntaxFactory.Token(SyntaxKind.AsyncKeyword)), 99ImmutableArray.Create(SyntaxFactory.Token(SyntaxKind.StaticKeyword), SyntaxFactory.Token(SyntaxKind.PublicKeyword), SyntaxFactory.Token(SyntaxKind.AsyncKeyword)))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\TypeTests.vb (1)
4112ImmutableArray.Create(modifiedT, modifiedU, modifiedV)))
Microsoft.CodeAnalysis.Workspaces (6)
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (3)
85return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2])); 125return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg)); 165return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg));
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
185return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg)); 500return ImmutableArray.Create(map(self[0], other[0]), map(self[1], other[1]), map(self[2], other[2]));
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
3123 => ImmutableArray.Create(_item0, _item1, _item2),
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (3)
85return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2])); 125return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg)); 165return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg));
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
185return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg)); 500return ImmutableArray.Create(map(self[0], other[0]), map(self[1], other[1]), map(self[2], other[2]));
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
3123 => ImmutableArray.Create(_item0, _item1, _item2),
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
BatchFixAllProviderTests.cs (1)
42var codeFixes = ImmutableArray.Create(
SolutionTests\SolutionTests.cs (1)
1926var projectRefs = (IEnumerable<ProjectReference>)ImmutableArray.Create(
Microsoft.DotNet.CodeAnalysis (1)
Analyzers\AppContextDefaultsAnalyzer.cs (1)
48return ImmutableArray.Create(
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
167case 3: return ImmutableArray.Create(span[0], span[1], span[2]);
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
167case 3: return ImmutableArray.Create(span[0], span[1], span[2]);
Microsoft.Gen.Logging (1)
src\Generators\Shared\RoslynExtensions.cs (1)
118return ImmutableArray.Create(span[0], span[1], span[2]);
Microsoft.Gen.Metrics (1)
src\Generators\Shared\RoslynExtensions.cs (1)
118return ImmutableArray.Create(span[0], span[1], span[2]);
Microsoft.Interop.ComInterfaceGenerator (3)
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (2)
80methodsOfInterest.Add(createWrapperOfType, ImmutableArray.Create(CreateTypeArgumentTypeLookup(0), CreateTypeArgumentTypeLookup(1), firstArgumentTypeLookup)); 96methodsOfInterest.Add(getComInterfaceForObject, ImmutableArray.Create(CreateTypeArgumentTypeLookup(0), CreateTypeArgumentTypeLookup(1), firstArgumentTypeLookup));
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
167case 3: return ImmutableArray.Create(span[0], span[1], span[2]);
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\NativeMarshallingAttributeAnalyzer.cs (1)
55ImmutableArray.Create(
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
167case 3: return ImmutableArray.Create(span[0], span[1], span[2]);
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
167case 3: return ImmutableArray.Create(span[0], span[1], span[2]);
Microsoft.Interop.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
167case 3: return ImmutableArray.Create(span[0], span[1], span[2]);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Options\CSharpVisualStudioOptionStorageReadFallbacks.cs (1)
20private static readonly ImmutableArray<(string key, int flag)> s_storages = ImmutableArray.Create(
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Interactive\Commands\ResetInteractiveTests.cs (1)
97ProjectNamespaces = ImmutableArray.Create("System", "ResetInteractiveTestsDocument", "VisualBasicResetInteractiveTestsDocument"),
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
DebuggerIntelliSense\TestState.vb (1)
26Private Shared ReadOnly s_roles As ImmutableArray(Of String) = ImmutableArray.Create(PredefinedTextViewRoles.Editable, "DEBUGVIEW", PredefinedTextViewRoles.Interactive)
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
167case 3: return ImmutableArray.Create(span[0], span[1], span[2]);
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
167case 3: return ImmutableArray.Create(span[0], span[1], span[2]);