127 references to Create
Microsoft.CodeAnalysis (3)
CryptographicHashProvider.cs (1)
38return ImmutableArray.Create<byte>();
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (1)
553parameters = delegateInvokeMethod?.Parameters ?? ImmutableArray.Create<IParameterSymbol>();
InternalUtilities\EnumerableExtensions.cs (1)
70return ImmutableArray.Create<T>();
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
70return ImmutableArray.Create<T>();
Microsoft.CodeAnalysis.CSharp (6)
Compilation\MemberSemanticModel.cs (1)
825return ImmutableArray.Create<ISymbol>();
CSharpExtensions.cs (4)
949return ImmutableArray.Create<ISymbol>(); 962return ImmutableArray.Create<ISymbol>(); 975return ImmutableArray.Create<ISymbol>(); 991return ImmutableArray.Create<IPropertySymbol>();
Lowering\ClosureConversion\ClosureConversion.cs (1)
1248ImmutableArray.Create<LocalSymbol>(),
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (5)
CommandLineTests.cs (5)
524AssertEx.Equal(ImmutableArray.Create<string>(), parser.KeyFileSearchPaths); 536AssertEx.Equal(ImmutableArray.Create<string>(), parser.KeyFileSearchPaths); 550AssertEx.Equal(ImmutableArray.Create<string>(), parser.KeyFileSearchPaths); 11516Assert.Equal(ImmutableArray.Create<KeyValuePair<string, string>>(), parsedArgs.PathMap); 11533Assert.Equal(ImmutableArray.Create<KeyValuePair<string, string>>(), parsedArgs.PathMap);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CheckSumTest.cs (1)
26TestOptions.DebugDll.WithSourceReferenceResolver(new SourceFileResolver(ImmutableArray.Create<string>(), baseDirectory)));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
2181var result = lookupResult.IsMultiViable ? lookupResult.Symbols.ToImmutable() : ImmutableArray.Create<Symbol>();
Symbols\ExtensionMethodTests.cs (1)
2533ImmutableArray.Create<TypeWithAnnotations>(),
Symbols\MockAssemblySymbol.cs (2)
45get { return ImmutableArray.Create<ModuleSymbol>(); } 50get { return ImmutableArray.Create<Location>(); }
Symbols\MockNamedTypeSymbol.cs (4)
54return ImmutableArray.Create<TypeParameterSymbol>(); 62return ImmutableArray.Create<TypeWithAnnotations>(); 162get { return ImmutableArray.Create<Location>(); } 169return ImmutableArray.Create<SyntaxReference>();
Symbols\MockNamespaceSymbol.cs (2)
94return ImmutableArray.Create<Location>(); 102return ImmutableArray.Create<SyntaxReference>();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
CompilationTestUtils.cs (2)
209public ImmutableArray<ISymbol> CandidateSymbols = ImmutableArray.Create<ISymbol>(); 218public ImmutableArray<ISymbol> MemberGroup = ImmutableArray.Create<ISymbol>();
CSharpTestBase.cs (2)
1926localDefinitions = ImmutableArray.Create<ILVisualizer.LocalInfo>(); 1962return ImmutableArray.Create<ILVisualizer.LocalInfo>();
Microsoft.CodeAnalysis.Test.Utilities (2)
Metadata\ILValidation.cs (2)
299ImmutableArray.Create<ILVisualizer.LocalInfo>(), 300ImmutableArray.Create<ILVisualizer.HandlerSpan>());
Microsoft.CodeAnalysis.UnitTests (27)
CachingLookupTests.cs (10)
164s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 170s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 177s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 196s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 202s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 209s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 227var look2 = new CachingDictionary<string, int>(s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 232look2 = new CachingDictionary<string, int>(s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 238look2 = new CachingDictionary<string, int>(s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 263return dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>();
Collections\ImmutableArrayExtensionsTests.cs (15)
59nullOrEmpty = ImmutableArray.Create<int>(); 86var empty = ImmutableArray.Create<int>(); 144Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>().Single()); 151Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>().Single(isOdd)); 160Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>().Single((x, a) => x == a, 1)); 165Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>().Single((x, a) => x % a == 1, 2)); 190var notnull = ImmutableArray.Create<int>(); 265var empty = ImmutableArray.Create<int>(); 277var empty = ImmutableArray.Create<int>(); 294var empty = ImmutableArray.Create<int>(); 360var empty = ImmutableArray.Create<object>(); 399var empty = ImmutableArray.Create<object>(); 431var empty = ImmutableArray.Create<object>(); 463var empty = ImmutableArray.Create<object>(); 473Assert.True(a.WhereAsArray(i => false).SequenceEqual(ImmutableArray.Create<int>()));
FileSystem\RelativePathResolverTests.cs (1)
38searchPaths: ImmutableArray.Create<string>(),
MetadataReferences\AssemblyMetadataTests.cs (1)
30Assert.Throws<ArgumentException>(() => AssemblyMetadata.Create(ImmutableArray.Create<ModuleMetadata>()));
Microsoft.CodeAnalysis.VisualBasic (10)
Binding\MemberSemanticModel.vb (1)
710Return ImmutableArray.Create(Of ISymbol)()
Compilation\SemanticModel.vb (1)
3373Return ImmutableArray.Create(Of ISymbol)()
Symbols\Attributes\SourceAttributeData.vb (1)
48Me._namedArguments = If(namedArgs.IsDefault, ImmutableArray.Create(Of KeyValuePair(Of String, TypedConstant))(), namedArgs)
VisualBasicExtensions.vb (7)
637Return ImmutableArray.Create(Of INamedTypeSymbol)() 653Return ImmutableArray.Create(Of INamedTypeSymbol)() 745Return ImmutableArray.Create(Of IAliasSymbol)() 760Return ImmutableArray.Create(Of INamespaceOrTypeSymbol)() 1532Return ImmutableArray.Create(Of ISymbol) 1545Return ImmutableArray.Create(Of ISymbol) 1558Return ImmutableArray.Create(Of ISymbol)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (3)
CommandLineTests.vb (3)
3459Assert.Equal(ImmutableArray.Create(Of KeyValuePair(Of String, String))(), parsedArgs.PathMap) 3476Assert.Equal(ImmutableArray.Create(Of KeyValuePair(Of String, String))(), parsedArgs.PathMap) 3565AssertEx.Equal(ImmutableArray.Create(Of String)(), args.KeyFileSearchPaths)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (11)
Attributes\AttributeTests.vb (2)
3943Assert.Equal(ImmutableArray.Create(Of VisualBasicAttributeData)(), e.GetFieldAttributes) 3948Assert.Equal(ImmutableArray.Create(Of VisualBasicAttributeData)(), p.GetFieldAttributes)
Attributes\AttributeTests_Conditional.vb (6)
283TestConditionAttributeType_SameSource(condDefs, ImmutableArray.Create(Of KeyValuePair(Of String, Object))()) 287TestConditionAttributeType_DifferentSource(condDefsSrcFile1, ImmutableArray.Create(Of KeyValuePair(Of String, Object))(), condDefsSrcFile2, ImmutableArray.Create(Of KeyValuePair(Of String, Object))()) 561TestConditionalMethod_SameSource(condDefs, ImmutableArray.Create(Of KeyValuePair(Of String, Object))()) 574TestConditionalMethod_DifferentSource(condDefsSrcFile1, ImmutableArray.Create(Of KeyValuePair(Of String, Object))(), condDefsSrcFile2, ImmutableArray.Create(Of KeyValuePair(Of String, Object))())
Attributes\AttributeTests_WellKnownAttributes.vb (1)
188Assert.Equal(ImmutableArray.Create(Of SyntaxReference)(), m.DeclaringSyntaxReferences)
Emit\EmitMetadata.vb (2)
481Assert.Equal(ImmutableArray.Create(Of Location)(), method1Ret.Locations) 482Assert.Equal(ImmutableArray.Create(Of SyntaxReference)(), method1Ret.DeclaringSyntaxReferences)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Binding\ForEachTests.vb (2)
3980Dim compilation = CompilationUtils.CreateEmptyCompilationWithReferences(source, ImmutableArray.Create(Of MetadataReference)().AsEnumerable) 4026Dim compilation = CompilationUtils.CreateEmptyCompilationWithReferences(source, ImmutableArray.Create(Of MetadataReference)().AsEnumerable)
Semantics\AccessCheckTests.vb (1)
792Assert.Equal(ImmutableArray.Create(Of SyntaxReference)(), sourceAssem.DeclaringSyntaxReferences)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (9)
DocumentationComments\DocCommentTests.vb (2)
12016Return ImmutableArray.Create(Of Symbol)() 12039Return ImmutableArray.Create(Of Symbol)()
SymbolsTests\SymbolErrorTests.vb (7)
22502Assert.Equal(ImmutableArray.Create(Of Symbol)(), errTypeSym.GetMembers) 22503Assert.Equal(ImmutableArray.Create(Of Symbol)(), errTypeSym.GetMembers("B")) 22504Assert.Equal(ImmutableArray.Create(Of NamedTypeSymbol)(), errTypeSym.GetTypeMembers) 22505Assert.Equal(ImmutableArray.Create(Of NamedTypeSymbol)(), errTypeSym.GetTypeMembers("B")) 22506Assert.Equal(ImmutableArray.Create(Of NamedTypeSymbol)(), errTypeSym.GetTypeMembers("B", 1)) 22508Assert.Equal(ImmutableArray.Create(Of Location)(), errTypeSym.Locations) 22509Assert.Equal(ImmutableArray.Create(Of SyntaxReference)(), errTypeSym.DeclaringSyntaxReferences)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Parser\DeclarationTests.vb (1)
47Dim rootNamespace = ImmutableArray.Create(Of String)()
Parser\VisualBasicParseOptionsTests.vb (1)
57Dim empty = ImmutableArray.Create(Of KeyValuePair(Of String, Object))()
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (20)
CompilationTestUtils.vb (3)
526Public CandidateSymbols As ImmutableArray(Of ISymbol) = ImmutableArray.Create(Of ISymbol)() 527Public AllSymbols As ImmutableArray(Of ISymbol) = ImmutableArray.Create(Of ISymbol)() 531Public MemberGroup As ImmutableArray(Of ISymbol) = ImmutableArray.Create(Of ISymbol)()
MockSymbols.vb (17)
84Return ImmutableArray.Create(Of Location)() 90Return ImmutableArray.Create(Of SyntaxReference)() 198Return ImmutableArray.Create(Of VisualBasicAttributeData)() 249Return ImmutableArray.Create(Of Location)() 255Return ImmutableArray.Create(Of SyntaxReference)() 273Return ImmutableArray.Create(Of TypeParameterSymbol)() 442Return ImmutableArray.Create(Of MethodSymbol)() 447Return ImmutableArray.Create(Of VisualBasicAttributeData)() 576Return ImmutableArray.Create(Of Location)() 582Return ImmutableArray.Create(Of SyntaxReference)() 600Return ImmutableArray.Create(Of ParameterSymbol)() 630Return ImmutableArray.Create(Of TypeSymbol)() 636Return ImmutableArray.Create(Of TypeParameterSymbol)() 705Return ImmutableArray.Create(Of VisualBasicAttributeData)() 716Return ImmutableArray.Create(Of Location)() 792Return ImmutableArray.Create(Of VisualBasicAttributeData)() 797Return ImmutableArray.Create(Of Location)()
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
70return ImmutableArray.Create<T>();
Workspace\CommandLineProject.cs (1)
196return ImmutableArray.Create<string>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
70return ImmutableArray.Create<T>();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestHostDocument.cs (1)
198return _folders ?? ImmutableArray.Create<string>();
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService_Prototype.vb (1)
53ImmutableArray.Create(Of IParameterSymbol)())
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableArray.cs (4)
224return Create<T>(); 254return Create<T>(); 285return Create<TResult>(); 319return Create<TResult>();
System.Reflection.Emit (1)
System\Reflection\Emit\SignatureHelper.cs (1)
182arrayEncoder.Shape(type.GetArrayRank(), ImmutableArray.Create<int>(), ImmutableArray.Create<int>(new int[rank]));