2767 references to Create
Aspire.Hosting.Analyzers (1)
AppHostAnalyzer.Diagnostics.cs (1)
23public static readonly ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics = ImmutableArray.Create(
BuildValidator (1)
LocalReferenceResolver.cs (1)
139aliases: metadataReferenceInfo.ExternAlias is null ? ImmutableArray<string>.Empty : ImmutableArray.Create(metadataReferenceInfo.ExternAlias),
ConfigurationSchemaGenerator (1)
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (1)
165case 1: return ImmutableArray.Create(span[0]);
IdeCoreBenchmarks (1)
IncrementalAnalyzerBenchmarks.cs (1)
60incrementalAnalyzerNames: ImmutableArray.Create(AnalyzerName));
ILLink.CodeFixProvider (2)
RequiresDynamicCodeCodeFixProvider.cs (1)
20 public static ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create (DiagnosticDescriptors.GetDiagnosticDescriptor (DiagnosticId.RequiresDynamicCode));
RequiresUnreferencedCodeCodeFixProvider.cs (1)
20 public static ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create (DiagnosticDescriptors.GetDiagnosticDescriptor (DiagnosticId.RequiresUnreferencedCode));
ILLink.RoslynAnalyzer (6)
COMAnalyzer.cs (1)
25 public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create (s_correctnessOfCOMCannotBeGuaranteed);
CompilationExtensions.cs (1)
144 case 1: return ImmutableArray.Create (span[0]);
DataFlow\LocalDataFlowVisitor.cs (3)
438 HandleMethodCallHelper (addMethod, instanceValue, ImmutableArray.Create (value), operation, state); 444 HandleMethodCallHelper (removeMethod, instanceValue, ImmutableArray.Create (value), operation, state); 652 return HandleMethodCallHelper (getMethod, instanceValue, ImmutableArray.Create (indexArgumentValue), operation, state);
RequiresUnreferencedCodeAnalyzer.cs (1)
98 ImmutableArray.Create<(Action<SymbolAnalysisContext> Action, SymbolKind[] SymbolKind)> ((typeDerivesFromRucBase, new SymbolKind[] { SymbolKind.NamedType }));
Microsoft.Analyzers.Extra (7)
AsyncCallInsideUsingBlockAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
AsyncMethodWithoutCancellation.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
50public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(DiagDescriptors.LegacyLogging.Id);
ConditionalAccessAnalyzer.cs (1)
18public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagDescriptors.ConditionalAccess);
MakeExeTypesInternalAnalyzer.cs (1)
50public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagDescriptors.MakeExeTypesInternal);
MakeExeTypesInternalFixer.cs (1)
22public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(DiagDescriptors.MakeExeTypesInternal.Id);
UsingToStringInLoggersAnalyzer.cs (1)
17public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagDescriptors.UsingToStringInLoggers);
Microsoft.Analyzers.Extra.Tests (3)
Resources\RoslynTestUtils.cs (3)
257var analyzers = ImmutableArray.Create(analyzer); 329var analyzers = ImmutableArray.Create(analyzer); 440var diagsProvider = new TestDiagnosticProvider(proj, ImmutableArray.Create(analyzer), fixer);
Microsoft.Analyzers.Local (1)
InternalReferencedInPublicDocAnalyzer.cs (1)
21private static readonly ImmutableArray<DiagnosticDescriptor> _supportedDiagnostics = ImmutableArray.Create(DiagDescriptors.InternalReferencedInPublicDoc);
Microsoft.Analyzers.Local.Tests (3)
Resources\RoslynTestUtils.cs (3)
257var analyzers = ImmutableArray.Create(analyzer); 330var analyzers = ImmutableArray.Create(analyzer); 441var diagsProvider = new TestDiagnosticProvider(proj, ImmutableArray.Create(analyzer), fixer);
Microsoft.AspNetCore.Analyzer.Testing (2)
DiagnosticAnalyzerRunner.cs (1)
75.WithAnalyzers(ImmutableArray.Create(analyzer));
DiagnosticVerifier.cs (1)
95.WithAnalyzers(ImmutableArray.Create(analyzer));
Microsoft.AspNetCore.App.Analyzers (17)
Authorization\AddAuthorizationBuilderAnalyzer.cs (1)
19public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.UseAddAuthorizationBuilder);
Http\HeaderDictionaryAddAnalyzer.cs (1)
17public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.DoNotUseIHeaderDictionaryAdd);
Http\HeaderDictionaryIndexerAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.UseHeaderDictionaryPropertiesInsteadOfIndexer);
Http\RequestDelegateReturnTypeAnalyzer.cs (1)
17public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.DoNotReturnValueFromRequestDelegate);
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxToken.cs (1)
40=> Diagnostics.Length > 0 ? this : WithDiagnostics(ImmutableArray.Create(diagnostic));
Mvc\MvcAnalyzer.cs (1)
113: ImmutableArray.Create(GetHttpMethod(match.Value)!);
RenderTreeBuilder\RenderTreeBuilderAnalyzer.cs (1)
19public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.DoNotUseNonLiteralSequenceNumbers);
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (3)
45filterCharacterRules: ImmutableArray.Create(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, Array.Empty<char>()))); 74ImmutableArray.Create(new TaggedText(TextTags.Text, description)))); 277tags: ImmutableArray.Create(embeddedItem.Glyph)));
RouteEmbeddedLanguage\Infrastructure\RouteStringSyntaxDetector.cs (2)
17private static readonly EmbeddedLanguageCommentDetector _commentDetector = new(ImmutableArray.Create("Route")); 532return ImmutableArray.Create(info.Symbol);
RouteEmbeddedLanguage\Infrastructure\RouteUsageDetector.cs (1)
349return ImmutableArray.Create(info.Symbol);
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (3)
39filterCharacterRules: ImmutableArray.Create(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, Array.Empty<char>()))); 68ImmutableArray.Create(new TaggedText(TextTags.Text, description)))); 156tags: ImmutableArray.Create(embeddedItem.Glyph)));
WebApplicationBuilder\PublicPartialProgramClassAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.PublicPartialProgramClassNotRequired);
Microsoft.AspNetCore.App.Analyzers.Test (1)
Infrastructure\WellKnownTypesTests.cs (1)
75var trees = ImmutableArray.Create(tree);
Microsoft.AspNetCore.App.CodeFixes (5)
Authorization\AddAuthorizationBuilderFixer.cs (1)
23public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DiagnosticDescriptors.UseAddAuthorizationBuilder.Id);
DetectMismatchedParameterOptionalityFixer.cs (1)
19public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DiagnosticDescriptors.DetectMismatchedParameterOptionality.Id);
Http\HeaderDictionaryAddFixer.cs (1)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DiagnosticDescriptors.DoNotUseIHeaderDictionaryAdd.Id);
Http\HeaderDictionaryIndexerFixer.cs (1)
19public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DiagnosticDescriptors.UseHeaderDictionaryPropertiesInsteadOfIndexer.Id);
RouteParameterUnusedParameterFixer.cs (1)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(
Microsoft.AspNetCore.Components.Analyzers (2)
ComponentInternalUsageDiagnosticAnalzyer.cs (1)
29public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.DoNotUseRenderTreeTypes);
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
23=> ImmutableArray.Create(DiagnosticDescriptors.ComponentParametersShouldBePublic.Id);
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
62var compilationWithAnalyzers = project.GetCompilationAsync().Result.WithAnalyzers(ImmutableArray.Create(analyzer));
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
ComponentInternalUsageDiagnosticAnalzyer.cs (1)
29public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.DoNotUseRenderTreeTypes);
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
23=> ImmutableArray.Create(DiagnosticDescriptors.ComponentParametersShouldBePublic.Id);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
62var compilationWithAnalyzers = project.GetCompilationAsync().Result.WithAnalyzers(ImmutableArray.Create(analyzer));
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\CompileTimeCreationTests.cs (1)
162new SourceFileResolver(ImmutableArray<string>.Empty, currentDirectory, ImmutableArray.Create(new KeyValuePair<string, string>(currentDirectory, mappedDirectory))));
Microsoft.AspNetCore.Mvc.Analyzers (2)
TagHelpersInCodeBlocksAnalyzer.cs (1)
17SupportedDiagnostics = ImmutableArray.Create(DiagnosticDescriptors.MVC1006_FunctionsContainingTagHelpersMustBeAsyncAndReturnTask);
TopLevelParameterNameAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs (1)
15public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
ApiActionsDoNotRequireExplicitModelValidationCodeFixProvider.cs (1)
21ImmutableArray.Create(ApiDiagnosticDescriptors.API1003_ApiActionsDoNotRequireExplicitModelValidationCheck.Id);
Microsoft.CodeAnalysis (52)
CodeGen\PermissionSetAttribute.cs (1)
112return ImmutableArray.Create<Cci.IMetadataNamedArgument>(new HexPropertyMetadataNamedArgument(stringType, new MetadataConstant(stringType, hexFileContent)));
Collections\ArrayBuilderExtensions.cs (3)
79return ImmutableArray.Create(map(items[0])); 119return ImmutableArray.Create(map(items[0], arg)); 159return ImmutableArray.Create(map(items[0], 0, arg));
Collections\ImmutableArrayExtensions.cs (4)
179return ImmutableArray.Create(map(items[0], 0, arg)); 494return ImmutableArray.Create(map(self[0], other[0])); 1202? ImmutableArray.Create(symbol) 1203: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol));
Collections\OrderPreservingMultiDictionary.cs (1)
281return ImmutableArray.Create<V>((V)_value);
Collections\TemporaryArray`1.cs (1)
3101 => ImmutableArray.Create(_item0),
CommandLine\CommonCompiler.LoggingMetadataFileReferenceResolver.cs (1)
36return ImmutableArray.Create(_provider(fullPath, properties));
Compilation\SymbolInfo.cs (1)
81=> this.Symbol == null ? CandidateSymbols : ImmutableArray.Create(this.Symbol);
DiagnosticAnalyzer\AnalysisScope.cs (2)
123var trees = filterFile.SourceTree != null ? ImmutableArray.Create(filterFile.SourceTree) : ImmutableArray<SyntaxTree>.Empty; 124var additionalFiles = filterFile.AdditionalFile != null ? ImmutableArray.Create(filterFile.AdditionalFile) : ImmutableArray<AdditionalText>.Empty;
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
1710await OnEventProcessedCoreAsync(processedContainerEvent, ImmutableArray.Create(analyzer), analysisScope, cancellationToken).ConfigureAwait(false);
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
300return ImmutableArray.Create(LanguageNames.CSharp);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
1298var analysisScope = _compilationAnalysisScope.WithAnalyzers(ImmutableArray.Create(analyzer), this);
InternalUtilities\OneOrMany.cs (1)
185=> HasOneItem ? ImmutableArray.Create(_one) : _many;
MetadataReader\MetadataHelpers.cs (3)
591private static readonly ImmutableArray<string> s_splitQualifiedNameSystem = ImmutableArray.Create(SystemString); 592private static readonly ImmutableArray<ReadOnlyMemory<char>> s_splitQualifiedNameSystemMemory = ImmutableArray.Create(SystemString.AsMemory()); 625return nameMemory.Span.SequenceEqual(SystemString.AsSpan()) ? splitSystemString : ImmutableArray.Create(convert(nameMemory));
MetadataReader\PEModule.cs (2)
1088private static readonly ImmutableArray<bool> s_simpleTransformFlags = ImmutableArray.Create(true); 1453return (ImmutableArray.Create(paramName), true);
MetadataReference\AssemblyMetadata.cs (2)
103_initialModules = ImmutableArray.Create(manifestModule); 186return new AssemblyMetadata(ImmutableArray.Create(module));
Operations\ControlFlowGraphBuilder.cs (6)
3290return new InvalidOperation(ImmutableArray.Create<IOperation>(child), 4310ImmutableArray.Create(lockStatement.LockTakenSymbol) : 4343ImmutableArray.Create<IArgumentOperation>( 4426ImmutableArray.Create<IArgumentOperation>( 4482regionForCollection = new RegionBuilder(ControlFlowRegionKind.LocalLifetime, locals: ImmutableArray.Create(local)); 7521var visitedReDimOperation = new ReDimOperation(ImmutableArray.Create(visitedReDimClause), operation.Preserve,
ReferenceManager\CommonReferenceManager.State.cs (1)
457private static readonly ImmutableArray<string> s_supersededAlias = ImmutableArray.Create("<superseded>");
SourceGeneration\GeneratorState.cs (1)
99ImmutableArray.Create(error),
SourceGeneration\Nodes\HostOutputNode.cs (1)
49var inputs = nodeTable.TrackIncrementalSteps ? ImmutableArray.Create((entry.Step!, entry.OutputIndex)) : default;
SourceGeneration\Nodes\NodeStateTable.cs (6)
192var inputs = ImmutableArray.Create((entry.Step!, entry.OutputIndex)); 569private static readonly ImmutableArray<EntryState> s_allAddedEntries = ImmutableArray.Create(EntryState.Added); 570private static readonly ImmutableArray<EntryState> s_allCachedEntries = ImmutableArray.Create(EntryState.Cached); 571private static readonly ImmutableArray<EntryState> s_allModifiedEntries = ImmutableArray.Create(EntryState.Modified); 576private static readonly ImmutableArray<EntryState> s_allRemovedEntries = ImmutableArray.Create(EntryState.Removed); 581private static readonly ImmutableArray<EntryState> s_allRemovedDueToInputRemoval = ImmutableArray.Create(EntryState.Removed);
SourceGeneration\Nodes\SharedInputNodes.cs (4)
18public static readonly InputNode<Compilation> Compilation = new InputNode<Compilation>(b => ImmutableArray.Create(b.Compilation)); 20public static readonly InputNode<CompilationOptions> CompilationOptions = new(b => ImmutableArray.Create(b.Compilation.Options), ReferenceEqualityComparer.Instance); 22public static readonly InputNode<ParseOptions> ParseOptions = new InputNode<ParseOptions>(b => ImmutableArray.Create(b.DriverState.ParseOptions)); 28public static readonly InputNode<AnalyzerConfigOptionsProvider> AnalyzerConfigOptions = new InputNode<AnalyzerConfigOptionsProvider>(b => ImmutableArray.Create(b.DriverState.OptionsProvider));
SourceGeneration\Nodes\SourceOutputNode.cs (1)
57var inputs = tableBuilder.TrackIncrementalSteps ? ImmutableArray.Create((entry.Step!, entry.OutputIndex)) : default;
SourceGeneration\Nodes\TransformNode.cs (2)
27: this(sourceNode, userFunc: (i, token) => ImmutableArray.Create(userFunc(i, token)), wrapUserFunc, comparer, name) 71var inputs = tableBuilder.TrackIncrementalSteps ? ImmutableArray.Create((entry.Step!, entry.OutputIndex)) : default;
SourceGeneration\Nodes\ValueSourceExtensions.cs (2)
36public static IncrementalValuesProvider<TSource> Where<TSource>(this IncrementalValuesProvider<TSource> source, Func<TSource, bool> predicate) => source.SelectMany((item, _) => predicate(item) ? ImmutableArray.Create(item) : ImmutableArray<TSource>.Empty); 38internal static IncrementalValuesProvider<TSource> Where<TSource>(this IncrementalValuesProvider<TSource> source, Func<TSource, CancellationToken, bool> predicate) => source.SelectMany((item, c) => predicate(item, c) ? ImmutableArray.Create(item) : ImmutableArray<TSource>.Empty);
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
523dictionary1.Add(keySelector(value), ImmutableArray.Create(value));
Text\ChangedText.cs (1)
206return ImmutableArray.Create(new TextChangeRange(new TextSpan(0, oldText.Length), _newText.Length));
Text\SourceText.cs (1)
890return ImmutableArray.Create(new TextChangeRange(new TextSpan(0, oldText.Length), this.Length));
Microsoft.CodeAnalysis.CodeStyle (25)
src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
122var additionalLocations = ImmutableArray.Create(binaryLike.GetLocation());
src\Analyzers\Core\Analyzers\NewLines\ConsecutiveStatementPlacement\AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
112additionalLocations: ImmutableArray.Create(nextToken.GetLocation()),
src\Analyzers\Core\Analyzers\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesDiagnosticAnalyzer.cs (1)
82additionalLocations: ImmutableArray.Create(token.GetLocation()),
src\Analyzers\Core\Analyzers\RemoveUnnecessaryCast\AbstractRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
74ImmutableArray.Create(node.GetLocation()));
src\Analyzers\Core\Analyzers\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
107var additionalLocations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
182var locations = ImmutableArray.Create(objectCreationExpression.GetLocation());
src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (3)
163additionalLocations: ImmutableArray.Create(assignment.GetLocation()), 183additionalLocations: ImmutableArray.Create(assignment.GetLocation()), 196additionalLocations: ImmutableArray.Create(assignment.GetLocation()),
src\Analyzers\Core\Analyzers\UseConditionalExpression\AbstractUseConditionalExpressionDiagnosticAnalyzer.cs (1)
60additionalLocations: ImmutableArray.Create(ifStatement.GetLocation()),
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
132var additionalLocations = ImmutableArray.Create(invocation.GetLocation());
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (2)
119var nodes = ImmutableArray.Create<SyntaxNode>(containingStatement).AddRange(matches.Select(m => m.Statement)); 123var locations = ImmutableArray.Create(objectCreationExpression.GetLocation());
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (3)
79return ImmutableArray.Create(map(items[0])); 119return ImmutableArray.Create(map(items[0], arg)); 159return ImmutableArray.Create(map(items[0], 0, arg));
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (4)
179return ImmutableArray.Create(map(items[0], 0, arg)); 494return ImmutableArray.Create(map(self[0], other[0])); 1202? ImmutableArray.Create(symbol) 1203: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol));
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
281return ImmutableArray.Create<V>((V)_value);
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
3101 => ImmutableArray.Create(_item0),
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
185=> HasOneItem ? ImmutableArray.Create(_one) : _many;
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
523dictionary1.Add(keySelector(value), ImmutableArray.Create(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (1)
27return ImmutableArray.Create(info.Symbol);
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
221? ImmutableArray.Create(disposeMethod) : default;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
56var diagnostics = ImmutableArray.Create(diagnostic ?? context.Diagnostics[0]);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
85var parameters = ImmutableArray.Create(CodeGenerationSymbolFactory.CreateParameterSymbol(
Microsoft.CodeAnalysis.CSharp (431)
Binder\Binder.cs (2)
880return new BoundBlock(statement.Syntax, locals, ImmutableArray.Create(statement)) 897ImmutableArray.Create(statement))
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
534enclosingBinder, qvm, ImmutableArray.Create(parameter),
Binder\Binder.ValueChecks.cs (9)
630(object)otherSymbol == null ? ImmutableArray<Symbol>.Empty : ImmutableArray.Create(otherSymbol), 631receiver == null ? ImmutableArray<BoundExpression>.Empty : ImmutableArray.Create(receiver), 893getItemOrSliceHelper = getItemOrSliceHelper.AsMember(getItemOrSliceHelper.ContainingType.Construct(ImmutableArray.Create(elementAccess.Expression.Type.TryGetInlineArrayElementField().TypeWithAnnotations))); 5481ImmutableArray.Create<ParameterSymbol>(new SignatureOnlyParameterSymbol( 5495arguments = ImmutableArray.Create(elementAccess.Expression); 5496refKinds = ImmutableArray.Create(parameterRefKind); 5521ImmutableArray.Create<ParameterSymbol>(new SignatureOnlyParameterSymbol( 5535arguments = ImmutableArray.Create(inlineArray); 5536refKinds = ImmutableArray.Create(parameterRefKind);
Binder\Binder.WithQueryLambdaParametersBinder.cs (2)
88ImmutableArray.Create<Symbol>(receiver.ExpressionSymbol), 89ImmutableArray.Create(BindToTypeForErrorRecovery(receiver)),
Binder\Binder_Attributes.cs (1)
1000initializer = ImmutableArray.Create(CreateTypedConstant(node, TypedConstantKind.Error, diagnostics, ref attrHasErrors, curArgumentHasErrors));
Binder\Binder_Crefs.cs (2)
60return ImmutableArray.Create<Symbol>(result); 725return ImmutableArray.Create<Symbol>(ConstructWithCrefTypeParameters(arity, typeArgumentListSyntax, symbol));
Binder\Binder_Expressions.cs (24)
164ImmutableArray.Create(BindToTypeForErrorRecovery(childNode)), 220ImmutableArray.Create(BindToTypeForErrorRecovery(expr)), 854node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(BindToTypeForErrorRecovery(BindValue(node.Expression, BindingDiagnosticBag.Discarded, BindValueKind.RefersToLocation))), 1006ImmutableArray.Create(BindValue(arguments[0].Expression, diagnostics, BindValueKind.RValue)) : 1042ImmutableArray.Create<BoundExpression>(boundArgument), CreateErrorType("void")); 1643symbols: ImmutableArray.Create(symbol), 1644childBoundNodes: ImmutableArray.Create(BindToTypeForErrorRecovery(expression)), 4185ImmutableArray.Create(boundExpression.ExpressionSymbol), 4186ImmutableArray.Create(boundExpression)); 4562typeArguments: ImmutableArray.Create(elementTypeWithAnnotations), 5409return new BoundBadExpression(node, LookupResultKind.NotInvocable, StaticCast<Symbol>.From(type.InstanceConstructors), ImmutableArray.Create(argument), type); 5419argument.Syntax, default, WellKnownMemberNames.DelegateInvokeName, ImmutableArray.Create(sourceDelegate.DelegateInvokeMethod), 5553return new BoundBadExpression(node, LookupResultKind.NotCreatable, ImmutableArray.Create<Symbol?>(type), children.ToImmutableAndFree(), type) { WasCompilerGenerated = wasCompilerGenerated }; 6309ImmutableArray.Create(boundElementInitializer), 6537ImmutableArray.Create((BoundExpression)addElementPlaceholder), 7777return new BoundBadExpression(node, LookupResultKind.Ambiguous, lookupResult.Symbols.AsImmutable(), ImmutableArray.Create(boundLeft), CreateErrorType(rightName), hasErrors: true); 7814return new BoundBadExpression(node, lookupResult.Kind, symbols.AsImmutable(), ImmutableArray.Create(boundLeft), CreateErrorType(rightName), hasErrors: true); 8160(object)symbolOpt == null ? ImmutableArray<Symbol>.Empty : ImmutableArray.Create(symbolOpt), 8161boundLeft == null ? ImmutableArray<BoundExpression>.Empty : ImmutableArray.Create(BindToTypeForErrorRecovery(boundLeft)), 9197Construct(ImmutableArray.Create(elementField.TypeWithAnnotations)); 9373var argumentPlaceholders = ImmutableArray.Create(new BoundImplicitIndexerValuePlaceholder(convertedArguments[0].Syntax, int32) { WasCompilerGenerated = true }); 10040argumentPlaceholders = ImmutableArray.Create(intPlaceholder); 10119syntax, typeArgumentsOpt: default, method.Name, ImmutableArray.Create(method), 10399methods = ImmutableArray.Create(method);
Binder\Binder_InterpolatedString.cs (1)
584ImmutableArray.Create(unconvertedInterpolatedString.Parts),
Binder\Binder_Invocation.cs (2)
121return BadExpression(node, LookupResultKind.Empty, ImmutableArray.Create(symbol), args.Add(receiver), wasCompilerGenerated: true); 1729ImmutableArray.Create(arraySize),
Binder\Binder_Query.cs (11)
303ImmutableArray.Create(state.fromExpression), state.fromExpression.Type); 736yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), CreateErrorType()); 742yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), yExpression.Type); 752var lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x), let.Expression, bodyFactory, diagnostics.AccumulatesDependencies); 803field2Value = new BoundBadExpression(field2Value.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(field2Value), field2Value.Type, true); 828return MakeQueryUnboundLambda(qvm, ImmutableArray.Create(parameter), expression, withDependencies); 844return MakeQueryUnboundLambda(expression, new QueryUnboundLambdaState(this, qvm, ImmutableArray.Create(parameter), (LambdaSymbol lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics) => 880return MakeQueryInvocation(node, receiver, methodName, default(SeparatedSyntaxList<TypeSyntax>), default(ImmutableArray<TypeWithAnnotations>), ImmutableArray.Create(arg), diagnostics 906return MakeQueryInvocation(node, receiver, methodName, new SeparatedSyntaxList<TypeSyntax>(new SyntaxNodeOrTokenList(typeArgSyntax, 0)), ImmutableArray.Create(typeArg), ImmutableArray<BoundExpression>.Empty, diagnostics 975receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.NotAValue, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(receiver), CreateErrorType()); 997receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.NotAValue, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(receiver), CreateErrorType());
Binder\Binder_Statements.cs (4)
520return new BoundBadStatement(node, ImmutableArray.Create<BoundNode>(expression), true); 539childNodes = ImmutableArray.Create<BoundNode>(value); 3532return new BoundBlock(node, locals, ImmutableArray.Create(statement)) { WasCompilerGenerated = node.Kind() != SyntaxKind.ArrowExpressionClause }; 4004arguments: ImmutableArray.Create(argument),
Binder\Binder_Symbols.cs (2)
1309ImmutableArray.Create<Symbol>(lookupResultSymbol), 1469receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.Ambiguous, ImmutableArray<Symbol>.Empty, ImmutableArray.Create(receiver), receiver.Type, hasErrors: true).MakeCompilerGenerated();
Binder\ForEachLoopBinder.cs (3)
94return ImmutableArray.Create<LocalSymbol>(iterationVariable); 726ImmutableArray.Create(collectionExpr), 843spanType = spanType.Construct(ImmutableArray.Create(elementField.TypeWithAnnotations));
Binder\ForLoopBinder.cs (1)
120increment = new BoundBlock(increment.Syntax, locals, ImmutableArray.Create(increment))
Binder\Semantics\Conversions\Conversion.cs (9)
330internal static ImmutableArray<Conversion> IdentityUnderlying = ImmutableArray.Create(Identity); 331internal static ImmutableArray<Conversion> ImplicitConstantUnderlying = ImmutableArray.Create(ImplicitConstant); 332internal static ImmutableArray<Conversion> ImplicitNumericUnderlying = ImmutableArray.Create(ImplicitNumeric); 333internal static ImmutableArray<Conversion> ExplicitNumericUnderlying = ImmutableArray.Create(ExplicitNumeric); 334internal static ImmutableArray<Conversion> ExplicitEnumerationUnderlying = ImmutableArray.Create(ExplicitEnumeration); 335internal static ImmutableArray<Conversion> PointerToIntegerUnderlying = ImmutableArray.Create(PointerToInteger); 340return new Conversion(ConversionKind.StackAllocToPointerType, ImmutableArray.Create(underlyingConversion)); 345return new Conversion(ConversionKind.StackAllocToSpanType, ImmutableArray.Create(underlyingConversion)); 360_ => new Conversion(kind, ImmutableArray.Create(nestedConversion)),
Binder\Semantics\Conversions\ConversionsBase.cs (6)
1150HasIdentityConversionInternal(((NamedTypeSymbol)destination.OriginalDefinition).Construct(ImmutableArray.Create(elementType)), destination)) 1176return new Conversion(ConversionKind.ImplicitNullable, ImmutableArray.Create(underlyingConversion)); 1312return new Conversion(ConversionKind.ImplicitNullable, ImmutableArray.Create(underlyingTupleConversion)); 1341return new Conversion(ConversionKind.ExplicitNullable, ImmutableArray.Create(underlyingTupleConversion)); 2275return new Conversion(ConversionKind.ImplicitNullable, ImmutableArray.Create(tupleConversion)); 2472return new Conversion(ConversionKind.ExplicitNullable, ImmutableArray.Create(tupleConversion));
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
4503return MemberAnalysisResult.BadArgumentConversions(argsToParameters, MemberAnalysisResult.CreateBadArgumentsWithPosition(argumentPosition), ImmutableArray.Create(conversion),
Binder\SwitchBinder.cs (2)
446return new BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create(switchGoverningExpression), switchGoverningType ?? CreateErrorType()); 547childBoundNodes: gotoCaseExpressionOpt != null ? ImmutableArray.Create<BoundNode>(gotoCaseExpressionOpt) : ImmutableArray<BoundNode>.Empty,
BoundTree\Constructors.cs (2)
175return Synthesized(syntax, receiverOpt, initialBindingReceiverIsSubjectToCloning: initialBindingReceiverIsSubjectToCloning, method, ImmutableArray.Create(arg0)); 662return new BoundBlock(syntax, ImmutableArray<LocalSymbol>.Empty, ImmutableArray.Create(statement))
BoundTree\Expression.cs (10)
81protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Value); 91protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Argument); 101protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Operand); 106protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Receiver); 111protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Operand); 116protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Operand); 126protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Expression); 154protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Expression); 159protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.ReceiverOpt); 175protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Expression);
BoundTree\Statement.cs (1)
35protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Operand);
BoundTree\UnboundLambda.cs (1)
335return TypeWithAnnotations.Create(taskTypeT.Construct(ImmutableArray.Create(bestResultType)));
CommandLine\CSharpCommandLineParser.cs (1)
1955var aliases = (alias != null) ? ImmutableArray.Create(alias) : ImmutableArray<string>.Empty;
Compilation\BuiltInOperators.cs (2)
322ImmutableArray.Create<BinaryOperatorSignature>(GetSignature(BinaryOperatorKind.LogicalBoolAnd)), //and 324ImmutableArray.Create<BinaryOperatorSignature>(GetSignature(BinaryOperatorKind.LogicalBoolOr)), //or
Compilation\CSharpSemanticModel.cs (2)
298crefSymbols = ImmutableArray.Create<Symbol>(binder.BindType(expression, BindingDiagnosticBag.Discarded).Type); 5189? ImmutableArray.Create(symbol)
Compilation\SyntaxTreeSemanticModel.cs (1)
238result = new SymbolInfo(ImmutableArray.Create<ISymbol>(info.Symbol), CandidateReason.NotATypeOrNamespace);
Compiler\AnonymousTypeMethodBodySynthesizer.cs (1)
149F.CloseMethod(F.Block(ImmutableArray.Create<LocalSymbol>(boundLocal.LocalSymbol), assignment, retStatement));
Compiler\MethodBodySynthesizer.cs (6)
106ImmutableArray.Create<BoundExpression>(new BoundLiteral(syntax, ConstantValue.Create(slotIndex), intType) { WasCompilerGenerated = true }), 126ImmutableArray.Create<BoundExpression>(new BoundLiteral(syntax, ConstantValue.Create(0), intType) { WasCompilerGenerated = true }), 154ImmutableArray.Create<BoundExpression>(new BoundLiteral(syntax, ConstantValue.Create(targetSubmissionIndex), intType) { WasCompilerGenerated = true }), 421compareExchangeMethod = compareExchangeMethod.Construct(ImmutableArray.Create<TypeSymbol>(delegateType)); 566ImmutableArray.Create<BoundStatement>( 574ImmutableArray.Create<BoundStatement>(
Compiler\MethodCompiler.cs (3)
1478return new BoundBadStatement(body.Syntax, ImmutableArray.Create<BoundNode>(body), hasErrors: true); 1860body = new BoundBlock(constructor.Syntax, constructor.Locals, ImmutableArray.Create<BoundStatement>(constructor.Initializer)); 1955statements = ImmutableArray.Create(constructorInitializer);
Declarations\DeclarationTreeBuilder.cs (2)
354children: ImmutableArray.Create(decl), 518children = ImmutableArray.Create<SingleNamespaceOrTypeDeclaration>(ns);
Declarations\MergedNamespaceDeclaration.cs (1)
35return new MergedNamespaceDeclaration(ImmutableArray.Create(declaration));
Emitter\Model\PEModuleBuilder.cs (4)
1583ImmutableArray.Create(new TypedConstant(byteArrayType, value))); 1602ImmutableArray.Create(new TypedConstant(byteType, TypedConstantKind.Primitive, nullableValue))); 1622ImmutableArray.Create(new TypedConstant(Compilation.GetSpecialType(SpecialType.System_Byte), TypedConstantKind.Primitive, value))); 1666var arguments = ImmutableArray.Create(new TypedConstant(boolArray, transformFlags));
Emitter\NoPia\EmbeddedTypesManager.cs (1)
148ImmutableArray.Create(new TypedConstant(ctor.Parameters[0].Type, TypedConstantKind.Type, ctor.ContainingAssembly.GetSpecialType(SpecialType.System_Object))),
FlowAnalysis\NullableWalker.cs (5)
4734return namedType.OriginalDefinition.Construct(ImmutableArray.Create(elementType)); 4889type = TypeWithAnnotations.Create(((NamedTypeSymbol)node.Type).OriginalDefinition.Construct(ImmutableArray.Create(type))); 6427var constructedType = wellKnownType.Construct(ImmutableArray.Create(parameterType)); 9605return compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(ImmutableArray.Create(underlying)); 11062getEnumeratorType = spanType.Construct(ImmutableArray.Create(convertedResult.Type!.TryGetInlineArrayElementField()!.TypeWithAnnotations));
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (5)
199ImmutableArray.Create(catchAll), 414ImmutableArray.Create<LocalSymbol>(obj), 442ImmutableArray.Create(ex), 582ImmutableArray.Create(catchTemp), 628ImmutableArray.Create(catchTemp),
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (6)
235ImmutableArray.Create(exceptionLocal), 260? ImmutableArray.Create<BoundExpression>(F.Local(_exprRetValue)) 577ImmutableArray.Create(notifyCompletionTemp), 643ImmutableArray.Create(thisTemp), 644ImmutableArray.Create<BoundExpression>(F.AssignmentExpression(F.Local(thisTemp), F.This())), 653return (secondOpt == null) ? ImmutableArray.Create(first) : ImmutableArray.Create(first, secondOpt);
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (2)
397ImmutableArray.Create<BoundExpression>(instLocal))); 459ImmutableArray.Create(instSymbol),
Lowering\AsyncRewriter\AsyncRewriter.cs (2)
95return new BoundBadStatement(bodyWithAwaitLifted.Syntax, ImmutableArray.Create<BoundNode>(bodyWithAwaitLifted), hasErrors: true); 265ImmutableArray.Create<BoundExpression>(F.Local(stateMachineVariable)))));
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
394DeclareLocals(_currentScope, ImmutableArray.Create<Symbol>(thisParam));
Lowering\ClosureConversion\ClosureConversion.cs (2)
1124sideEffects: ImmutableArray.Create<BoundExpression>(rewritten), 1731return new BoundBadExpression(F.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (9)
351return new BoundBadExpression(node.Syntax, default(LookupResultKind), ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), ExpressionType); 382return new BoundBadExpression(node.Syntax, 0, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), ExpressionType); 856ImmutableArray.Create<TypeSymbol>(underlyingDelegateType), 900ImmutableArray.Create(param), 901ImmutableArray.Create<BoundExpression>(_bound.AssignmentExpression(parameterReference, parameter)), 905_bound.ArrayOrEmpty(ParameterExpressionType, ImmutableArray.Create<BoundExpression>(parameterReference)))); 1091return new BoundBadExpression(node.Syntax, default(LookupResultKind), ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type); 1098return new BoundBadExpression(node.Syntax, default(LookupResultKind), ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type); 1130return new BoundBadExpression(node.Syntax, default(LookupResultKind), ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
Lowering\InitializerRewriter.cs (1)
112boundStatement = new BoundBlock(syntax, fieldInit.Locals, ImmutableArray.Create(boundStatement)) { WasCompilerGenerated = fieldInit.WasCompilerGenerated };
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
266ImmutableArray.Create(_methodBodyFactory.MethodDefIndex(_method)))); 274ImmutableArray.Create(_methodBodyFactory.MethodDefIndex(_method)));
Lowering\Instrumentation\DebugInfoInjector.cs (1)
126return block.Update(block.Locals, block.LocalFunctions, block.HasUnsafeModifier, block.Instrumentation, ImmutableArray.Create(InstrumentFieldOrPropertyInitializer(block.Statements.Single(), syntax)));
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (2)
192ImmutableArray.Create(local), 193ImmutableArray.Create<BoundExpression>(factory.AssignmentExpression(factory.Local(local), condition)),
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (2)
540ImmutableArray.Create<BoundStatement>(logCallStatement)); 603return _factory.Sequence(ImmutableArray.Create(temp.LocalSymbol), builder.ToImmutableAndFree(), temp);
Lowering\IteratorRewriter\IteratorConstructor.cs (1)
27_parameters = ImmutableArray.Create<ParameterSymbol>(
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (4)
113ImmutableArray.Create(cachedState) : 177ImmutableArray.Create<LocalSymbol>(stateLocal), 205ImmutableArray.Create<LocalSymbol>(_methodValue), 411ImmutableArray.Create(this.cachedThis) :
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
218var IEnumeratorOfElementType = F.SpecialType(SpecialType.System_Collections_Generic_IEnumerator_T).Construct(ImmutableArray.Create(_elementType));
Lowering\LocalRewriter\LocalRewriter.cs (6)
173return new BoundBadStatement(statement.Syntax, ImmutableArray.Create<BoundNode>(statement), hasErrors: true); 578return BadExpression(node.Syntax, node.Type, ImmutableArray.Create(node)); 583return BadExpression(syntax, resultType, ImmutableArray.Create(child)); 720return block.Update(locals, block.LocalFunctions, block.HasUnsafeModifier, block.Instrumentation, ImmutableArray.Create(statement)); 732ImmutableArray.Create(statement)); 849.Construct(ImmutableArray.Create(elementType)),
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
74sideEffects: ImmutableArray.Create<BoundExpression>(rewrittenOperand),
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
345ImmutableArray.Create(setterCall),
Lowering\LocalRewriter\LocalRewriter_Await.cs (2)
52locals: ImmutableArray.Create<LocalSymbol>(tempAccess.LocalSymbol), 53sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignment),
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (9)
107locals: ImmutableArray.Create(boundTemp.LocalSymbol), 108sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignment), 705return _factory.Sequence(ImmutableArray.Create(temp.LocalSymbol), ImmutableArray.Create<BoundExpression>(tempAssignment), result); 853sideEffects: ImmutableArray.Create<BoundExpression>(nonNull), 1397sideEffects: ImmutableArray.Create<BoundExpression>(sideEffect), 1734locals: ImmutableArray.Create<LocalSymbol>(boundTemp.LocalSymbol), 1735sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignment), 1965sideEffects: ImmutableArray.Create<BoundExpression>(nonNullValue),
Lowering\LocalRewriter\LocalRewriter_Call.cs (5)
808extraRefInitialization is object ? ImmutableArray.Create<BoundExpression>(extraRefInitialization, assignmentToTemp) : ImmutableArray.Create<BoundExpression>(assignmentToTemp), 884visitedArgumentsBuilder[argIndex] = _factory.Sequence(ImmutableArray<LocalSymbol>.Empty, ImmutableArray.Create<BoundExpression>(store), local); 1408ImmutableArray.Create<BoundExpression>( 1434arrayEmpty = arrayEmpty.Construct(ImmutableArray.Create(elementType)); 1644sideEffects: ImmutableArray.Create<BoundExpression>(boundAssignmentToTemp),
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (13)
243return _factory.StaticCall(asImmutableArray.Construct(ImmutableArray.Create(elementType)), ImmutableArray.Create(arrayCreation)); 378ImmutableArray.Create(temp.LocalSymbol), 425var typeArgs = ImmutableArray.Create(elementType); 498arguments: ImmutableArray.Create(span), 571var inlineArrayType = _factory.ModuleBuilderOpt.EnsureInlineArrayTypeExists(syntax, _factory, arrayLength, _diagnostics.DiagnosticBag).Construct(ImmutableArray.Create(elementType)); 748ImmutableArray.Create<BoundExpression>( 774ImmutableArray.Create(GetKnownLengthExpression(elements, numberIncludingLastSpread, localsBuilder)), 1025var typeArguments = ImmutableArray.Create(elementType); 1071rewrittenReceiver = _factory.New(constructor, ImmutableArray.Create<BoundExpression>(knownLengthTemp)); 1076rewrittenReceiver = _factory.New(constructor, ImmutableArray.Create(knownLengthExpression)); 1348var iterationVariables = ImmutableArray.Create(iterationVariable); 1421ImmutableArray.Create(statement),
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (8)
160ImmutableArray.Create<BoundExpression>(_factory.Literal(builder.Count)), 1197locals: ImmutableArray.Create(boundTemp.LocalSymbol), 1198sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignment), 1473locals: ImmutableArray.Create(boundTemp.LocalSymbol), 1474sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignment), 1530rewrittenArguments: ImmutableArray.Create(rewrittenOperand)); 1782var result = UserDefinedConversionResult.Valid(ImmutableArray.Create<UserDefinedConversionAnalysis>(analysis), 0); 1882var result = UserDefinedConversionResult.Valid(ImmutableArray.Create<UserDefinedConversionAnalysis>(analysis), 0);
Lowering\LocalRewriter\LocalRewriter_Event.cs (7)
54var rewrittenArguments = ImmutableArray.Create<BoundExpression>(rewrittenArgument); 124rewrittenArguments: ImmutableArray.Create<BoundExpression>(removeDelegate)); 128clearCall = new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(removeDelegate), ErrorTypeSymbol.UnknownResultType); 181: ImmutableArray.Create<LocalSymbol>(boundTemp.LocalSymbol); 265getOrCreateCall = new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(fieldAccess), ErrorTypeSymbol.UnknownResultType); 287return new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(getOrCreateCall), ErrorTypeSymbol.UnknownResultType); 333return new BoundBadExpression(node.Syntax, LookupResultKind.NotCreatable, ImmutableArray.Create<Symbol?>(node.Event),
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (4)
380sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignment), 401locals: ImmutableArray.Create(nullableBoundTemp.LocalSymbol), 402sideEffects: ImmutableArray.Create<BoundExpression>(nullableTempAssignment), 544lengthCall = new BoundBadExpression(fixedInitializer.Syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(factory.Local(pinnedTemp)), ErrorTypeSymbol.UnknownResultType);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (11)
260tryBlock: new BoundBlock(forEachSyntax, locals: ImmutableArray<LocalSymbol>.Empty, statements: ImmutableArray.Create(whileLoop)), 269locals: ImmutableArray.Create(enumeratorVar), 281locals: ImmutableArray.Create(enumeratorVar), 412statements: ImmutableArray.Create(alwaysOrMaybeDisposeStmt)); 466locals: ImmutableArray.Create(disposableVar), 944indices: ImmutableArray.Create<BoundExpression>(boundPositionVar), 1096ImmutableArray<BoundExpression> dimensionArgument = ImmutableArray.Create( 1150ImmutableArray<BoundExpression> dimensionArgument = ImmutableArray.Create( 1197outerLocals: ImmutableArray.Create(positionVar[dimension]), 1211ImmutableArray.Create(arrayVar).Concat(upperVar.AsImmutableOrNull()), 1212ImmutableArray.Create(arrayVarDecl).Concat(upperVarDecl.AsImmutableOrNull()).Add(forLoop));
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (3)
297result = _factory.Sequence(ImmutableArray.Create(((BoundLocal)rewrittenReceiver).LocalSymbol), 298ImmutableArray.Create((BoundExpression)receiverStore), 512!CodeGenerator.IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(ImmutableArray.Create(makeOffsetInput))))
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
92sideEffects: ImmutableArray.Create<BoundExpression>(loweredOperand),
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (4)
80locals: ImmutableArray.Create(boundTemp.LocalSymbol), 117exitCallExpr = new BoundBadExpression(lockSyntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(boundLockTemp), ErrorTypeSymbol.UnknownResultType); 212enterCallExpr = new BoundBadExpression(lockSyntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(boundLockTemp), ErrorTypeSymbol.UnknownResultType); 221ImmutableArray.Create(boundLockTemp.LocalSymbol),
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (2)
184locals: ImmutableArray.Create(boundTemp.LocalSymbol), 185sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignment),
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (2)
291locals = ImmutableArray.Create(value.LocalSymbol); 341method = method.Construct(ImmutableArray.Create<TypeSymbol>(typeParameter));
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
187return F.StaticCall(constructionMethod, ImmutableArray.Create(arg));
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (3)
211arguments = ImmutableArray.Create(boundCoalesce.LeftOperand); 729ImmutableArray.Create(temp.LocalSymbol), 730ImmutableArray.Create<BoundExpression>(store),
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
287: ImmutableArray.Create(HandlerTemp.LocalSymbol);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (5)
236locals: ImmutableArray.Create<LocalSymbol>(boundTemp.LocalSymbol), 237sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignment), 550ImmutableArray.Create<BoundExpression>(tempAssignment), 712locals: ImmutableArray.Create<LocalSymbol>(boundTemp.LocalSymbol), 713sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignment),
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (3)
83ImmutableArray.Create<BoundStatement>(result)); 258locals: ImmutableArray.Create<LocalSymbol>(boundTemp.LocalSymbol), //localSymbol will be declared by an enclosing block 463disposeCall = new BoundBadExpression(resourceSyntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(disposedExpression), ErrorTypeSymbol.UnknownResultType);
Lowering\LocalRewriter\LoweredDynamicOperation.cs (1)
75return new BoundSequence(_factory.Syntax, _temps, ImmutableArray.Create(SiteInitialization), SiteInvocation, _resultType) { WasCompilerGenerated = true };
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (2)
97var loweredArguments = ImmutableArray.Create(loweredOperand); 129var loweredArguments = ImmutableArray.Create(loweredOperand);
Lowering\MethodToClassRewriter.cs (2)
536ImmutableArray.Create<LocalSymbol>(tempLocal.LocalSymbol), 537ImmutableArray.Create<BoundExpression>(tempAssignment),
Lowering\SpillSequenceSpiller.cs (2)
442return call.Update(ImmutableArray.Create(Spill(builder, call.Arguments[0], call.ArgumentRefKindsOpt[0]))); 455ImmutableArray.Create(Spill(builder, call.Arguments[0])));
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
560return F.Sequence(ImmutableArray.Create(sacrificialTemp), sideEffects.ToImmutableAndFree(), F.AssignmentExpression(F.Local(sacrificialTemp), replacement, isRef: true));
Lowering\StateMachineRewriter\StateMachineRewriter.cs (2)
302ImmutableArray.Create(stateMachineVariable), 505F.CloseMethod(F.Block(ImmutableArray.Create(resultVariable), bodyBuilder.ToImmutableAndFree()));
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
101get { return ImmutableArray.Create(ImplementedProperty); }
Lowering\SyntheticBoundNodeFactory.cs (9)
831return Call(receiver, method, ImmutableArray.Create(arg0), useStrictArgumentRefKinds); 845=> Call(receiver, WellKnownMethod(method), ImmutableArray.Create(arg0)); 987return MakeSequence(ImmutableArray.Create<LocalSymbol>(temp), parts); 1055=> SwitchSection(ImmutableArray.Create(value), statements); 1538arrayEmpty = arrayEmpty.Construct(ImmutableArray.Create(elementType)); 1550ImmutableArray.Create<BoundExpression>(Literal(elements.Length)), 1559ImmutableArray.Create<BoundExpression>(length), 1595return new BoundCatchBlock(Syntax, ImmutableArray.Create(local), source, source.Type, exceptionFilterPrologueOpt: null, exceptionFilterOpt: null, body: block, isSynthesizedAsyncCatchAll: false); 1845sideEffects: ImmutableArray.Create<BoundExpression>(nonNullValue),
Operations\CSharpOperationFactory.cs (7)
402return ImmutableArray.Create(CreateVariableDeclaratorInternal((BoundLocalDeclaration)declaration, (declarationSyntax as VariableDeclarationSyntax)?.Variables[0] ?? declarationSyntax)); 1645return new ArrayElementReferenceOperation(instance, ImmutableArray.Create(argument), _semanticModel, syntax, type, isImplicit); 1726ImmutableArray<IFieldSymbol> initializedFields = ImmutableArray.Create<IFieldSymbol>(boundFieldEqualsValue.Field.GetPublicSymbol()); 1735ImmutableArray<IPropertySymbol> initializedProperties = ImmutableArray.Create<IPropertySymbol>(boundPropertyEqualsValue.Property.GetPublicSymbol()); 2147return new VariableDeclarationGroupOperation(ImmutableArray.Create(multiVariableDeclaration), _semanticModel, varStatement, isImplicit); 2169var variableDeclaration = new VariableDeclarationGroupOperation(ImmutableArray.Create(multiVariableDeclaration), _semanticModel, declarationGroupSyntax, isImplicit); 2884propertySubpatterns: ImmutableArray.Create(result), declaredSymbol: null,
Operations\CSharpOperationFactory_Methods.cs (1)
30return ImmutableArray.Create(statement);
Symbols\AbstractTypeMap.cs (1)
201interfaces = ImmutableArray.Create<NamedTypeSymbol>(SubstituteNamedType(interfaces[0]));
Symbols\AliasSymbol.cs (1)
75return new AliasSymbolFromResolvedTarget(targetSymbol, aliasToken.ValueText, containingSymbol, ImmutableArray.Create(aliasToken.GetLocation()), isExtern);
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
173get { return ImmutableArray.Create<Location>(this.TypeDescriptor.Location); }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.EqualsMethodSymbol.cs (1)
24_parameters = ImmutableArray.Create<ParameterSymbol>(
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (1)
154ImmutableArray.Create(
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
35this(container, field, field.TypeWithAnnotations, index, ImmutableArray.Create<Location>(field.Location), includeBackingField: false)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (2)
220arguments: ImmutableArray.Create(new TypedConstant(Manager.System_String, TypedConstantKind.Primitive, displayString)), 221namedArguments: ImmutableArray.Create(new KeyValuePair<WellKnownMember, TypedConstant>(
Symbols\ArrayTypeSymbol.cs (2)
115constructedInterfaces.Add(new ConstructedNamedTypeSymbol(iListOfT, ImmutableArray.Create(elementTypeWithAnnotations))); 122constructedInterfaces.Add(new ConstructedNamedTypeSymbol(iReadOnlyListOfT, ImmutableArray.Create(elementTypeWithAnnotations)));
Symbols\Compilation_WellKnownMembers.cs (6)
485ImmutableArray.Create(ticks)); 496ImmutableArray.Create(new TypedConstant( 767ImmutableArray.Create(typedConstantDebugMode)); 790var arguments = ImmutableArray.Create(new TypedConstant(boolArray, transformFlags)); 807var args = ImmutableArray.Create(new TypedConstant(stringArray, names)); 815var arguments = ImmutableArray.Create(
Symbols\ExtendedErrorTypeSymbol.cs (1)
70: this(containingSymbol, ImmutableArray.Create<Symbol>(guessSymbol), resultKind, errorInfo, GetArity(guessSymbol), unreported)
Symbols\FieldSymbol.cs (1)
495Symbol found = CSharpCompilation.GetRuntimeMember(ImmutableArray.Create<Symbol>(this), descriptor, CSharpCompilation.SpecialMembersSignatureComparer.Instance,
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
514=> GetCustomModifierForRefKind(refKind, compilation) is { } modifier ? ImmutableArray.Create(modifier) : ImmutableArray<CustomModifier>.Empty;
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
154this.MetadataLocation = ImmutableArray.Create<MetadataLocation>(new MetadataLocation(this));
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
595return ImmutableArray.Create<NamedTypeSymbol>(new UnsupportedMetadataTypeSymbol(mrEx));
Symbols\Metadata\PE\PENamespaceSymbol.cs (1)
136return ImmutableArray.Create<Symbol>(ns);
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
173private static readonly ImmutableArray<int> s_defaultStringHandlerAttributeIndexes = ImmutableArray.Create(int.MinValue);
Symbols\MethodSymbol.cs (1)
1287ImmutableArray.Create(new TypedConstant(declaringCompilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, nameof(CompilerFeatureRequiredFeatures.RequiredMembers)))
Symbols\MissingAssemblySymbol.cs (1)
80_lazyModules = ImmutableArray.Create<ModuleSymbol>(moduleSymbol);
Symbols\NamespaceSymbol.cs (1)
86return ImmutableArray.Create(this);
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
733overriddenMembers = ImmutableArray.Create<Symbol>(representativeMember);
Symbols\RangeVariableSymbol.cs (2)
49=> _location is null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(_location); 66return ImmutableArray.Create(node.GetReference());
Symbols\Source\CrefTypeParameterSymbol.cs (2)
181return ImmutableArray.Create<Location>(_declaringSyntax.GetLocation()); 189return ImmutableArray.Create<SyntaxReference>(_declaringSyntax);
Symbols\Source\LambdaSymbol.cs (2)
223return ImmutableArray.Create<Location>(_syntax.Location); 250return ImmutableArray.Create<SyntaxReference>(syntaxReferenceOpt);
Symbols\Source\ParameterHelpers.cs (2)
1007return ImmutableArray.Create(CSharpCustomModifier.CreateOptional(requiresLocationType)); 1018return ImmutableArray.Create(CSharpCustomModifier.CreateRequired(modifierType));
Symbols\Source\SourceAssemblySymbol.cs (6)
1838ImmutableArray.Create(typedConstantRequestMinimum), 1839ImmutableArray.Create(new KeyValuePair<WellKnownMember, TypedConstant>( 1976ImmutableArray.Create(typedConstantNoStringInterning))); 1996ImmutableArray.Create(new KeyValuePair<WellKnownMember, TypedConstant>( 2026AddSynthesizedAttribute(ref attributes, _compilation.TrySynthesizeAttribute(WellKnownMember.System_Reflection_AssemblyKeyNameAttribute__ctor, ImmutableArray.Create(typedConstant))); 2036AddSynthesizedAttribute(ref attributes, _compilation.TrySynthesizeAttribute(WellKnownMember.System_Reflection_AssemblyKeyFileAttribute__ctor, ImmutableArray.Create(typedConstant)));
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1282parameterOrdinals = ImmutableArray.Create(ordinal);
Symbols\Source\SourceCustomEventSymbol.cs (1)
170ImmutableArray.Create<EventSymbol>(explicitlyImplementedEvent);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
283_refCustomModifiers = ImmutableArray.Create(CSharpCustomModifier.CreateRequired(modifierType));
Symbols\Source\SourceEventAccessorSymbol.cs (2)
49_parameters = ImmutableArray.Create<ParameterSymbol>(new SynthesizedEventAccessorValueParameterSymbol(this, 0)); 64explicitInterfaceImplementations = (object)implementedAccessor == null ? ImmutableArray<MethodSymbol>.Empty : ImmutableArray.Create<MethodSymbol>(implementedAccessor);
Symbols\Source\SourceEventSymbol.cs (2)
118return ImmutableArray.Create(_location); 129return ImmutableArray.Create<SyntaxReference>(_syntaxRef);
Symbols\Source\SourceFieldSymbol.cs (3)
88return ImmutableArray.Create<CustomModifier>( 220=> ImmutableArray.Create(GetFirstLocation()); 226=> ImmutableArray.Create(_syntaxReference);
Symbols\Source\SourceFixedFieldSymbol.cs (2)
226(name == _constructor.Name) ? ImmutableArray.Create<Symbol>(_constructor) : 227(name == FixedElementFieldName) ? ImmutableArray.Create<Symbol>(_internalField) :
Symbols\Source\SourceLabelSymbol.cs (2)
83: ImmutableArray.Create<Location>(_identifierNodeOrToken.GetLocation()!); 103return node == null ? ImmutableArray<SyntaxReference>.Empty : ImmutableArray.Create<SyntaxReference>(node.GetReference());
Symbols\Source\SourceLocalSymbol.cs (2)
415=> ImmutableArray.Create(GetFirstLocation()); 461return ImmutableArray.Create(node.GetReference());
Symbols\Source\SourceMemberContainerSymbol.cs (5)
1609{ symbol.Name.AsMemory(), ImmutableArray.Create(symbol) }, 1635: ImmutableArray.Create((Symbol)pair.Value)); 4351ImmutableArray.Create<ParameterSymbol>(new SignatureOnlyParameterSymbol( 4400ImmutableArray.Create<ParameterSymbol>(new SignatureOnlyParameterSymbol( 4727ImmutableArray.Create<ParameterSymbol>(new SignatureOnlyParameterSymbol(
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
169implementingMemberAndDiagnostics = new SymbolAndDiagnostics(null, new ReadOnlyBindingDiagnostic<AssemblySymbol>(ImmutableArray.Create(diag), default)); 229var info = new CSDiagnosticInfo(ErrorCode.ERR_MixingWinRTEventWithRegular, args, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<Location>(this.GetFirstLocation()));
Symbols\Source\SourceMemberFieldSymbol.cs (1)
473type = TypeWithAnnotations.Create(tokenTableType.Construct(ImmutableArray.Create(@event.TypeWithAnnotations)));
Symbols\Source\SourceMemberMethodSymbol.cs (4)
777=> ImmutableArray.Create(_location); 1051ImmutableArray.Create(arg))); 1057ImmutableArray.Create(arg))); 1063ImmutableArray.Create(arg)));
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
105return (this.syntaxReferenceOpt == null) ? ImmutableArray<SyntaxReference>.Empty : ImmutableArray.Create(this.syntaxReferenceOpt);
Symbols\Source\SourceModuleSymbol.cs (2)
641var version = ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_Int32), TypedConstantKind.Primitive, 11)); 647var includesInternals = ImmutableArray.Create(
Symbols\Source\SourceNamedTypeSymbol.cs (4)
1699ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, nameof(CompilerFeatureRequiredFeatures.RefStructs))), 1716ImmutableArray.Create(defaultMemberNameConstant))); 1748ImmutableArray.Create(new TypedConstant(compilation.GetWellKnownType(WellKnownType.System_Type), TypedConstantKind.Type, originalType)), 1879Conversions.HasIdentityConversion(((NamedTypeSymbol)returnTypeOriginalDefinition).Construct(ImmutableArray.Create(elementType)), returnType))
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (2)
122_lazyRefCustomModifiers = ImmutableArray.Create(CSharpCustomModifier.CreateRequired(modifierType)); 133_lazyExplicitInterfaceImplementations = ImmutableArray.Create<MethodSymbol>(overriddenOrExplicitlyImplementedMethod);
Symbols\Source\SourceParameterSymbol.cs (1)
265=> _location is null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(_location);
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
394var modifiers = ImmutableArray.Create<CustomModifier>( 623: ImmutableArray.Create<MethodSymbol>(implementedAccessor);
Symbols\Source\SourcePropertySymbolBase.cs (4)
272_lazyRefCustomModifiers = ImmutableArray.Create(CSharpCustomModifier.CreateRequired(modifierType)); 279ImmutableArray.Create(explicitlyImplementedProperty); 530return ImmutableArray.Create(Location); 538return ImmutableArray.Create(_syntaxRef);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListConstructor.cs (1)
14Parameters = ImmutableArray.Create(
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorConstructor.cs (1)
14Parameters = ImmutableArray.Create(
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
47public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations => ImmutableArray.Create(_interfaceProperty);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (2)
272TypeParameters = ImmutableArray.Create<TypeParameterSymbol>(typeParameter); 883? ImmutableArray.Create(_enumeratorType)
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
30Parameters: ImmutableArray.Create<ParameterSymbol>(
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
24Parameters = ImmutableArray.Create(SynthesizedParameterSymbol.Create(
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
38Parameters: ImmutableArray.Create<ParameterSymbol>(
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (2)
33Parameters: ImmutableArray.Create<ParameterSymbol>( 72F.CloseMethod(F.Block(ImmutableArray.Create<BoundStatement>(F.Return(expression))));
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
95Parameters: ImmutableArray.Create<ParameterSymbol>(
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
80F.CloseMethod(F.Block(ImmutableArray.Create(builderLocalSymbol), block.ToImmutableAndFree()));
Symbols\Synthesized\SynthesizedContainer.cs (2)
118return (object)constructor == null ? ImmutableArray<Symbol>.Empty : ImmutableArray.Create(constructor); 124return ((object)ctor != null && name == ctor.Name) ? ImmutableArray.Create<Symbol>(ctor) : ImmutableArray<Symbol>.Empty;
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
241_constructors = ImmutableArray.Create<MethodSymbol>(new SynthesizedEmbeddedAttributeConstructorSymbol(this, m => ImmutableArray<ParameterSymbol>.Empty));
Symbols\Synthesized\SynthesizedEmbeddedLifetimeAnnotationAttributeSymbol.cs (1)
21_constructors = ImmutableArray.Create<MethodSymbol>(
Symbols\Synthesized\SynthesizedEmbeddedNativeIntegerAttributeSymbol.cs (3)
37_fields = ImmutableArray.Create<FieldSymbol>( 53m => ImmutableArray.Create(SynthesizedParameterSymbol.Create(m, boolArrayType, 0, RefKind.None)), 82ImmutableArray.Create<BoundExpression>(factory.Literal(true))
Symbols\Synthesized\SynthesizedEmbeddedNullableAttributeSymbol.cs (4)
41_fields = ImmutableArray.Create<FieldSymbol>( 53m => ImmutableArray.Create(SynthesizedParameterSymbol.Create(m, annotatedByteType, 0, RefKind.None)), 57m => ImmutableArray.Create(SynthesizedParameterSymbol.Create(m, byteArrayType, 0, RefKind.None)), 100ImmutableArray.Create<BoundExpression>(
Symbols\Synthesized\SynthesizedEmbeddedNullableContextAttributeSymbol.cs (3)
29_fields = ImmutableArray.Create<FieldSymbol>( 38_constructors = ImmutableArray.Create<MethodSymbol>( 41m => ImmutableArray.Create(SynthesizedParameterSymbol.Create(m, TypeWithAnnotations.Create(systemByteType), 0, RefKind.None)),
Symbols\Synthesized\SynthesizedEmbeddedNullablePublicOnlyAttributeSymbol.cs (3)
29_fields = ImmutableArray.Create<FieldSymbol>( 38_constructors = ImmutableArray.Create<MethodSymbol>( 41m => ImmutableArray.Create(SynthesizedParameterSymbol.Create(m, TypeWithAnnotations.Create(systemBooleanType), 0, RefKind.None)),
Symbols\Synthesized\SynthesizedEmbeddedRefSafetyRulesAttributeSymbol.cs (3)
27_fields = ImmutableArray.Create<FieldSymbol>( 36_constructors = ImmutableArray.Create<MethodSymbol>( 39m => ImmutableArray.Create(SynthesizedParameterSymbol.Create(m, TypeWithAnnotations.Create(int32Type), 0, RefKind.None)),
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (5)
426statements: ImmutableArray.Create<BoundStatement>( 502ImmutableArray.Create<LocalSymbol>(scriptLocal.LocalSymbol), 540_parameters = ImmutableArray.Create(SynthesizedParameterSymbol.Create(this, 590ImmutableArray.Create<BoundExpression>(submissionArrayParameter), 619ImmutableArray.Create<LocalSymbol>(submissionLocal.LocalSymbol),
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
42_explicitInterfaceImplementations = ImmutableArray.Create<MethodSymbol>(interfaceMethod);
Symbols\Synthesized\SynthesizedInlineArrayFirstElementRefMethod.cs (1)
17this.SetParameters(ImmutableArray.Create<ParameterSymbol>(SynthesizedParameterSymbol.Create(this, TypeWithAnnotations.Create(TypeParameters[0]), 0, RefKind.Ref, "buffer")));
Symbols\Synthesized\SynthesizedInlineArrayFirstElementRefReadOnlyMethod.cs (1)
17this.SetParameters(ImmutableArray.Create<ParameterSymbol>(SynthesizedParameterSymbol.Create(this, TypeWithAnnotations.Create(TypeParameters[0]), 0, RefKind.In, "buffer")));
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (3)
40_fields = ImmutableArray.Create<FieldSymbol>(field); 42TypeParameters = ImmutableArray.Create<TypeParameterSymbol>(typeParameter); 200arguments: ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_Int32), TypedConstantKind.Primitive, _arrayLength)),
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
53_parameters = ImmutableArray.Create<ParameterSymbol>(new SynthesizedOperatorParameterSymbol(this, container, 0, "value"));
Symbols\Synthesized\SynthesizedLocal.cs (2)
145get { return (_syntaxOpt == null) ? ImmutableArray<Location>.Empty : ImmutableArray.Create(_syntaxOpt.GetLocation()); } 150get { return (_syntaxOpt == null) ? ImmutableArray<SyntaxReference>.Empty : ImmutableArray.Create(_syntaxOpt.GetReference()); }
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
56_parameters = ImmutableArray.Create(SynthesizedParameterSymbol.Create(this,
Symbols\Synthesized\SynthesizedStringHashFunctionSymbol.cs (2)
21this.SetParameters(ImmutableArray.Create<ParameterSymbol>(SynthesizedParameterSymbol.Create(this, TypeWithAnnotations.Create(paramType), 0, RefKind.None, "s"))); 31this.SetParameters(ImmutableArray.Create<ParameterSymbol>(SynthesizedParameterSymbol.Create(this, TypeWithAnnotations.Create(paramType), 0, RefKind.None, "s")));
Symbols\Synthesized\SynthesizedSubmissionConstructor.cs (1)
28_parameters = ImmutableArray.Create<ParameterSymbol>(
Symbols\Synthesized\SynthesizedThrowSwitchExpressionExceptionMethod.cs (2)
19this.SetParameters(ImmutableArray.Create(SynthesizedParameterSymbol.Create(this, TypeWithAnnotations.Create(paramType), 0, RefKind.None, "unmatchedValue"))); 34var body = F.Throw(F.New(F.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_SwitchExpressionException__ctorObject), ImmutableArray.Create<BoundExpression>(F.Parameter(unmatchedValue))));
Symbols\Tuples\TupleErrorFieldSymbol.cs (1)
52_locations = location == null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(location);
Symbols\Tuples\TupleTypeSymbol.cs (2)
61var locations = locationOpt is null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(locationOpt); 850return elementLocation == null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(elementLocation);
Symbols\TypeSymbolExtensions.cs (1)
2011ImmutableArray.Create(type.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0]),
Symbols\TypeWithAnnotations.cs (2)
223=> Create(compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(ImmutableArray.Create(typeSymbol))); 1203_compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(ImmutableArray.Create(_underlying)) :
Utilities\ValueSetFactory.NumericValueSet.cs (1)
31internal NumericValueSet(T first, T last, INumericTC<T> tc) : this(ImmutableArray.Create((first, last)), tc)
Microsoft.CodeAnalysis.CSharp.CodeStyle (33)
src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
57var additionalLocations = ImmutableArray.Create(member.GetLocation());
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToBlockScopedNamespaceDiagnosticAnalyzer.cs (1)
62ImmutableArray.Create(declaration.GetLocation()),
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToFileScopedNamespaceDiagnosticAnalyzer.cs (1)
65ImmutableArray.Create(declaration.GetLocation()),
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToTopLevelStatementsDiagnosticAnalyzer.cs (1)
81ImmutableArray.Create(methodDeclaration.GetLocation()),
src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticDiagnosticAnalyzer.cs (1)
58additionalLocations: ImmutableArray.Create(localFunction.GetLocation()),
src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
65additionalLocations: ImmutableArray.Create(additionalLocation),
src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
96additionalLocations: ImmutableArray.Create(initializer.GetLocation()),
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
73var additionalLocations = ImmutableArray.Create(statement.GetLocation());
src\Analyzers\CSharp\Analyzers\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionDiagnosticAnalyzer.cs (1)
48ImmutableArray.Create(node.GetLocation()),
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (2)
121var additionalLocations = ImmutableArray.Create(firstStatementLocation); 140var additionalUnnecessaryLocations = ImmutableArray.Create(location);
src\Analyzers\CSharp\Analyzers\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternDiagnosticAnalyzer.cs (1)
70ImmutableArray.Create(subpattern.GetLocation()),
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (3)
199additionalLocations: ImmutableArray.Create(initializer.GetLocation()), 208var locations = ImmutableArray.Create(expression.GetLocation()); 217var additionalUnnecessaryLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (2)
52var locations = ImmutableArray.Create(invocationExpression.GetLocation()); 68var additionalUnnecessaryLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForCreateDiagnosticAnalyzer.cs (1)
49var locations = ImmutableArray.Create(invocationExpression.GetLocation());
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForEmptyDiagnosticAnalyzer.cs (1)
60additionalLocations: ImmutableArray.Create(nodeToReplace.GetLocation()),
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
105additionalLocations: ImmutableArray.Create(invocation.GetLocation()),
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (1)
74var locations = ImmutableArray.Create(objectCreationExpression.GetLocation());
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocDiagnosticAnalyzer.cs (4)
60var locations = ImmutableArray.Create(expression.GetLocation()); 69var additionalUnnecessaryLocations = ImmutableArray.Create( 100var locations = ImmutableArray.Create(expression.GetLocation()); 109var additionalUnnecessaryLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (2)
100additionalLocations: ImmutableArray.Create(coalesceExpression.GetLocation()), 173additionalLocations: ImmutableArray.Create(ifStatement.GetLocation()),
src\Analyzers\CSharp\Analyzers\UseExpressionBody\UseExpressionBodyDiagnosticAnalyzer.cs (2)
104var additionalLocations = ImmutableArray.Create(declaration.GetLocation()); 123var additionalLocations = ImmutableArray.Create(declaration.GetLocation());
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (2)
78var additionalLocations = ImmutableArray.Create(declaration.GetLocation()); 93var additionalLocations = ImmutableArray.Create(declaration.GetLocation());
src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
63ImmutableArray.Create(objectCreation.GetLocation()),
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
141var additionalLocations = ImmutableArray.Create(syntaxNode.GetLocation());
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
227editor.SetStatements(functionDeclaration, ImmutableArray.Create(statement));
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (3)
src\Analyzers\CSharp\Tests\ConvertToRecord\ConvertToRecordCodeFixTests.cs (1)
164=> ImmutableArray.Create(new DiagnosticDescriptor(
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (2)
275""", new TestParameters(options: s_options.AccessibilitiesArePascalCase(ImmutableArray.Create(alternateAccessibility)))); 289""", options: s_options.AccessibilitiesArePascalCase(ImmutableArray.Create(accessibility)));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (10)
CommandLineTests.cs (10)
4039Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 4043Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 4047Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 4051Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 4055Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 4059Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 14895public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_rule); 15964return ImmutableArray.Create(Info01); 15991return ImmutableArray.Create(Warning01); 16010public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Warning02);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
StringCopyPaste\StringInfo.cs (1)
98var contentSpans = ImmutableArray.Create(TextSpan.FromBounds(start, end));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (86)
Classification\SemanticClassifierTests_TestMarkup.cs (1)
52var spans = ImmutableArray.Create(new TextSpan(start, length));
CodeActions\AddUsing\AddUsingNuGetTests.cs (2)
315.Returns(ImmutableArray.Create("1.0")); 352.Returns(ImmutableArray.Create("1.0"));
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (4)
4155MemberNames = ImmutableArray.Create("bar"), 4213MemberNames = ImmutableArray.Create("bar"), 4271MemberNames = ImmutableArray.Create("bar"), 4331MemberNames = ImmutableArray.Create("bar"),
CodeActions\GenerateType\GenerateTypeTests.cs (5)
578expectedContainers: ImmutableArray.Create("TestNamespace"), 1415expectedContainers: ImmutableArray.Create("N"), 3857expectedContainers: ImmutableArray.Create("Goo"), 3882expectedContainers: ImmutableArray.Create("Goo"), 3907expectedContainers: ImmutableArray.Create("Goo"),
CodeActions\GenerateType\GenerateTypeTests_Dialog.cs (2)
968newFileFolderContainers: ImmutableArray.Create("outer"), 1017newFileFolderContainers: ImmutableArray.Create("outer"),
CodeActions\MoveStaticMembers\CSharpMoveStaticMembersTests.cs (56)
37var selectedMembers = ImmutableArray.Create("TestField"); 69var selectedMembers = ImmutableArray.Create("TestProperty"); 102var selectedMembers = ImmutableArray.Create("TestEvent"); 140var selectedMembers = ImmutableArray.Create("TestMethod"); 186var selectedMembers = ImmutableArray.Create("TestMethod"); 230var selectedMembers = ImmutableArray.Create("TestField"); 303var selectedMembers = ImmutableArray.Create("TestMethod"); 395var selectedMembers = ImmutableArray.Create("TestMethodBool"); 496var selectedMembers = ImmutableArray.Create("TestField"); 534var selectedMembers = ImmutableArray.Create("TestField"); 565var selectedMembers = ImmutableArray.Create("TestField"); 587var selectedMembers = ImmutableArray.Create("TestField"); 620var selectedMembers = ImmutableArray.Create("TestMethod"); 657var selectedMembers = ImmutableArray.Create("TestMethod"); 705var selectedMembers = ImmutableArray.Create("TestMethod"); 742var selectedMembers = ImmutableArray.Create("TestMethod"); 787var selectedMembers = ImmutableArray.Create("TestMethod"); 841var selectedMembers = ImmutableArray.Create("TestMethod"); 892var selectedMembers = ImmutableArray.Create("TestMethod"); 935var selectedMembers = ImmutableArray.Create("TestField"); 1039var selectedMembers = ImmutableArray.Create("TestMethod"); 1094var selectedMembers = ImmutableArray.Create("TestMethod"); 1213var selectedMembers = ImmutableArray.Create("TestMethod"); 1275var selectedMembers = ImmutableArray.Create("TestMethod"); 1333var selectedMembers = ImmutableArray.Create("TestMethod"); 1390var selectedMembers = ImmutableArray.Create("TestMethod"); 1469var selectedMembers = ImmutableArray.Create("TestMethod"); 1533var selectedMembers = ImmutableArray.Create("TestMethod"); 1605var selectedMembers = ImmutableArray.Create("Foo"); 1688var selectedMembers = ImmutableArray.Create("TestMethod"); 1751var selectedMembers = ImmutableArray.Create("TestMethod"); 1815var selectedMembers = ImmutableArray.Create("TestMethod"); 1884var selectedMembers = ImmutableArray.Create("TestMethod"); 1964var selectedMembers = ImmutableArray.Create("TestMethod"); 2060var selectedMembers = ImmutableArray.Create("TestMethod"); 2131var selectedMembers = ImmutableArray.Create("TestMethod"); 2170var selectedMembers = ImmutableArray.Create("TestMethod"); 2211var selectedMembers = ImmutableArray.Create("TestField"); 2244var selectedMembers = ImmutableArray.Create("TestProperty"); 2279var selectedMembers = ImmutableArray.Create("TestEvent"); 2319var selectedMembers = ImmutableArray.Create("TestMethod"); 2367var selectedMembers = ImmutableArray.Create("TestMethod"); 2412var selectedMembers = ImmutableArray.Create("TestField"); 2454var selectedMembers = ImmutableArray.Create("TestMethod"); 2502var selectedMembers = ImmutableArray.Create("TestMethod"); 2549var selectedMembers = ImmutableArray.Create("TestMethod"); 2596var selectedMembers = ImmutableArray.Create("TestMethod"); 2693var selectedMembers = ImmutableArray.Create("TestMethod"); 2727var selectedMembers = ImmutableArray.Create("TestField"); 2758var selectedMembers = ImmutableArray.Create("TestField"); 2789var selectedMembers = ImmutableArray.Create("TestField"); 2820var selectedMembers = ImmutableArray.Create("TestField"); 2854var selectedMembers = ImmutableArray.Create("TestMethod"); 2889var selectedMembers = ImmutableArray.Create("TestField"); 3088var selectedMembers = ImmutableArray.Create("Foo"); 3127var selectedMembers = ImmutableArray.Create("Goo");
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (11)
58var analyzerReference = new AnalyzerImageReference(ImmutableArray.Create<DiagnosticAnalyzer>(analyzer)); 89var analyzerReference = new AnalyzerImageReference(ImmutableArray.Create<DiagnosticAnalyzer>(ideEngineAnalyzer)); 125var analyzerReference = new AnalyzerImageReference(ImmutableArray.Create(analyzer)); 166var options = new AnalyzerOptions(ImmutableArray.Create<AdditionalText>(additionalText)); 168var analyzerReference = new AnalyzerImageReference(ImmutableArray.Create<DiagnosticAnalyzer>(analyzer)); 181var diagnosticService = new HostDiagnosticAnalyzers([new AnalyzerImageReference(ImmutableArray.Create(analyzer))]); 223return ImmutableArray.Create(s_syntaxDiagnosticDescriptor); 294return ImmutableArray.Create(Descriptor); 349=> ImmutableArray.Create(Descriptor); 728nugetAnalyzer != null ? ImmutableArray.Create(nugetAnalyzer) : ImmutableArray<NuGetAnalyzer>.Empty, 730vsixAnalyzer != null ? ImmutableArray.Create(vsixAnalyzer) : ImmutableArray<VsixAnalyzer>.Empty,
Diagnostics\FixAllProvider\BatchFixerTests.cs (2)
40return ImmutableArray.Create(Descriptor); 67return ImmutableArray.Create(QualifyWithThisAnalyzer.Descriptor.Id);
Diagnostics\MockDiagnosticAnalyzerTests.cs (1)
29return ImmutableArray.Create(_descriptor);
Formatting\CodeCleanupTests.cs (1)
800{ LanguageNames.CSharp, ImmutableArray.Create(analyzer) }
Formatting\CodeCleanupTests.TestFixers.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create("HasDefaultCase");
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (43)
CodeGen\CodeGenExplicitImplementationTests.cs (5)
996var comp = CreateCompilation(source, new[] { new CSharpCompilationReference(libComp, aliases: ImmutableArray.Create("Q")) }); 1045var comp1 = CreateCompilation(source, new[] { new CSharpCompilationReference(libComp1, aliases: ImmutableArray.Create("A")), new CSharpCompilationReference(libComp1, aliases: ImmutableArray.Create("B")) }); 1061var comp2 = CreateCompilation(source, new[] { new CSharpCompilationReference(libComp1, aliases: ImmutableArray.Create("A")), new CSharpCompilationReference(libComp2, aliases: ImmutableArray.Create("B")) });
CodeGen\CodeGenFunctionPointersTests.cs (4)
7682CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string, customModifiers: ImmutableArray.Create(testMod)), refCustomModifiers: default, 7686CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: ImmutableArray.Create(testMod), 7767CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string, customModifiers: ImmutableArray.Create(testMod)), refCustomModifiers: default, 7771CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: ImmutableArray.Create(testMod),
CodeGen\CodeGenReadonlyStructTests.cs (2)
897INamedTypeSymbol iNamedType = comp.CreateAnonymousTypeSymbol(ImmutableArray.Create<ITypeSymbol>(comp.ObjectType.GetPublicSymbol()), ImmutableArray.Create("qq")); 1061INamedTypeSymbol iNamedType = comp.CreateAnonymousTypeSymbol(ImmutableArray.Create<ITypeSymbol>(comp.ObjectType.GetPublicSymbol()), ImmutableArray.Create("qq"));
CodeGen\CodeGenTupleTest.cs (13)
6331var e = Assert.Throws<ArgumentException>(() => comp.CreateAnonymousTypeSymbol(ImmutableArray.Create(vbType), ImmutableArray.Create("m1"))); 6352Assert.Throws<ArgumentException>(() => comp.CreateTupleTypeSymbol(new[] { intType, intType }.AsImmutable(), elementLocations: ImmutableArray.Create(loc1))); 16814references: new[] { comp2.ToMetadataReference(ImmutableArray.Create("alias")), comp1.ToMetadataReference() }, 16865references: new[] { comp1.ToMetadataReference().WithAliases(ImmutableArray.Create("alias")), comp2.ToMetadataReference() }, 16886references: new[] { comp1.ToMetadataReference(), comp2.ToMetadataReference().WithAliases(ImmutableArray.Create("alias1")) }, 16940references: new[] { comp1.ToMetadataReference().WithAliases(ImmutableArray.Create("alias")), comp2.ToMetadataReference() }, 16961references: new[] { comp1.ToMetadataReference(), comp2.ToMetadataReference().WithAliases(ImmutableArray.Create("alias1")) }, 17023references: s_valueTupleRefs.Concat(new[] { comp1.ToMetadataReference(), comp2.ToMetadataReference().WithAliases(ImmutableArray.Create("alias1")) }), 17046references: s_valueTupleRefs.Concat(new[] { comp1.ToMetadataReference(), comp2.ToMetadataReference().WithAliases(ImmutableArray.Create("alias1")) }), 17070comp2.ToMetadataReference().WithAliases(ImmutableArray.Create("alias1")), 17124references: new[] { comp1.ToMetadataReference(), comp2.ToMetadataReference().WithAliases(ImmutableArray.Create("alias1")) }, 17178references: new[] { comp1.ToMetadataReference(), comp2.ToMetadataReference().WithAliases(ImmutableArray.Create("alias1")) },
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (14)
76var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 220var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 340var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 434var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 491var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 530var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 561var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 601var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 669var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 750var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 831var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 925var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 980var emitOptions = EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage)); 1019var emitOptions = EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage));
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (5)
2450ImmutableArray<Diagnostic> diagnostics = CreateEmptyCompilation(source + InstrumentationHelperSource).GetEmitDiagnostics(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 2961var verifier = CompileAndVerify(c, emitOptions: EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 2997var verifier = CompileAndVerify(c, emitOptions: EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 3648emitOptions: EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage)), 3663return base.CompileAndVerify(compilation, expectedOutput: expectedOutput, emitOptions: EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (397)
Emit\EditAndContinue\AssemblyReferencesTests.cs (12)
228ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1))); 234ImmutableArray.Create( 333ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1))); 416ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1))); 471var ref01 = lib01.ToMetadataReference(ImmutableArray.Create("L0")); 474var ref02 = lib02.ToMetadataReference(ImmutableArray.Create("L0")); 477var ref11 = lib11.ToMetadataReference(ImmutableArray.Create("L1")); 480var ref12 = lib12.ToMetadataReference(ImmutableArray.Create("L1")); 496ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1))); 607ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, m0, m1, GetSyntaxMapFromMarkers(source0, source1)))); 616ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2)))); 628ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, m2, m3, GetSyntaxMapFromMarkers(source2, source3))));
Emit\EditAndContinue\EditAndContinueClosureTests.cs (56)
258ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 319ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 391ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 449ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 502ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 561ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 615ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 670ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 726ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 781ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 849ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 924ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 998ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, ctor0, ctor1, GetSyntaxMapFromMarkers(source0, source1)))); 1065ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, ctor0, ctor1, GetSyntaxMapFromMarkers(source0, source1)))); 1124ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 1212ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 1301ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 1385ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 1476ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 1558ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 1636ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 1660ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2)))); 1735ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 1758ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2)))); 1826ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 1849ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2)))); 1935ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 1970ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2)))); 2014ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f2, f3, GetSyntaxMapFromMarkers(source2, source3)))); 2133ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 2167ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2)))); 2209ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f2, f3, GetSyntaxMapFromMarkers(source2, source3)))); 2343ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 2367ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2)))); 2481ImmutableArray.Create( 2497ImmutableArray.Create( 2598ImmutableArray.Create( 2614ImmutableArray.Create( 2754ImmutableArray.Create( 2803ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 3256ImmutableArray.Create( 3495ImmutableArray.Create( 3763ImmutableArray.Create( 3795ImmutableArray.Create( 3888ImmutableArray.Create( 3900ImmutableArray.Create( 3988ImmutableArray.Create( 4040ImmutableArray.Create( 4134ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 4219ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 4301ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 4374ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 4456ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 4639ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 4698ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 4749ImmutableArray.Create(
Emit\EditAndContinue\EditAndContinueDelegateCacheTests.cs (5)
60ImmutableArray.Create( 124ImmutableArray.Create( 188ImmutableArray.Create( 252ImmutableArray.Create( 316ImmutableArray.Create(
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (67)
62ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, g1))); 241ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, f1))); 358ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 460ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 534ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 584ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 1134ImmutableArray.Create( 1559ImmutableArray.Create( 2001ImmutableArray.Create( 2006ImmutableArray.Create( 2578ImmutableArray.Create( 2747ImmutableArray.Create( 3286ImmutableArray.Create( 3681ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 3785ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 3894ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 4000ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 4114ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 4266ImmutableArray.Create( 4500ImmutableArray.Create( 4660ImmutableArray.Create( 5123ImmutableArray.Create( 5471ImmutableArray.Create( 5810ImmutableArray.Create( 5815ImmutableArray.Create( 5820ImmutableArray.Create( 6715ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 7154ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 7450ImmutableArray.Create( 7817ImmutableArray.Create( 7892ImmutableArray.Create( 8199ImmutableArray.Create( 8720ImmutableArray.Create( 8729ImmutableArray.Create( 8738ImmutableArray.Create( 8747ImmutableArray.Create( 8797ImmutableArray.Create( 8802ImmutableArray.Create( 8902ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 8914ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2)))); 9097ImmutableArray.Create( 9219ImmutableArray.Create( 9238ImmutableArray.Create( 9376ImmutableArray.Create( 9389ImmutableArray.Create( 9531ImmutableArray.Create( 9542ImmutableArray.Create( 9638ImmutableArray.Create( 9700ImmutableArray.Create( 9768ImmutableArray.Create( 9780ImmutableArray.Create( 9794ImmutableArray.Create( 9806ImmutableArray.Create( 9818ImmutableArray.Create( 10270ImmutableArray.Create( 10580ImmutableArray.Create( 10646ImmutableArray.Create( 10713ImmutableArray.Create( 10846ImmutableArray.Create( 10899ImmutableArray.Create( 11029ImmutableArray.Create( 11080ImmutableArray.Create( 11131ImmutableArray.Create( 11185ImmutableArray.Create( 11246ImmutableArray.Create( 11301ImmutableArray.Create( 11368ImmutableArray.Create(
Emit\EditAndContinue\EditAndContinueTests.cs (182)
320ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 353ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1))); 408ImmutableArray.Create( 418ImmutableArray.Create( 474ImmutableArray.Create( 521ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 583ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 610ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method1, method2))); 810ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 1165ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 1202ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method1, method2))); 1288ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 1329ImmutableArray.Create( 1361ImmutableArray.Create( 1909ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 1998ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 2016ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method1, method2, GetSyntaxMapFromMarkers(source1, source2)))); 2083ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 2101ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method1, method2, GetSyntaxMapFromMarkers(source1, source2)))); 2157ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 2223ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 2243ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method1, method2, GetSyntaxMapFromMarkers(source1, source2)))); 2299ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 2916ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, method1))); 3058ImmutableArray.Create( 3454ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, f1))); 3488ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2))); 3784ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, f3))); 3907ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, getP0, getP1))); 3977: ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, r1))); 4015: ImmutableArray.Create( 5437ImmutableArray.Create( 5492ImmutableArray.Create( 5944ImmutableArray.Create( 6009ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, c0, c1))); 6030ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, c1, c2))); 6209ImmutableArray.Create( 6217ImmutableArray.Create( 6387ImmutableArray.Create( 6465ImmutableArray.Create( 6480ImmutableArray.Create( 6550ImmutableArray.Create( 6565ImmutableArray.Create( 6962ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 7029ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, method1))); 7055ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method1, method2))); 7105ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 7526ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<MethodSymbol>("C.M")))); 7598ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 7648ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation0.GetMember("C.M"), compilation1.GetMember("C.M")))); 7750ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<MethodSymbol>("C.puts")))); 7806ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<NamedTypeSymbol>("B")))); 7886ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMembers("M.C.M1")[2]))); 7919ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation1.GetMember<MethodSymbol>("M.C.M2"), 8042ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation0.GetMembers("C.M")[0], compilation1.GetMembers("C.M")[0]))); 8066ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation1.GetMembers("C.M")[1], compilation2.GetMembers("C.M")[1]))); 8090ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation2.GetMembers("C.M")[2], compilation3.GetMembers("C.M")[2]))); 8115ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation3.GetMembers("C.M")[3], compilation4.GetMembers("C.M")[3]))); 8140ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation4.GetMembers("C.M")[4], compilation5.GetMembers("C.M")[4]))); 8164ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation5.GetMembers("C.M")[5], compilation6.GetMembers("C.M")[5]))); 8188ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation6.GetMembers("C.M")[6], compilation7.GetMembers("C.M")[6]))); 8214ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation7.GetMembers("C.M")[7], compilation8.GetMembers("C.M")[7]))); 8239ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation8.GetMembers("C.M")[8], compilation9.GetMembers("C.M")[8]))); 8263ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation9.GetMembers("C.M")[9], compilation10.GetMembers("C.M")[9]))); 8336ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation10.GetMembers("C.M")[12], compilation11.GetMembers("C.M")[12]))); 8360ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation11.GetMembers("C.M")[13], compilation12.GetMembers("C.M")[13]))); 8429ImmutableArray.Create( 8535ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 8615ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation0.GetMembers("C.F")[1], compilation1.GetMembers("C.F")[1]))); 8644ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation1.GetMembers("C.F")[1], compilation2.GetMembers("C.F")[1]))); 8708ImmutableArray.Create(SemanticEdit.Create( 8841ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 8899ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method1, method2, GetEquivalentNodesMap(method2, method1)))); 8957ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method2, method3, GetEquivalentNodesMap(method3, method2)))); 9047ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, m1, null))); 9051ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, m1, m2, GetEquivalentNodesMap(m2, m1)))); 9135ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 9185ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 9234ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 9410ImmutableArray.Create( 9438ImmutableArray.Create( 9523ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 9546ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2)))); 9612ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 9633ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2)))); 9719ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, m0, m1, GetEquivalentNodesMap(m1, m0)))); 9823ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetEquivalentNodesMap(f1, f0)))); 9939ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 9967ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method1, method2, GetSyntaxMapFromMarkers(source1, source2)))); 9999ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method2, method3, GetSyntaxMapFromMarkers(source2, source3)))); 10126ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetEquivalentNodesMap(f1, f0)))); 10136ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, g1, g2, GetEquivalentNodesMap(g2, g1)))); 10146ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, g2, g3, GetEquivalentNodesMap(g3, g2)))); 10232ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 10311ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, m0, m1, GetSyntaxMapFromMarkers(source0, source1)))); 10338ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, m1, m2, GetSyntaxMapFromMarkers(source1, source2)))); 10461ImmutableArray.Create( 10475ImmutableArray.Create( 10584ImmutableArray.Create( 10598ImmutableArray.Create( 10780ImmutableArray.Create( 10810ImmutableArray.Create( 10888ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 10961ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 11036ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 11129ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 11222ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 11286ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 11349ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 11359ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 11369ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 11379ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 11389ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 11399ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 11469ImmutableArray.Create( 11510ImmutableArray.Create( 11618ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1)))); 11736ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 11789ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 11884ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1A, GetEquivalentNodesMap(method1A, method0)))); 11896ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1B, GetEquivalentNodesMap(method1B, method0)))); 11962ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 12109ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 12224ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0F, method1F, syntaxMap: s => null))); 12237ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method1F, method2F, syntaxMap: s => null))); 12249ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method1G, method2G, syntaxMap: s => null))); 12292ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0F, method1F, syntaxMap: s => null)), 12307ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0F, method1F, syntaxMap: s => null)), 12322ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0F, method1F, syntaxMap: s => null)), 12377ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0F, method1F, syntaxMap: s => null)), 12413ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<MethodSymbol>("C.Main"))), 12453ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation0.GetMember("C.Main"), compilation1.GetMember("C.Main")))); 12505ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0F, method1F, syntaxMap: s => null))); 12516ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method1F, method2F, syntaxMap: s => null))); 12640ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetEquivalentNodesMap(f1, f0)))); 12659ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetEquivalentNodesMap(f2, f1)))); 12711ImmutableArray.Create( 12718ImmutableArray.Create( 12755ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 12836ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1))))); 12904ImmutableArray.Create( 12947ImmutableArray.Create( 13053ImmutableArray.Create( 13086ImmutableArray.Create( 13181ImmutableArray.Create( 13205ImmutableArray.Create( 13289ImmutableArray.Create( 13314ImmutableArray.Create( 13432ImmutableArray.Create( 13484ImmutableArray.Create( 13604ImmutableArray.Create( 13638ImmutableArray.Create( 13730ImmutableArray.Create( 13759ImmutableArray.Create( 13900ImmutableArray.Create( 13957ImmutableArray.Create( 14068ImmutableArray.Create( 14096ImmutableArray.Create( 14180ImmutableArray.Create( 14203ImmutableArray.Create( 14301ImmutableArray.Create( 14350ImmutableArray.Create( 14463ImmutableArray.Create( 14504ImmutableArray.Create( 14597ImmutableArray.Create( 14621ImmutableArray.Create( 14715ImmutableArray.Create( 14759ImmutableArray.Create( 14892ImmutableArray.Create( 14946ImmutableArray.Create( 15108ImmutableArray.Create( 15179ImmutableArray.Create( 15342ImmutableArray.Create( 15392ImmutableArray.Create( 15481ImmutableArray.Create( 15493ImmutableArray.Create( 15579ImmutableArray.Create( 15660ImmutableArray.Create( 16012ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1))); 16084ImmutableArray.Create( 18620ImmutableArray.Create( 18879ImmutableArray.Create(
Emit\EditAndContinue\LocalSlotMappingTests.cs (44)
80ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, syntaxMap: null))); 254ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 438ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 544ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 656ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 766ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 857ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 1159ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 1222ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 1330ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 1494ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 1750ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 1862ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 2022ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 2055ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 2204ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapFromMarkers(source0, source1)))); 2252ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method1, method2, GetSyntaxMapFromMarkers(source1, source2)))); 2428ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 2490ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method1, method2, GetEquivalentNodesMap(method2, method1)))); 2612ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 2750ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 2925ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapByKind(method0, SyntaxKind.SwitchStatement)))); 3061ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapByKind(method0, SyntaxKind.SwitchStatement)))); 3224ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 3388ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapByKind(method0, SyntaxKind.IfStatement)))); 3497ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapByKind(method0, SyntaxKind.WhileStatement)))); 3607ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapByKind(method0, SyntaxKind.DoStatement)))); 3698ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapByKind(method0, SyntaxKind.ForStatement, SyntaxKind.VariableDeclarator)))); 3902ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, m0, m1, GetSyntaxMapFromMarkers(source0, source1)))); 3906ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, m1, m2, GetSyntaxMapFromMarkers(source1, source2)))); 4245ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 4292ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 4348ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 4403ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 4455ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 4511ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 4580ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 4660ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 4754ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, g0, g1, GetEquivalentNodesMap(g1, g0)))); 4814ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 4874ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 4963ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetEquivalentNodesMap(method1, method0)))); 5117ImmutableArray.Create( 5181ImmutableArray.Create(
Emit\LocalStateTracing\LocalStateTracingTests.cs (2)
442edits: ImmutableArray.Create( 443new SemanticEdit(f0, f1, ImmutableArray.Create(InstrumentationKindExtensions.LocalStateTracing))));
PDB\PDBUsingTests.cs (29)
577new CSharpCompilationReference(dummyCompilation1, ImmutableArray.Create("P")) , 578new CSharpCompilationReference(dummyCompilation2, ImmutableArray.Create("Q")), 579new CSharpCompilationReference(dummyCompilation3, ImmutableArray.Create("R")) 680compilation1.ToMetadataReference(ImmutableArray.Create("X")) 731compilation1.ToMetadataReference(ImmutableArray.Create("X")), 808var refA = comp.EmitToImageReference(aliases: ImmutableArray.Create("A2")); 858var refA1 = comp.EmitToImageReference(aliases: ImmutableArray.Create("A2")); 868var refA4 = comp.EmitToImageReference(aliases: ImmutableArray.Create("A5")); 944var refA1 = comp.EmitToImageReference(aliases: ImmutableArray.Create("A2")); 954var refA4 = comp.EmitToImageReference(aliases: ImmutableArray.Create("A5")); 1040var refA4 = comp.EmitToImageReference(aliases: ImmutableArray.Create("A5")); 1133var refA4 = comp.EmitToImageReference(aliases: ImmutableArray.Create("A5")); 1216var refA1 = comp.EmitToImageReference(aliases: ImmutableArray.Create("A2")); 1226var refA4 = comp.EmitToImageReference(aliases: ImmutableArray.Create("A5")); 1308var refA1 = comp.EmitToImageReference(aliases: ImmutableArray.Create("A2")); 1318var refA4 = comp.EmitToImageReference(aliases: ImmutableArray.Create("A5")); 1486references: new[] { new CSharpCompilationReference(libComp, ImmutableArray.Create("P")) }); 1562new CSharpCompilationReference(dummyCompilation1, ImmutableArray.Create("P")) , 1563new CSharpCompilationReference(dummyCompilation2, ImmutableArray.Create("Q")), 1564new CSharpCompilationReference(dummyCompilation3, ImmutableArray.Create("R")) 1868new CSharpCompilationReference(dummyCompilation1, ImmutableArray.Create("P")), 1869new CSharpCompilationReference(dummyCompilation2, ImmutableArray.Create("Q")), 1870new CSharpCompilationReference(dummyCompilation3, ImmutableArray.Create("R")), 2046new CSharpCompilationReference(dummyCompilation1, ImmutableArray.Create("P")), 2047new CSharpCompilationReference(dummyCompilation2, ImmutableArray.Create("Q")), 2048new CSharpCompilationReference(dummyCompilation3, ImmutableArray.Create("R")), 2049new CSharpCompilationReference(dummyCompilation4, ImmutableArray.Create("S")), 2694var libRef = lib.EmitToImageReference(aliases: ImmutableArray.Create("Q")); 3317var c = CreateCompilationWithMscorlib40(sources, new[] { SystemCoreRef.WithAliases(ImmutableArray.Create("A")) });
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (75)
Attributes\AttributeTests_Nullable.cs (1)
4905expectedBits = ImmutableArray.Create(addOne.GetValueOrDefault()).Concat(expectedBits);
Attributes\AttributeTests_Synthesized.cs (1)
1968namedArguments: ImmutableArray.Create(new KeyValuePair<WellKnownMember, TypedConstant>(
Attributes\InternalsVisibleToAndStrongNameTests.cs (2)
65new DesktopStrongNameProvider(ImmutableArray.Create(keyFilePath), strongNameFileSystem: new VirtualizedStrongNameFileSystem(_signingTempDirectory.Path)); 229ImmutableArray.Create(PathUtilities.CombineAbsoluteAndRelativePaths(keyFileDir, @"TempSubDir\")),
Diagnostics\DiagnosticAnalyzerTests.cs (32)
44return ImmutableArray.Create(s_CA9999_UseOfVariableThatStartsWithX); 239return ImmutableArray.Create(s_descriptor); 506get { return ImmutableArray.Create(desc1); } 658public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(Rule); } } 800ImmutableArray.Create(SyntaxKind.EqualsValueClause)); 803ImmutableArray.Create(SyntaxKind.BaseConstructorInitializer)); 822}, ImmutableArray.Create(SyntaxKind.ArrowExpressionClause)); 833get { return ImmutableArray.Create(Descriptor1); } 884return ImmutableArray.Create(SupportedDescriptor); 1645get { return ImmutableArray.Create(ExpressionDescriptor); } 2244var syntaxKinds = ImmutableArray.Create(SyntaxKind.VariableDeclaration); 2245var operationKinds = ImmutableArray.Create(OperationKind.VariableDeclarator); 3265var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType)); 3311var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType)); 3357var tree1SemanticDiagnostics = await compilationWithAnalyzers.GetAnalyzerSemanticDiagnosticsAsync(semanticModel1, filterSpan: null, ImmutableArray.Create<DiagnosticAnalyzer>(analyzer1), CancellationToken.None); 3694var analyzersToQuery = singleAnalyzer ? ImmutableArray.Create<DiagnosticAnalyzer>(analyzer1) : allAnalyzers; 3813var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer); 3843public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(Rule); } } 3884var options = new AnalyzerOptions(ImmutableArray.Create(additionalFile)); 3887var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer); 3935verifyAnalysisResult(analysisResult, analyzers, ImmutableArray.Create(additionalFile1), diagnosticSpan, additionalFilesHaveSamePaths); 3937verifyAnalysisResult(analysisResult, analyzers, ImmutableArray.Create(additionalFile2), diagnosticSpan, additionalFilesHaveSamePaths); 3939var singleAnalyzerArray = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer1); 3941verifyAnalysisResult(analysisResult, singleAnalyzerArray, ImmutableArray.Create(additionalFile1), diagnosticSpan, additionalFilesHaveSamePaths); 3943verifyAnalysisResult(analysisResult, singleAnalyzerArray, ImmutableArray.Create(additionalFile2), diagnosticSpan, additionalFilesHaveSamePaths); 4011var singleAnalyzerArray = ImmutableArray.Create(analyzer); 4015verifyDiagnostics(reportedDiagnostics, singleAnalyzerArray, ImmutableArray.Create(additionalFile), diagnosticSpan, additionalFilesHaveSamePaths); 4077public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(Rule); } } 4122public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(Rule); } } 4314var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer); 4316var analyzerOptions = new AnalyzerOptions(ImmutableArray.Create<AdditionalText>(additionalTextFile)); 4397var analyzersArray = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer);
Diagnostics\DiagnosticSuppressorTests.cs (2)
718var analyzers = withSuppressor ? ImmutableArray.Create<DiagnosticAnalyzer>(analyzer1, suppressor) : ImmutableArray.Create<DiagnosticAnalyzer>(analyzer1); 722analyzers = withSuppressor ? ImmutableArray.Create<DiagnosticAnalyzer>(analyzer2, suppressor) : ImmutableArray.Create<DiagnosticAnalyzer>(analyzer2);
Diagnostics\GetDiagnosticsTests.cs (9)
615var compilationWithAnalyzers = compilation.WithAnalyzers(ImmutableArray.Create(analyzer), analyzerOptions); 715var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType, OperationKind.VariableDeclaration)); 744var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer); 838var compilationWithAnalyzers = compilation.WithAnalyzers(ImmutableArray.Create<DiagnosticAnalyzer>(analyzer), AnalyzerOptions.Empty); 1124var compilationWithAnalyzers = compilation.WithAnalyzers(ImmutableArray.Create<DiagnosticAnalyzer>(analyzer), AnalyzerOptions.Empty); 1473public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions => ImmutableArray.Create(_descriptor); 1519var compilationWithAnalyzers = compilation.WithAnalyzers(ImmutableArray.Create<DiagnosticAnalyzer>(analyzer), AnalyzerOptions.Empty); 1698var compilationWithAnalyzers = compilation.WithAnalyzers(ImmutableArray.Create<DiagnosticAnalyzer>(analyzer), AnalyzerOptions.Empty); 1714public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor);
Semantics\OutVarTests.cs (1)
18802=> ImmutableArray.Create(Descriptor);
Semantics\PatternMatchingTests5.cs (2)
2120var ref1 = CreateCompilation(INumberBaseDefinition, assemblyName: "A").EmitToImageReference(aliases: ImmutableArray.Create("A")); 2298var ref1 = CreateCompilation(INumberBaseDefinition).EmitToImageReference(aliases: ImmutableArray.Create("A"));
Semantics\PrimaryConstructorTests.cs (16)
3750=> ImmutableArray.Create(Descriptor); 4075=> ImmutableArray.Create(Descriptor); 4161=> ImmutableArray.Create(Descriptor); 4310=> ImmutableArray.Create(Descriptor); 4500=> ImmutableArray.Create(Descriptor); 4634=> ImmutableArray.Create(Descriptor); 4814=> ImmutableArray.Create(Descriptor); 4959=> ImmutableArray.Create(Descriptor); 5138=> ImmutableArray.Create(Descriptor); 5251=> ImmutableArray.Create(Descriptor); 5478=> ImmutableArray.Create(Descriptor); 5565=> ImmutableArray.Create(Descriptor); 5678=> ImmutableArray.Create(Descriptor); 5775=> ImmutableArray.Create(Descriptor); 5833=> ImmutableArray.Create(Descriptor); 5926=> ImmutableArray.Create(Descriptor);
Semantics\RecordTests.cs (9)
26235=> ImmutableArray.Create(Descriptor); 26558=> ImmutableArray.Create(Descriptor); 26653=> ImmutableArray.Create(Descriptor); 26818=> ImmutableArray.Create(Descriptor); 27008=> ImmutableArray.Create(Descriptor); 27142=> ImmutableArray.Create(Descriptor); 27322=> ImmutableArray.Create(Descriptor); 27467=> ImmutableArray.Create(Descriptor); 27650=> ImmutableArray.Create(Descriptor);
Microsoft.CodeAnalysis.CSharp.Features (42)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.FixAllProvider.cs (1)
32=> ImmutableArray.Create(FixAllScope.Solution);
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (1)
169symbols: ImmutableArray.Create(p),
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
340symbols: ImmutableArray.Create(symbol),
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (2)
256var additionalFilterTexts = ImmutableArray.Create(staticSymbol.Name); 261symbols: ImmutableArray.Create(staticSymbol),
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Conversions.cs (1)
64return (ImmutableArray.Create<ISymbol>(conversion), s_conversionProperties);
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (1)
89symbols: ImmutableArray.Create(member),
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (1)
92var spans = ImmutableArray.Create(TextSpan.FromBounds(spanStart, spanEnd));
src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
57var additionalLocations = ImmutableArray.Create(member.GetLocation());
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToBlockScopedNamespaceDiagnosticAnalyzer.cs (1)
62ImmutableArray.Create(declaration.GetLocation()),
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToFileScopedNamespaceDiagnosticAnalyzer.cs (1)
65ImmutableArray.Create(declaration.GetLocation()),
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToTopLevelStatementsDiagnosticAnalyzer.cs (1)
81ImmutableArray.Create(methodDeclaration.GetLocation()),
src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticDiagnosticAnalyzer.cs (1)
58additionalLocations: ImmutableArray.Create(localFunction.GetLocation()),
src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
65additionalLocations: ImmutableArray.Create(additionalLocation),
src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
96additionalLocations: ImmutableArray.Create(initializer.GetLocation()),
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
73var additionalLocations = ImmutableArray.Create(statement.GetLocation());
src\Analyzers\CSharp\Analyzers\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionDiagnosticAnalyzer.cs (1)
48ImmutableArray.Create(node.GetLocation()),
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (2)
121var additionalLocations = ImmutableArray.Create(firstStatementLocation); 140var additionalUnnecessaryLocations = ImmutableArray.Create(location);
src\Analyzers\CSharp\Analyzers\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternDiagnosticAnalyzer.cs (1)
70ImmutableArray.Create(subpattern.GetLocation()),
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (3)
199additionalLocations: ImmutableArray.Create(initializer.GetLocation()), 208var locations = ImmutableArray.Create(expression.GetLocation()); 217var additionalUnnecessaryLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (2)
52var locations = ImmutableArray.Create(invocationExpression.GetLocation()); 68var additionalUnnecessaryLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForCreateDiagnosticAnalyzer.cs (1)
49var locations = ImmutableArray.Create(invocationExpression.GetLocation());
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForEmptyDiagnosticAnalyzer.cs (1)
60additionalLocations: ImmutableArray.Create(nodeToReplace.GetLocation()),
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
105additionalLocations: ImmutableArray.Create(invocation.GetLocation()),
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (1)
74var locations = ImmutableArray.Create(objectCreationExpression.GetLocation());
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocDiagnosticAnalyzer.cs (4)
60var locations = ImmutableArray.Create(expression.GetLocation()); 69var additionalUnnecessaryLocations = ImmutableArray.Create( 100var locations = ImmutableArray.Create(expression.GetLocation()); 109var additionalUnnecessaryLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (2)
100additionalLocations: ImmutableArray.Create(coalesceExpression.GetLocation()), 173additionalLocations: ImmutableArray.Create(ifStatement.GetLocation()),
src\Analyzers\CSharp\Analyzers\UseExpressionBody\UseExpressionBodyDiagnosticAnalyzer.cs (2)
104var additionalLocations = ImmutableArray.Create(declaration.GetLocation()); 123var additionalLocations = ImmutableArray.Create(declaration.GetLocation());
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (2)
78var additionalLocations = ImmutableArray.Create(declaration.GetLocation()); 93var additionalLocations = ImmutableArray.Create(declaration.GetLocation());
src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
63ImmutableArray.Create(objectCreation.GetLocation()),
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
141var additionalLocations = ImmutableArray.Create(syntaxNode.GetLocation());
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
370executableCodeBlocks: ImmutableArray.Create<SyntaxNode>(expressionBody),
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (21)
ConvertToRecord\ConvertToRecordCodeRefactoringTests.cs (1)
4753=> ImmutableArray.Create(new DiagnosticDescriptor(
Diagnostics\Configuration\ConfigureCodeStyle\MultipleCodeStyleOptionConfigurationTests.cs (1)
30return base.MassageActions(ImmutableArray.Create(nestedActionForOptionIndex));
Diagnostics\Configuration\ConfigureSeverity\AllAnalyzersSeverityConfigurationTests.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
Diagnostics\Configuration\ConfigureSeverity\CategoryBasedSeverityConfigurationTests.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
Diagnostics\Configuration\ConfigureSeverity\DotNetDiagnosticSeverityBasedSeverityConfigurationTests.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
Diagnostics\Suppression\RemoveSuppressionTests.cs (1)
36return ImmutableArray.Create(Decsciptor);
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (3)
116public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1300public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1316=> ImmutableArray.Create<DiagnosticAnalyzer>(new NonLocalDiagnosticsAnalyzer());
Diagnostics\Suppression\SuppressionTests.cs (7)
699return ImmutableArray.Create(Decsciptor); 809return ImmutableArray.Create(_descriptor); 872return ImmutableArray.Create(_descriptor); 922return ImmutableArray.Create(Decsciptor); 1063return ImmutableArray.Create(Descriptor); 2059public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_descriptor); 2455=> ImmutableArray.Create(Descriptor);
src\Analyzers\CSharp\Tests\ConvertToRecord\ConvertToRecordCodeFixTests.cs (1)
164=> ImmutableArray.Create(new DiagnosticDescriptor(
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (2)
275""", new TestParameters(options: s_options.AccessibilitiesArePascalCase(ImmutableArray.Create(alternateAccessibility)))); 289""", options: s_options.AccessibilitiesArePascalCase(ImmutableArray.Create(accessibility)));
Wrapping\SortingTests.cs (2)
34items, ImmutableArray.Create("Action1"), a => a); 46items, ImmutableArray.Create("Action2"), a => a);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (72)
Semantics\ColorColorTests.cs (1)
1774=> ImmutableArray.Create(Descriptor);
Semantics\ForEachTests.cs (1)
2051var options = new CSharpParseOptions(preprocessorSymbols: ImmutableArray.Create("CONDITIONAL"), documentationMode: DocumentationMode.None);
Semantics\InterceptorsTests.cs (9)
5279var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, "/_/")); 5315var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, "/_/")); 5349var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, "/_/")); 5458var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, @"\_\")); 5493var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, @"\_/")); 5535var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, @"\_/")); 5976var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, "/_/")); 6017var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, "/_/")); 6079var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(directory2, "./"));
Semantics\NullableReferenceTypesTests.cs (1)
115877var modifiers = ImmutableArray.Create(CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Object)));
Semantics\RecordStructTests.cs (8)
5950=> ImmutableArray.Create(Descriptor); 6179=> ImmutableArray.Create(Descriptor); 6275=> ImmutableArray.Create(Descriptor); 6404=> ImmutableArray.Create(Descriptor); 6501=> ImmutableArray.Create(Descriptor); 6559=> ImmutableArray.Create(Descriptor); 6652=> ImmutableArray.Create(Descriptor); 6813=> ImmutableArray.Create(Descriptor);
Semantics\TopLevelStatementsTests.cs (13)
6427=> ImmutableArray.Create(Descriptor); 6526=> ImmutableArray.Create(Descriptor); 6601=> ImmutableArray.Create(Descriptor); 6710=> ImmutableArray.Create(Descriptor); 6791=> ImmutableArray.Create(Descriptor); 6849=> ImmutableArray.Create(Descriptor); 6907=> ImmutableArray.Create(Descriptor); 6975=> ImmutableArray.Create(Descriptor); 7055=> ImmutableArray.Create(Descriptor); 7171=> ImmutableArray.Create(Descriptor); 7265=> ImmutableArray.Create(Descriptor); 7337=> ImmutableArray.Create(Descriptor); 7404=> ImmutableArray.Create(Descriptor);
SourceGeneration\GeneratorDriverTests.cs (1)
181=> ImmutableArray.Create(Descriptor);
SourceGeneration\StateTableTests.cs (37)
24builder.AddEntries(ImmutableArray.Create(1), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 25builder.AddEntries(ImmutableArray.Create(2), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 26builder.AddEntries(ImmutableArray.Create(3), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 78builder.AddEntries(ImmutableArray.Create(1), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 81builder.AddEntries(ImmutableArray.Create(6), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 147builder.AddEntries(ImmutableArray.Create(1), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 157builder.AddEntries(ImmutableArray.Create(1), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 168builder.AddEntries(ImmutableArray.Create(2), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 202builder.AddEntries(ImmutableArray.Create(1), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 203builder.AddEntries(ImmutableArray.Create(2), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 204builder.AddEntries(ImmutableArray.Create(3), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 205builder.AddEntries(ImmutableArray.Create(4), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 227builder.AddEntries(ImmutableArray.Create(1), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 228builder.AddEntries(ImmutableArray.Create(2), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 229builder.AddEntries(ImmutableArray.Create(3), EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 311nodeBuilder.AddEntries(ImmutableArray.Create(4), EntryState.Removed, TimeSpan.Zero, emptyInputSteps, EntryState.Removed); 623AssertTableEntries(table2, new[] { (ImmutableArray.Create("B"), EntryState.Modified, 0) }); 624AssertTableEntries(table2.AsCached(), new[] { (ImmutableArray.Create("B"), EntryState.Cached, 0) }); 631var inputNode = new InputNode<int>((_) => ImmutableArray.Create(1)); 662var inputNode = new InputNode<int>((_) => ImmutableArray.Create(1)); 698var inputNode = new InputNode<int>((_) => ImmutableArray.Create(value)); 737var inputNode = new InputNode<int>((_) => ImmutableArray.Create(value)); 829var transformNode = new TransformNode<int, int>(inputNode, (i, ct) => ImmutableArray.Create(i)).WithTrackingName("TestStep"); 863var input2Node = new InputNode<int>((_) => ImmutableArray.Create(0)); 940var filterNode = new TransformNode<int, int>(transformNode, (i, ct) => i <= 2 ? ImmutableArray.Create(i) : ImmutableArray<int>.Empty, name: "Filter"); 971var inputNode = new InputNode<ImmutableArray<int>>(_ => ImmutableArray.Create(values)).WithTrackingName("Input"); 1000var inputNode = new InputNode<ImmutableArray<int>>(_ => ImmutableArray.Create(values)).WithTrackingName("Input"); 1028ImmutableArray<ImmutableArray<string>> values = ImmutableArray.Create(ImmutableArray.Create("class1"), ImmutableArray.Create("class2")); 1040values = ImmutableArray.Create(ImmutableArray.Create("class3"), ImmutableArray.Create("class2")); 1048values = ImmutableArray.Create(ImmutableArray.Create("class3"), ImmutableArray.Create("class4")); 1057values = ImmutableArray.Create(ImmutableArray.Create("class1")); 1098values = ImmutableArray.Create(ImmutableArray.Create("class1", "class1.1")); 1295_ => ImmutableArray.Create("1.1")
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
1191driver = driver.AddGenerators(ImmutableArray.Create(testGenerator2.AsSourceGenerator()));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (96)
Compilation\CompilationAPITests.cs (14)
2510ImmutableArray.Create((ITypeSymbol)null), 2523ImmutableArray.Create(true))); 2535memberLocations: ImmutableArray.Create(Location.None))); 2569ImmutableArray.Create("m1"))); 2578ImmutableArray.Create((ITypeSymbol)null), 2588ImmutableArray.Create((ITypeSymbol)null), 2589ImmutableArray.Create("m1"))); 2598ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)), 2599ImmutableArray.Create((string)null))); 2607ImmutableArray.Create<ITypeSymbol>(compilation.GetSpecialType(SpecialType.System_Int32)), 2608ImmutableArray.Create("m1")); 2705Assert.Throws<ArgumentException>(() => comp.CreateAnonymousTypeSymbol(memberTypes, memberNames, memberNullableAnnotations: ImmutableArray.Create(CodeAnalysis.NullableAnnotation.NotAnnotated))); 3639var corlibReference = corlib.EmitToImageReference(aliases: ImmutableArray.Create("corlib")); 3667var otherReference = other.EmitToImageReference(aliases: ImmutableArray.Create("other"));
Compilation\GetUnusedImportDirectivesTests.cs (1)
347var comp = CreateCompilation(source, new[] { new CSharpCompilationReference(lib, aliases: ImmutableArray.Create("A")) });
Compilation\ReferenceManagerTests.cs (20)
1043var ref1 = AssemblyMetadata.CreateFromFile(exe1.Path).GetReference(aliases: ImmutableArray.Create("A1")); 1044var ref2 = AssemblyMetadata.CreateFromFile(exe2.Path).GetReference(aliases: ImmutableArray.Create("A2")); 1252return ImmutableArray.Create(MetadataReference.CreateFromFile(path1)); 1256return ImmutableArray.Create(MetadataReference.CreateFromFile(path2)); 2271WithProperties(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Z")).WithRecursiveAliases(true)), 2296WithProperties(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Z")).WithRecursiveAliases(true)), 2326new[] { MscorlibRef_v4_0_30316_17626, bRef.WithAliases(ImmutableArray.Create("X")), aRef }, 2355var c = CreateSubmissionWithExactReferences(source, new[] { MscorlibRef_v4_0_30316_17626, bRef.WithAliases(ImmutableArray.Create("X")), aRef }, 2395bRef.WithAliases(ImmutableArray.Create("X")), 2397aRef.WithProperties(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Y")).WithRecursiveAliases(true)), 2431bRef.WithAliases(ImmutableArray.Create("X")), 2432aRef.WithProperties(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Y")).WithRecursiveAliases(true)), 2467bRef.WithAliases(ImmutableArray.Create("X")), 2469aRef.WithProperties(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Y")).WithRecursiveAliases(true)), 2470aRef.WithProperties(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Y")).WithRecursiveAliases(true)), 2508bRef.WithAliases(ImmutableArray.Create("X")), 2510dRef.WithProperties(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Z")).WithRecursiveAliases(true)), 2554{ "B", bRef.WithAliases(ImmutableArray.Create("X")) } 2584var b3RefX = b3Ref.WithAliases(ImmutableArray.Create("X")); 2585var b3RefY = b3Ref.WithAliases(ImmutableArray.Create("Y"));
Compilation\SemanticModelAPITests.cs (2)
1259var ref1 = comp1.EmitToImageReference(aliases: ImmutableArray.Create("X")); 3841var libRef = CreateCompilation("", assemblyName: "lib").EmitToImageReference(aliases: ImmutableArray.Create("Alias"));
DocumentationComments\CrefTests.cs (3)
2135var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { new CSharpCompilationReference(lib, aliases: ImmutableArray.Create("LibAlias")) }); 2165var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { new CSharpCompilationReference(lib, aliases: ImmutableArray.Create("LibAlias")) }); 2195var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { new CSharpCompilationReference(lib, aliases: ImmutableArray.Create("LibAlias")) });
Symbols\AssemblyAndNamespaceTests.cs (2)
373var aliasedCorlib = NetFramework.mscorlib.WithAliases(ImmutableArray.Create("Goo")); 413var libRef = libComp.EmitToImageReference(aliases: ImmutableArray.Create("myTask"));
Symbols\CompilationCreationTests.cs (5)
2652return ImmutableArray.Create(MetadataReference.CreateFromFile(_data)); 2655return ImmutableArray.Create(MetadataReference.CreateFromFile(_core)); 2658return ImmutableArray.Create(MetadataReference.CreateFromFile(_system)); 2663return ImmutableArray.Create(MetadataReference.CreateFromFile(reference)); 2764return ImmutableArray.Create(MetadataReference.CreateFromFile(path, properties));
Symbols\FunctionPointerTypeSymbolTests.cs (26)
1534Assert.Throws<ArgumentNullException>("parameterTypes[0]", () => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray.Create((ITypeSymbol?)null)!, parameterRefKinds: ImmutableArray.Create(RefKind.None))); 1536Assert.Throws<ArgumentNullException>("callingConventionTypes[0]", () => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.Unmanaged, ImmutableArray.Create((INamedTypeSymbol)null!))); 1537Assert.Throws<ArgumentException>(() => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray.Create(RefKind.None))); 1540Assert.Throws<ArgumentException>(() => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.Default, callingConventionTypes: ImmutableArray.Create(cdeclType)!)); 1541Assert.Throws<ArgumentException>(() => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.StdCall, callingConventionTypes: ImmutableArray.Create(cdeclType)!)); 1542Assert.Throws<ArgumentException>(() => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.FastCall, callingConventionTypes: ImmutableArray.Create(cdeclType)!)); 1543Assert.Throws<ArgumentException>(() => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.CDecl, callingConventionTypes: ImmutableArray.Create(cdeclType)!)); 1544Assert.Throws<ArgumentException>(() => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.ThisCall, callingConventionTypes: ImmutableArray.Create(cdeclType)!)); 1545Assert.Throws<ArgumentException>(() => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.Unmanaged, callingConventionTypes: ImmutableArray.Create(@string)!)); 1585ImmutableArray.Create((ITypeSymbol)@string), 1586ImmutableArray.Create(RefKind.In)); 1602ImmutableArray.Create((ITypeSymbol)@string), 1603ImmutableArray.Create(RefKind.Out)); 1620ImmutableArray.Create((ITypeSymbol)@string), 1621ImmutableArray.Create(RefKind.Out)); 1658ptr = comp.CreateFunctionPointerTypeSymbol(@string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, SignatureCallingConvention.Unmanaged, ImmutableArray.Create(cdeclType)!); 1987var funcPtrConventionThisCallWithThiscallMod = createTypeSymbol(customModifiers: ImmutableArray.Create(thiscallMod), CallingConvention.ThisCall); 1989var funcPtrThiscall = createTypeSymbol(customModifiers: ImmutableArray.Create(thiscallMod)); 2089var funcPtrCallConv = createTypeSymbol(customModifiers: ImmutableArray.Create(callConvMod)); 2141var funcPtrThiscallOnTypeThiscallOnRef = createTypeSymbol(typeCustomModifiers: ImmutableArray.Create(thiscallMod), refCustomModifiers: ImmutableArray.Create(thiscallMod)); 2142var funcPtrThiscallOnTypeStdcallOnRef = createTypeSymbol(typeCustomModifiers: ImmutableArray.Create(thiscallMod), refCustomModifiers: ImmutableArray.Create(stdcallMod)); 2143var funcPtrStdcallOnTypeThiscallOnRef = createTypeSymbol(typeCustomModifiers: ImmutableArray.Create(stdcallMod), refCustomModifiers: ImmutableArray.Create(thiscallMod));
Symbols\Metadata\PE\TypeForwarders.cs (8)
1919var refA1 = compA1.EmitToImageReference(aliases: ImmutableArray.Create("A")); 1923var refB1 = compB1.EmitToImageReference(aliases: ImmutableArray.Create("B")); 1954comp = CreateCompilation(sourceProgram, references: new[] { refA1, compB2.EmitToImageReference(aliases: ImmutableArray.Create("B")), refBImpl }); 1961comp = CreateCompilation(sourceProgram, references: new[] { refA1, new CSharpCompilationReference(compB2, aliases: ImmutableArray.Create("B")), refBImpl }); 1983var refA1 = compA1.EmitToImageReference(aliases: ImmutableArray.Create("A")); 1987var refB1 = compB1.EmitToImageReference(aliases: ImmutableArray.Create("B")); 2018comp = CreateCompilation(sourceProgram, references: new[] { refA1, compB2.EmitToImageReference(aliases: ImmutableArray.Create("B")), refBImpl }); 2025comp = CreateCompilation(sourceProgram, references: new[] { refA1, new CSharpCompilationReference(compB2, aliases: ImmutableArray.Create("B")), refBImpl });
Symbols\ModuleInitializers\ModuleInitializersTests.cs (2)
1098var ref1 = CreateCompilation(source1).ToMetadataReference(aliases: ImmutableArray.Create("Alias1")); 1099var ref2 = CreateCompilation(source1).ToMetadataReference(aliases: ImmutableArray.Create("Alias2"));
Symbols\Source\ExternAliasTests.cs (7)
38s_goo1 = comp.EmitToImageReference(aliases: ImmutableArray.Create("Bar")); 63s_goo2 = comp.EmitToImageReference(aliases: ImmutableArray.Create("Bar")); 217var goo1Alias = outputMetadata.GetReference(aliases: ImmutableArray.Create("Baz")); 317var goo1Alias = comp.EmitToImageReference(aliases: ImmutableArray.Create("global")); 396var ref1 = comp1.EmitToImageReference(aliases: ImmutableArray.Create("X")); 399var ref2 = comp2.EmitToImageReference(aliases: ImmutableArray.Create("X")); 471var libRef = new CSharpCompilationReference(CreateCompilation(libSource, assemblyName: "lib"), aliases: ImmutableArray.Create("A"));
Symbols\Source\FileModifierTests.cs (1)
841ImmutableArray.Create(new KeyValuePair<string, string>(root2, root1)));
Symbols\Source\ModifierTests.cs (1)
153var customModifiers = ImmutableArray.Create(CSharpCustomModifier.CreateOptional(intType));
Symbols\Source\NullablePublicAPITests.cs (2)
1782=> ImmutableArray.Create(Descriptor); 4838=> ImmutableArray.Create(Descriptor);
Symbols\SymbolErrorTests.cs (2)
7343new CSharpCompilationReference(forwardedTypes1, aliases: ImmutableArray.Create("FT1")) 7362new CSharpCompilationReference(forwardedTypes1, ImmutableArray.Create("FT1"))
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CSharpTestBase.cs (1)
1474private static readonly ImmutableArray<MetadataReference> s_scriptRefs = ImmutableArray.Create(MscorlibRef_v4_0_30316_17626);
Extensions.cs (1)
151return ImmutableArray.Create(name);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
227editor.SetStatements(functionDeclaration, ImmutableArray.Create(statement));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (7)
Classification\AbstractClassifierTests.cs (2)
48spans = ImmutableArray.Create(new TextSpan(start, length)); 59spans = ImmutableArray.Create(new TextSpan(0, allCode.Length));
NavigateTo\AbstractNavigateToTests.cs (1)
247=> ImmutableArray.Create(_workspace.CurrentSolution.Projects.First().DocumentIds.First());
ObsoleteSymbol\AbstractObsoleteSymbolTests.cs (1)
37var textSpans = ImmutableArray.Create(new TextSpan(0, text.Length));
ReassignedVariable\AbstractReassignedVariableTests.cs (1)
36var textSpans = ImmutableArray.Create(new TextSpan(0, text.Length));
Workspaces\NoCompilationDocumentDiagnosticAnalyzer.cs (2)
22public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 29return Task.FromResult(ImmutableArray.Create(
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.SnapshotSourceText.cs (1)
354return ImmutableArray.Create(new TextChangeRange(new TextSpan(0, oldTextLength), this.Length));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (62)
CodeFixes\CodeFixServiceTests.cs (28)
198var generators = ImmutableArray.Create<ISourceGenerator>(generator); 201var codeFixes = ImmutableArray.Create<CodeFixProvider>(codeFix); 293var reference = new MockAnalyzerReference(codefix, ImmutableArray.Create(diagnosticAnalyzer)); 333=> ServiceSetup(ImmutableArray.Create(codefix), includeConfigurationFixProviders, throwExceptionInFixerCreation, additionalDocument, code); 426get { return ImmutableArray.Create(Id); } 452private static readonly ImmutableArray<CodeFixProvider> s_defaultFixers = ImmutableArray.Create<CodeFixProvider>(new MockFixer()); 453private static readonly ImmutableArray<DiagnosticAnalyzer> s_defaultAnalyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new MockDiagnosticAnalyzer()); 468: this(fixer != null ? ImmutableArray.Create(fixer) : ImmutableArray<CodeFixProvider>.Empty, 537: this(ImmutableArray.Create((diagnosticId, category))) 547: this(ImmutableArray.Create(MockFixer.Id)) 580: this(ImmutableArray.Create(MockFixer.Id)) 645var fixableDiagnosticIds = ImmutableArray.Create(MockFixer.Id); 721nugetFixer: new NuGetCodeFixProvider(ImmutableArray.Create(id1)), 722expectedDiagnosticIdsWithRegisteredCodeActionsByNuGetFixer: ImmutableArray.Create(id1), 723vsixFixer: new VsixCodeFixProvider(ImmutableArray.Create(id2)), 724expectedDiagnosticIdsWithRegisteredCodeActionsByVsixFixer: ImmutableArray.Create(id2), 731nugetFixer: new NuGetCodeFixProvider(ImmutableArray.Create(id1)), 732expectedDiagnosticIdsWithRegisteredCodeActionsByNuGetFixer: ImmutableArray.Create(id1), 734expectedDiagnosticIdsWithRegisteredCodeActionsByVsixFixer: ImmutableArray.Create(id2), 777var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(diagnosticAnalyzer); 828var analyzer = new MockAnalyzerReference.MockDiagnosticAnalyzer(ImmutableArray.Create(diagnosticId)); 847public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(_diagnosticId); 878var analyzerReference = new MockAnalyzerReference(fixers, ImmutableArray.Create<DiagnosticAnalyzer>(analyzer)); 913public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_descriptor); 940public sealed override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(AdditionalFileAnalyzer.DiagnosticId); 1033var analyzerReference = new MockAnalyzerReference(codeFix, ImmutableArray.Create<DiagnosticAnalyzer>(analyzer)); 1179public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1220public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(DeprioritizedAnalyzer.Descriptor.Id);
CodeFixes\ErrorCases\CodeFixExceptionInGetFixAllProvider.cs (1)
19get { return ImmutableArray.Create(CodeFixServiceTests.MockFixer.Id); }
CodeFixes\ErrorCases\CodeFixExceptionInRegisterMethod.cs (1)
18get { return ImmutableArray.Create(CodeFixServiceTests.MockFixer.Id); }
CodeFixes\ErrorCases\CodeFixExceptionInRegisterMethodAsync.cs (1)
18get { return ImmutableArray.Create(CodeFixServiceTests.MockFixer.Id); }
CodeGeneration\CodeGenerationTests.CSharp.cs (4)
153thisArguments: ImmutableArray.Create<SyntaxNode>(CS.SyntaxFactory.ParseExpression("42"))); 625typeParameters: ImmutableArray.Create(CodeGenerationSymbolFactory.CreateTypeParameterSymbol("T")), 1465var getMembers = ImmutableArray.Create(getField); 1491var getMembers = ImmutableArray.Create(getField);
CodeGeneration\CodeGenerationTests.VisualBasic.cs (6)
162thisArguments: ImmutableArray.Create<SyntaxNode>(VB.SyntaxFactory.ParseExpression("42"))); 472var addStatements = ImmutableArray.Create<SyntaxNode>(VB.SyntaxFactory.ParseExecutableStatement("Console.WriteLine(0)")); 473var removeStatements = ImmutableArray.Create<SyntaxNode>(VB.SyntaxFactory.ParseExecutableStatement("Console.WriteLine(1)")); 474var raiseStatements = ImmutableArray.Create<SyntaxNode>(VB.SyntaxFactory.ParseExecutableStatement("Console.WriteLine(2)")); 593typeParameters: ImmutableArray.Create(CodeGenerationSymbolFactory.CreateTypeParameterSymbol("T")), 1535var getMembers = ImmutableArray.Create(getField);
Completion\CompletionServiceTests.cs (1)
92=> ImmutableArray.Create(_completionProvider);
Completion\FileSystemCompletionHelperTests.cs (1)
163allowableExtensions: ImmutableArray.Create(".cs"),
Diagnostics\DiagnosticAnalyzerServiceTests.cs (13)
60var analyzerReference = new AnalyzerImageReference(ImmutableArray.Create<DiagnosticAnalyzer>(new Analyzer())); 81var analyzerReference = new AnalyzerImageReference(ImmutableArray.Create<DiagnosticAnalyzer>(new Analyzer())); 99var analyzerReference = new AnalyzerImageReference(ImmutableArray.Create<DiagnosticAnalyzer>(new Analyzer())); 149var analyzerReference = new AnalyzerImageReference(ImmutableArray.Create<DiagnosticAnalyzer>(new DisabledByDefaultAnalyzer())); 378.AddAnalyzerReference(new AnalyzerImageReference(ImmutableArray.Create(analyzer))) 429var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer); 746var analyzerReference = new AnalyzerImageReference(ImmutableArray.Create<DiagnosticAnalyzer>(analyzer)); 949public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_syntaxRule); 952=> Task.FromResult(ImmutableArray.Create(Diagnostic.Create(s_syntaxRule, Location.Create(document.FilePath, TextSpan.FromBounds(0, 0), new LinePositionSpan(new LinePosition(0, 0), new LinePosition(0, 0)))))); 1011public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_syntaxRule); 1016return ImmutableArray.Create(Diagnostic.Create(s_syntaxRule, root.GetLocation())); 1026public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_rule); 1037=> _supportedDiagnostics = ImmutableArray.Create(new DiagnosticDescriptor(DiagnosticId, "test", "test", "test", defaultSeverity, isEnabledByDefault: true));
Preview\PreviewWorkspaceTests.cs (1)
139var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new CommonDiagnosticAnalyzers.NotConfigurableDiagnosticAnalyzer());
UnusedReferences\ProjectAssets\ProjectAssetsReaderTests.cs (2)
69=> new(ReferenceType.Project, projectPath, treatAsUsed, ImmutableArray.Create(Path.ChangeExtension(projectPath, "dll")), dependencies.ToImmutableArray()); 73=> new(ReferenceType.Package, Path.GetFileNameWithoutExtension(assemblyPath), treatAsUsed, ImmutableArray.Create(assemblyPath), dependencies.ToImmutableArray());
UnusedReferences\UnusedReferencesRemoverTests.cs (3)
185compilationAssemblies: ImmutableArray.Create(assemblyPath), 194compilationAssemblies: ImmutableArray.Create(assemblyPath), 203compilationAssemblies: ImmutableArray.Create(assemblyPath),
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (78)
CodeDefinitionWindow\CrossLanguageCodeDefinitionWindowTests.vb (1)
45Return ImmutableArray.Create(New TaggedText("", "DisplayText"))
CodeFixes\CodeFixServiceTests.vb (8)
52Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(workspaceDiagnosticAnalyzer)) 88Dim projectAnalyzerReferences = ImmutableArray.Create(Of AnalyzerReference)(projectAnalyzerReference) 124Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(workspaceDiagnosticAnalyzer)) 160Dim projectAnalyzerReferences = ImmutableArray.Create(Of AnalyzerReference)(projectAnalyzerReference) 196Return ImmutableArray.Create(DiagDescriptor) 221Return ImmutableArray.Create("TEST0000") 246Return ImmutableArray.Create("TEST1111") 339Return Task.FromResult(ImmutableArray.Create("Title"))
Diagnostics\AbstractCrossLanguageUserDiagnosticTest.vb (1)
138analyzeReferences = {New AnalyzerImageReference(ImmutableArray.Create(analyzer))}
Diagnostics\AdditionalFileDiagnosticsTests.vb (2)
72Return ImmutableArray.Create(Rule) 108Return ImmutableArray.Create(AdditionalFileAnalyzer.Rule.Id)
Diagnostics\DiagnosticProviderTests.vb (1)
284NoCompilationConstants.LanguageName, ImmutableArray.Create(Of DiagnosticAnalyzer)(New NoCompilationDocumentDiagnosticAnalyzer()))
Diagnostics\DiagnosticServiceTests.vb (58)
86Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(workspaceDiagnosticAnalyzer)) 109Dim projectAnalyzers1 = ImmutableArray.Create(Of DiagnosticAnalyzer)(projectDiagnosticAnalyzer1) 111Dim projectAnalyzerReferences1 = ImmutableArray.Create(Of AnalyzerReference)(projectAnalyzerReference1) 125Dim projectAnalyzers2 = ImmutableArray.Create(Of DiagnosticAnalyzer)(projectDiagnosticAnalyzer2) 191Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(workspaceDiagnosticAnalyzer)) 203Dim projectAnalyzerReferences1 = ImmutableArray.Create(Of AnalyzerReference)(projectAnalyzerReference1) 231ImmutableArray.Create(Of DiagnosticAnalyzer)(New TestDiagnosticAnalyzer1(0)), display:=referenceName) 240ImmutableArray.Create(Of DiagnosticAnalyzer)(New TestDiagnosticAnalyzer1(1)), display:=referenceName) 244project = project.WithAnalyzerReferences(ImmutableArray.Create(Of AnalyzerReference)(projectAnalyzerReference)) 271Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(workspaceDiagnosticAnalyzer)) 340p1 = p1.WithAnalyzerReferences(SpecializedCollections.SingletonCollection(New AnalyzerImageReference(ImmutableArray.Create(analyzer1)))) 344p2 = p2.WithAnalyzerReferences(SpecializedCollections.SingletonCollection(New AnalyzerImageReference(ImmutableArray.Create(analyzer2)))) 383{LanguageNames.CSharp, ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer1)}, 384{LanguageNames.VisualBasic, ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer2)} 464Dim analyzerReference1 = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 465Dim analyzerReference2 = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 488Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 523Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 569Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 603Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 636Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 670Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 746Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 782Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 842Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 867Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 906Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 941Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 980Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 1003Await TestDiagnosticsReportedOnAllPartialDefinitionsCoreAsync(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 1088Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(analyzer)) 1131Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(analyzer)) 1174Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(analyzer)) 1226Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 1252Return ImmutableArray.Create(Descriptor1) 1289Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 1336Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 1371Return ImmutableArray.Create(Descriptor1) 1402Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 1451Return ImmutableArray.Create(Descriptor) 1539Return ImmutableArray.Create(DiagDescriptor) 1564Return ImmutableArray.Create(DiagDescriptor) 1591Return ImmutableArray.Create(DiagDescriptor) 1616Return ImmutableArray.Create(DiagDescriptor) 1659Return ImmutableArray.Create(Descriptor) 1687Return ImmutableArray.Create(Descriptor) 1713Return ImmutableArray.Create(Descriptor) 1739Return ImmutableArray.Create(Descriptor) 1767Return ImmutableArray.Create(Descriptor) 1880Return ImmutableArray.Create(Descriptor) 1957Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 2084Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 2123Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 2180Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(analyzer)) 2227Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 2396Return ImmutableArray.Create(Descriptor) 2432Dim analyzerReference = New AnalyzerImageReference(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)) 2512Return ImmutableArray.Create(s_descriptor)
IntelliSense\CSharpCompletionCommandHandlerTests.vb (1)
10919Dim result = ImmutableArray.Create("PythiaRecommendName")
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (5)
332MockDefaultSource.Defaults = ImmutableArray.Create("FirstDefault") 389MockDefaultSource.Defaults = ImmutableArray.Create("SecondStarred") 459MockDefaultSource.Defaults = ImmutableArray.Create("if") 568MockDefaultSource.Defaults = ImmutableArray.Create("ItemExpanded1") 608MockDefaultSource.Defaults = ImmutableArray.Create("Title")
IntelliSense\IntellisenseQuickInfoBuilderTests.vb (1)
52ImmutableArray.Create(New TaggedText(TextTags.Text, "Writes the specified string value, followed by the current line terminator, to the standard output stream."))),
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (2)
CSharp\MemberSignatureParser.cs (1)
224ImmutableArray.Create(type));
VisualBasic\MemberSignatureParser.cs (1)
246ImmutableArray.Create(type));
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (4)
EmbeddedLanguages\AspNetCoreCSharpRouteSyntaxDetector.cs (1)
22var identifiers = ImmutableArray.Create("Route");
EmbeddedLanguages\BraceMatching\AspNetCoreBraceMatcherExtensionProvider.cs (1)
18=> ImmutableArray.Create(exportAttribute.Language);
EmbeddedLanguages\Classification\AspNetCoreClassifierExtensionProvider.cs (1)
18=> ImmutableArray.Create(exportAttribute.Language);
EmbeddedLanguages\DocumentHighlighting\AspNetCoreClassifierExtensionProvider.cs (1)
18=> ImmutableArray.Create(exportAttribute.Language);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (3)
Internal\Diagnostics\FSharpSimplifyNameDiagnosticAnalyzer.cs (1)
51public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_descriptor);
Internal\Diagnostics\FSharpUnusedDeclarationsAnalyzer.cs (1)
53public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_descriptor);
Internal\Diagnostics\FSharpUnusedOpensDiagnosticAnalyzer.cs (1)
48public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_descriptor);
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Internal\DescriptionService.cs (1)
68var quickInfo = await QuickInfoUtilities.CreateQuickInfoItemAsync(services, semanticModel, span: default, ImmutableArray.Create(symbol), options, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (23)
AddMissingReference\AddMissingReferenceCodeAction.cs (1)
80return Task.FromResult(ImmutableArray.Create<CodeActionOperation>(
Completion\CompletionItemRules.cs (2)
212=> With(filterRules: ImmutableArray.Create(rule)); 215=> With(commitRules: ImmutableArray.Create(rule));
EditAndContinue\EditSession.cs (1)
861Telemetry.LogProjectAnalysisSummary(ProjectAnalysisSummary.ValidChanges, newProject.State.ProjectInfo.Attributes.TelemetryId, ImmutableArray.Create(mvidReadError.Descriptor.Id));
EncapsulateField\AbstractEncapsulateFieldService.cs (1)
95var fields = ImmutableArray.Create(field);
SimplifyThisOrMe\AbstractSimplifyThisOrMeDiagnosticAnalyzer.cs (1)
78ImmutableArray.Create(memberAccessExpression.GetLocation()),
SplitOrMergeIfStatements\AbstractMergeIfStatementsCodeRefactoringProvider.cs (1)
119statements = ImmutableArray.Create(parent);
SplitOrMergeIfStatements\Consecutive\AbstractSplitIntoConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
92editor.ReplaceNode(ifOrElseIf, (currentNode, _) => generator.ScopeBlock(ImmutableArray.Create(currentNode)));
src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
122var additionalLocations = ImmutableArray.Create(binaryLike.GetLocation());
src\Analyzers\Core\Analyzers\NewLines\ConsecutiveStatementPlacement\AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
112additionalLocations: ImmutableArray.Create(nextToken.GetLocation()),
src\Analyzers\Core\Analyzers\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesDiagnosticAnalyzer.cs (1)
82additionalLocations: ImmutableArray.Create(token.GetLocation()),
src\Analyzers\Core\Analyzers\RemoveUnnecessaryCast\AbstractRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
74ImmutableArray.Create(node.GetLocation()));
src\Analyzers\Core\Analyzers\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
107var additionalLocations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
182var locations = ImmutableArray.Create(objectCreationExpression.GetLocation());
src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (3)
163additionalLocations: ImmutableArray.Create(assignment.GetLocation()), 183additionalLocations: ImmutableArray.Create(assignment.GetLocation()), 196additionalLocations: ImmutableArray.Create(assignment.GetLocation()),
src\Analyzers\Core\Analyzers\UseConditionalExpression\AbstractUseConditionalExpressionDiagnosticAnalyzer.cs (1)
60additionalLocations: ImmutableArray.Create(ifStatement.GetLocation()),
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
132var additionalLocations = ImmutableArray.Create(invocation.GetLocation());
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (2)
119var nodes = ImmutableArray.Create<SyntaxNode>(containingStatement).AddRange(matches.Select(m => m.Statement)); 123var locations = ImmutableArray.Create(objectCreationExpression.GetLocation());
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
221? ImmutableArray.Create(disposeMethod) : default;
SyncNamespaces\AbstractSyncNamespacesService.cs (1)
41var diagnosticAnalyzers = ImmutableArray.Create<DiagnosticAnalyzer>(DiagnosticAnalyzer);
Microsoft.CodeAnalysis.Features.UnitTests (19)
EditAndContinue\EditAndContinueCapabilitiesTests.cs (3)
16var capabilities = ImmutableArray.Create("Baseline"); 27var capabilities = ImmutableArray.Create("BaseLine"); 61var capabilities = ImmutableArray.Create(name);
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (7)
420_debuggerService.GetCapabilitiesImpl = () => ImmutableArray.Create("Baseline"); 422var openDocumentIds = open ? ImmutableArray.Create(designTimeOnlyDocumentId) : ImmutableArray<DocumentId>.Empty; 453var asSpans = await debuggingSession.GetBaseActiveStatementSpansAsync(solution, ImmutableArray.Create(designTimeOnlyDocumentId), CancellationToken.None); 1978_debuggerService.GetCapabilitiesImpl = () => ImmutableArray.Create("Baseline"); 2066_debuggerService.GetCapabilitiesImpl = () => ImmutableArray.Create("Baseline"); 2101_debuggerService.GetCapabilitiesImpl = () => ImmutableArray.Create("Baseline"); 3133_debuggerService.GetCapabilitiesImpl = () => ImmutableArray.Create("Baseline");
EditAndContinue\EditSessionActiveStatementsTests.cs (2)
265updatedMethodTokens: ImmutableArray.Create(0x06000004), // contains only recompiled methods in the project we are interested in (module2) 380updatedMethodTokens: ImmutableArray.Create(0x06000001), // F1
EditAndContinue\EmitSolutionUpdateResultsTests.cs (3)
87customTags: ImmutableArray.Create("Test2"), 103customTags: ImmutableArray.Create("Test2"), 120customTags: ImmutableArray.Create("Test3"),
EditAndContinue\RemoteEditAndContinueServiceTests.cs (4)
148captureMatchingDocuments: ImmutableArray.Create(documentId), 190updatedMethods: ImmutableArray.Create(0x06000001), 191updatedTypes: ImmutableArray.Create(0x02000001), 289mockEncService.GetDocumentDiagnosticsImpl = (document, activeStatementProvider) => ImmutableArray.Create(diagnostic);
Microsoft.CodeAnalysis.InteractiveHost (4)
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (3)
79return ImmutableArray.Create(map(items[0])); 119return ImmutableArray.Create(map(items[0], arg)); 159return ImmutableArray.Create(map(items[0], 0, arg));
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
523dictionary1.Add(keySelector(value), ImmutableArray.Create(value));
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\HostDiagnosticAnalyzerProvider.cs (1)
24_analyzerReferences = ImmutableArray.Create<(AnalyzerFileReference reference, string extensionId)>((
Microsoft.CodeAnalysis.LanguageServer.Protocol (40)
Extensions\ProtocolConversions.cs (35)
55{ WellKnownTags.Public, ImmutableArray.Create(LSP.CompletionItemKind.Keyword) }, 56{ WellKnownTags.Protected, ImmutableArray.Create(LSP.CompletionItemKind.Keyword) }, 57{ WellKnownTags.Private, ImmutableArray.Create(LSP.CompletionItemKind.Keyword) }, 58{ WellKnownTags.Internal, ImmutableArray.Create(LSP.CompletionItemKind.Keyword) }, 59{ WellKnownTags.File, ImmutableArray.Create(LSP.CompletionItemKind.File) }, 60{ WellKnownTags.Project, ImmutableArray.Create(LSP.CompletionItemKind.File) }, 61{ WellKnownTags.Folder, ImmutableArray.Create(LSP.CompletionItemKind.Folder) }, 62{ WellKnownTags.Assembly, ImmutableArray.Create(LSP.CompletionItemKind.File) }, 63{ WellKnownTags.Class, ImmutableArray.Create(LSP.CompletionItemKind.Class) }, 64{ WellKnownTags.Constant, ImmutableArray.Create(LSP.CompletionItemKind.Constant) }, 66{ WellKnownTags.Enum, ImmutableArray.Create(LSP.CompletionItemKind.Enum) }, 67{ WellKnownTags.EnumMember, ImmutableArray.Create(LSP.CompletionItemKind.EnumMember) }, 68{ WellKnownTags.Event, ImmutableArray.Create(LSP.CompletionItemKind.Event) }, 70{ WellKnownTags.Field, ImmutableArray.Create(LSP.CompletionItemKind.Field) }, 71{ WellKnownTags.Interface, ImmutableArray.Create(LSP.CompletionItemKind.Interface) }, 72{ WellKnownTags.Intrinsic, ImmutableArray.Create(LSP.CompletionItemKind.Text) }, 73{ WellKnownTags.Keyword, ImmutableArray.Create(LSP.CompletionItemKind.Keyword) }, 74{ WellKnownTags.Label, ImmutableArray.Create(LSP.CompletionItemKind.Text) }, 75{ WellKnownTags.Local, ImmutableArray.Create(LSP.CompletionItemKind.Variable) }, 77{ WellKnownTags.Method, ImmutableArray.Create(LSP.CompletionItemKind.Method) }, 78{ WellKnownTags.Module, ImmutableArray.Create(LSP.CompletionItemKind.Module) }, 79{ WellKnownTags.Operator, ImmutableArray.Create(LSP.CompletionItemKind.Operator) }, 80{ WellKnownTags.Parameter, ImmutableArray.Create(LSP.CompletionItemKind.Variable) }, 81{ WellKnownTags.Property, ImmutableArray.Create(LSP.CompletionItemKind.Property) }, 82{ WellKnownTags.RangeVariable, ImmutableArray.Create(LSP.CompletionItemKind.Variable) }, 83{ WellKnownTags.Reference, ImmutableArray.Create(LSP.CompletionItemKind.Reference) }, 84{ WellKnownTags.Structure, ImmutableArray.Create(LSP.CompletionItemKind.Struct) }, 85{ WellKnownTags.TypeParameter, ImmutableArray.Create(LSP.CompletionItemKind.TypeParameter) }, 86{ WellKnownTags.Snippet, ImmutableArray.Create(LSP.CompletionItemKind.Snippet) }, 87{ WellKnownTags.Error, ImmutableArray.Create(LSP.CompletionItemKind.Text) }, 88{ WellKnownTags.Warning, ImmutableArray.Create(LSP.CompletionItemKind.Text) }, 89{ WellKnownTags.StatusInformation, ImmutableArray.Create(LSP.CompletionItemKind.Text) }, 90{ WellKnownTags.AddReference, ImmutableArray.Create(LSP.CompletionItemKind.Text) }, 91{ WellKnownTags.NuGet, ImmutableArray.Create(LSP.CompletionItemKind.Text) } 102{ WellKnownTags.Deprecated, ImmutableArray.Create(LSP.CompletionItemTag.Deprecated) },
Handler\CodeActions\CodeActionHelpers.cs (1)
112var codeActionPathList = ImmutableArray.Create(codeAction.Title);
Handler\Diagnostics\DocumentPullDiagnosticHandler.cs (1)
60return ImmutableArray.Create(new PreviousPullResult(diagnosticsParams.PreviousResultId, diagnosticsParams.TextDocument));
Handler\Diagnostics\Public\PublicDocumentPullDiagnosticsHandler.cs (1)
86return ImmutableArray.Create(new PreviousPullResult(diagnosticsParams.PreviousResultId, diagnosticsParams.TextDocument));
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (1)
85return ImmutableArray.Create(codeSnippetsElement);
Handler\SpellCheck\DocumentSpellCheckHandler.cs (1)
28return ImmutableArray.Create(new PreviousPullResult(requestParams.PreviousResultId, requestParams.TextDocument));
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (10)
Diagnostics\AbstractPullDiagnosticTestsBase.cs (3)
50builder.Add(LanguageNames.VisualBasic, ImmutableArray.Create(DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.VisualBasic))); 377public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 384return Task.FromResult(ImmutableArray.Create(
Diagnostics\AdditionalFileDiagnosticsTests.cs (1)
129=> ImmutableArray.Create(_descriptor);
Diagnostics\BuildOnlyDiagnosticIdsHandlerTests.cs (2)
93public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor); 105public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor);
Diagnostics\PullDiagnosticTests.cs (2)
132public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_descriptor); 146public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_descriptor);
Diagnostics\WorkspaceProjectDiagnosticsTests.cs (1)
78=> ImmutableArray.Create(_descriptor);
VSTypeScriptHandlerTests.cs (1)
123ImmutableArray.Create(InternalLanguageNames.TypeScript),
Microsoft.CodeAnalysis.PooledObjects.Package (1)
ArrayBuilder.cs (1)
523dictionary1.Add(keySelector(value), ImmutableArray.Create(value));
Microsoft.CodeAnalysis.Rebuild.UnitTests (6)
BasicDeterministicKeyBuilderTests.cs (1)
91var key = compilation.GetDeterministicKey(additionalTexts: ImmutableArray.Create<AdditionalText>(additionalText));
CSharpDeterministicKeyBuilderTests.cs (1)
196var key = compilation.GetDeterministicKey(additionalTexts: ImmutableArray.Create<AdditionalText>(additionalText));
DeterministicKeyBuilderTests.cs (4)
516.WithInstrumentationKinds(ImmutableArray.Create(kind)); 580(string, string) => ImmutableArray.Create(KeyValuePairUtil.Create(pathMapFrom, pathMapTo)), 728(string, string) => ImmutableArray.Create(KeyValuePairUtil.Create(pathMapFrom, pathMapTo)), 760ImmutableArray.Create<AdditionalText>(additionalText));
Microsoft.CodeAnalysis.Scripting (7)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
478var modules = (moduleBuilder != null) ? moduleBuilder.ToImmutable() : ImmutableArray.Create(manifestModule);
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (5)
30MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("<implicit>")); 161return ImmutableArray.Create(result); 170return ImmutableArray.Create(CreateFromFile(resolvedPath, properties)); 181return ImmutableArray.Create(CreateFromFile(path, properties)); 190return ImmutableArray.Create(result);
Script.cs (1)
240MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("<host>")).WithRecursiveAliases(true);
Microsoft.CodeAnalysis.Scripting.TestUtilities (2)
TestRuntimeMetadataReferenceResolver.cs (2)
17private static readonly MetadataReferenceProperties s_resolvedMissingAssemblyReferenceProperties = MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("<implicit>")); 53return ImmutableArray.Create(MetadataReference.CreateFromFile(reference, properties));
Microsoft.CodeAnalysis.Scripting.UnitTests (7)
RuntimeMetadataReferenceResolverTests.cs (2)
31new RelativePathResolver(ImmutableArray.Create(directory.Path), directory.Path), 51searchPaths: ImmutableArray.Create(directory.Path),
ScriptOptionsTests.cs (5)
87Assert.Throws<ArgumentNullException>("references[0]", () => options.WithReferences(ImmutableArray.Create((MetadataReference)null))); 93Assert.Throws<ArgumentNullException>("references[0]", () => options.WithReferences(ImmutableArray.Create((Assembly)null))); 99Assert.Throws<ArgumentNullException>("references[0]", () => options.WithReferences(ImmutableArray.Create((string)null))); 129Assert.Throws<ArgumentNullException>("imports[0]", () => options.AddImports(ImmutableArray.Create((string)null))); 150Assert.Throws<ArgumentNullException>("imports[0]", () => options.WithImports(ImmutableArray.Create((string)null)));
Microsoft.CodeAnalysis.Test.Utilities (79)
Diagnostics\BoxingOperationAnalyzer.cs (1)
35get { return ImmutableArray.Create(BoxingDescriptor); }
Diagnostics\CommonDiagnosticAnalyzers.cs (43)
649public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptor); 679ImmutableArray.Create(Rule); 718ImmutableArray.Create(Rule); 743public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DummyRule); 760public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule); 785ImmutableArray.Create(Rule); 821public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 832public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create((DiagnosticDescriptor)null); 852public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 873public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 896public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 959public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 998public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule); 1037public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule); 1069public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1102public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1136public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1199public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1327public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1385public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1416public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1461public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1562ImmutableArray.Create(ClassDeclarationSyntaxKind)); 1691public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule); 1855public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(ParameterDescriptor); 2169=> ImmutableArray.Create(SuppressionDescriptor); 2231=> ImmutableArray.Create(SuppressionDescriptor); 2274=> ImmutableArray.Create(_descriptor); 2302=> ImmutableArray.Create(_supportedDescriptor); 2334=> ImmutableArray.Create(_supportedDescriptor); 2416public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_rule); 2482public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 2532public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 2560public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor); 2592public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 2638public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 2679public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor); 2727public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor); 2875public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 2922public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor); 3006public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor); 3096public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor); 3237public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_descriptor);
Diagnostics\DiagnosticExtensions.cs (5)
404builder.Add(LanguageNames.CSharp, ImmutableArray.Create(GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp))); 405builder.Add(LanguageNames.VisualBasic, ImmutableArray.Create(GetCompilerDiagnosticAnalyzer(LanguageNames.VisualBasic))); 412return new AnalyzerImageReference(ImmutableArray.Create(analyzer), display: analyzer.GetType().FullName); 418builder.Add(LanguageNames.CSharp, ImmutableArray.Create(GetCompilerDiagnosticAnalyzerReference(LanguageNames.CSharp))); 419builder.Add(LanguageNames.VisualBasic, ImmutableArray.Create(GetCompilerDiagnosticAnalyzerReference(LanguageNames.VisualBasic)));
Diagnostics\EmptyArrayAnalyzer.cs (1)
40get { return ImmutableArray.Create(UseArrayEmptyDescriptor); }
Diagnostics\FieldCouldBeReadOnlyAnalyzer.cs (1)
31get { return ImmutableArray.Create(FieldCouldBeReadOnlyDescriptor); }
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
31get { return ImmutableArray.Create(LocalCouldBeConstDescriptor); }
Diagnostics\OperationTestAnalyzer.cs (15)
94get { return ImmutableArray.Create(ExpressionDescriptor); } 136get { return ImmutableArray.Create(BigForDescriptor); } 622get { return ImmutableArray.Create(SeventeenDescriptor); } 659get { return ImmutableArray.Create(NullArgumentsDescriptor); } 744get { return ImmutableArray.Create(DoNotUseMemberAssignmentDescriptor); } 786get { return ImmutableArray.Create(DoNotUseLargeListOfArrayInitializersDescriptor); } 1174public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(EqualsValueDescriptor); 1218get { return ImmutableArray.Create(NoneOperationDescriptor); } 1562=> ImmutableArray.Create(BinaryUserDefinedOperatorDescriptor); 1886get { return ImmutableArray.Create(InvalidConversionExpressionDescriptor); } 1918get { return ImmutableArray.Create(ForLoopConditionCrashDescriptor); } 2043get { return ImmutableArray.Create(LiteralDescriptor); } 2072=> ImmutableArray.Create(OperationActionDescriptor); 2100=> ImmutableArray.Create(OperationActionDescriptor); 2132=> ImmutableArray.Create(GetOperationDescriptor);
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (7)
34return ImmutableArray.Create(s_rule); 84return ImmutableArray.Create(s_rule); 109return ImmutableArray.Create(s_rule); 131return ImmutableArray.Create(s_rule); 196return ImmutableArray.Create(s_rule); 235return ImmutableArray.Create(s_rule); 271return ImmutableArray.Create(s_rule);
Diagnostics\TestDiagnosticAnalyzer.cs (1)
76return ImmutableArray.Create(DefaultDiagnostic);
InstrumentationChecker.cs (1)
322var peImage = compilation.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
Mocks\TestMetadataReferenceResolver.cs (1)
53return map.TryGetValue(reference, out var result) ? ImmutableArray.Create(result) : ImmutableArray<PortableExecutableReference>.Empty;
SourceGeneration\TestGenerators.cs (2)
96return ImmutableArray.Create((hint, string.IsNullOrWhiteSpace(source) 107return ImmutableArray.Create((hint, string.IsNullOrWhiteSpace(source)
Microsoft.CodeAnalysis.UnitTests (72)
Analyzers\AnalyzerConfigTests.cs (4)
110var set = AnalyzerConfigSet.Create(ImmutableArray.Create(config)); 132var set = AnalyzerConfigSet.Create(ImmutableArray.Create(config)); 2372var set = AnalyzerConfigSet.Create(ImmutableArray.Create(config)); 2387var set = AnalyzerConfigSet.Create(ImmutableArray.Create(config));
CachingLookupTests.cs (2)
313return ImmutableArray.Create<FullyPopulateRaceHelper>(new FullyPopulateRaceHelper()); 356return ImmutableArray.Create<FullyPopulateRaceHelper>(new FullyPopulateRaceHelper());
Collections\ImmutableArrayExtensionsTests.cs (15)
25a = ImmutableArray.Create<int>(2); 117var singleton1 = ImmutableArray.Create<int>(1); 118var singleton2 = ImmutableArray.Create<int>(2); 145Assert.Equal(1, ImmutableArray.Create<int>(1).Single()); 161Assert.Equal(1, ImmutableArray.Create<int>(1).Single((x, a) => x == a, 1)); 378AssertEx.Equal(new[] { 10 }, ImmutableArray.Create(1).SelectAsArray(i => 10 * i)); 402var single1 = ImmutableArray.Create(1); 403var single2 = ImmutableArray.Create(10); 404var single3 = ImmutableArray.Create(11); 434var single1 = ImmutableArray.Create(1); 435var single2 = ImmutableArray.Create(10); 436var single3 = ImmutableArray.Create(13); 479Assert.True(a.WhereAsArray(i => i == 0).SequenceEqual(ImmutableArray.Create<int>(0))); 481Assert.True(a.WhereAsArray(i => i == 5).SequenceEqual(ImmutableArray.Create<int>(5))); 496Assert.Same(x, ImmutableArray.Create<object>(x).WhereAsArray((o, arg) => o == arg, x)[0]);
Diagnostics\AnalysisContextInfoTests.cs (1)
68public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_rule);
Diagnostics\CompilationWithAnalyzersTests.cs (1)
60var analyzers = ImmutableArray.Create(analyzer);
Diagnostics\DiagnosticLocalizationTests.cs (1)
378return ImmutableArray.Create(_descriptor);
Diagnostics\OperationTests.cs (5)
37arguments = ImmutableArray.Create((IOperation)null); 45arguments = ImmutableArray.Create((IOperation)null); 55arguments = ImmutableArray.Create((IOperation)null); 56argumentNames = ImmutableArray.Create(name); 57argumentRefKinds = ImmutableArray.Create(refKind);
Emit\CustomDebugInfoTests.cs (1)
654(LocalName: "a", SlotIndex: 1, ScopeStart: 0, ScopeEnd: 0, Names: ImmutableArray.Create("e")),
Emit\EmitOptionsTests.cs (3)
67TestProperty((old, value) => old.WithInstrumentationKinds(value), opt => opt.InstrumentationKinds, ImmutableArray.Create(InstrumentationKind.TestCoverage)); 126instrumentationKinds: ImmutableArray.Create(InstrumentationKind.TestCoverage)); 140instrumentationKinds: ImmutableArray.Create(InstrumentationKind.TestCoverage),
Emit\SemanticEditTests.cs (3)
38var instrumentation = new MethodInstrumentation() { Kinds = ImmutableArray.Create(InstrumentationKind.TestCoverage) }; 47instrumentation: new MethodInstrumentation() { Kinds = ImmutableArray.Create(InstrumentationKindExtensions.LocalStateTracing) })); 50instrumentation: new MethodInstrumentation() { Kinds = ImmutableArray.Create((InstrumentationKind)123) }));
InternalUtilities\OneOrManyTests.cs (16)
47Verify(OneOrMany.Create(ImmutableArray.Create(2)), 2); 50Verify(new OneOrMany<int>(ImmutableArray.Create(2)), 2); 71Verify(OneOrMany.Create(ImmutableArray.Create(1)).Add(4), 1, 4); 72Verify(OneOrMany.Create(ImmutableArray.Create(1)), 1); 85Assert.True(OneOrMany.Create(ImmutableArray.Create(1)).Contains(1)); 86Assert.False(OneOrMany.Create(ImmutableArray.Create(1)).Contains(0)); 110Verify(OneOrMany.Create(ImmutableArray.Create(1)).Select(i => i + 1), 2); 119Verify(OneOrMany.Create(ImmutableArray.Create(1)).Select((i, a) => i + a, 1), 2); 129Assert.Equal(1, OneOrMany.Create(ImmutableArray.Create(1)).FirstOrDefault(i => i < 2)); 130Assert.Equal(0, OneOrMany.Create(ImmutableArray.Create(1)).FirstOrDefault(i => i > 2)); 141Assert.Equal(1, OneOrMany.Create(ImmutableArray.Create(1)).FirstOrDefault((i, a) => i < a, 2)); 142Assert.Equal(0, OneOrMany.Create(ImmutableArray.Create(1)).FirstOrDefault((i, a) => i > a, 2)); 234Assert.True(OneOrMany.Create(1).SequenceEqual(OneOrMany.Create(ImmutableArray.Create(1)))); 255Assert.False(ImmutableArray.Create(1).SequenceEqual(OneOrMany<int>.Empty)); 257Assert.True(ImmutableArray.Create(1).SequenceEqual(OneOrMany.Create(1))); 258Assert.False(ImmutableArray.Create(1).SequenceEqual(OneOrMany.Create(2)));
MetadataReferences\AssemblyMetadataTests.cs (1)
39Assert.Throws<ArgumentNullException>(() => AssemblyMetadata.Create(ImmutableArray.Create((ModuleMetadata)null)));
MetadataReferences\MetadataReferencePropertiesTests.cs (7)
43Assert.Throws<ArgumentException>(() => new MetadataReferenceProperties(MetadataImageKind.Module, ImmutableArray.Create("blah"))); 45Assert.Throws<ArgumentException>(() => new MetadataReferenceProperties(MetadataImageKind.Module, ImmutableArray.Create(""))); 46Assert.Throws<ArgumentException>(() => new MetadataReferenceProperties(MetadataImageKind.Module, ImmutableArray.Create("x\0x"))); 48Assert.Throws<ArgumentException>(() => MetadataReferenceProperties.Module.WithAliases(ImmutableArray.Create("blah"))); 56var a = new MetadataReferenceProperties(MetadataImageKind.Assembly, ImmutableArray.Create("a"), embedInteropTypes: true); 63Assert.Equal(a.WithEmbedInteropTypes(false), new MetadataReferenceProperties(MetadataImageKind.Assembly, ImmutableArray.Create("a"), embedInteropTypes: false)); 64Assert.Equal(a.WithRecursiveAliases(true), new MetadataReferenceProperties(MetadataImageKind.Assembly, ImmutableArray.Create("a"), embedInteropTypes: true, hasRecursiveAliases: true));
MetadataReferences\MetadataReferenceTests.cs (4)
292aliases: ImmutableArray.Create("a"), 330var r6 = r.WithProperties(new MetadataReferenceProperties(MetadataImageKind.Assembly, ImmutableArray.Create("x"), embedInteropTypes: true)); 358var r3 = r.WithProperties(new MetadataReferenceProperties(MetadataImageKind.Assembly, ImmutableArray.Create("x"), embedInteropTypes: true)); 389var r3 = r.WithProperties(new MetadataReferenceProperties(MetadataImageKind.Assembly, ImmutableArray.Create("x"), embedInteropTypes: true));
SourceFileResolverTest.cs (6)
34ImmutableArray.Create(""), 36ImmutableArray.Create(KeyValuePairUtil.Create<string, string>("key", null))); 46ImmutableArray.Create(""), 48ImmutableArray.Create(KeyValuePairUtil.Create<string, string>("key", ""))); 57ImmutableArray.Create(""), 59ImmutableArray.Create(KeyValuePairUtil.Create<string, string>("key", "value")));
StrongNameProviderTests.cs (2)
36searchPaths: ImmutableArray.Create(subdir)); 37var subdirSearchPath = ImmutableArray.Create(subdir);
Microsoft.CodeAnalysis.VisualBasic (272)
Binding\Binder_Conversions.vb (1)
1154arguments:=ImmutableArray.Create(Of BoundExpression)(argument),
Binding\Binder_Delegates.vb (1)
1271statementList = ImmutableArray.Create(returnstmt)
Binding\Binder_Expressions.vb (7)
297Return New BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), resultType, hasErrors:=True) 305Return New BoundBadExpression(node, resultKind, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), resultType, hasErrors:=True) 326Return New BoundBadExpression(wrappedExpression.Syntax, resultKind, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(wrappedExpression), wrappedExpression.Type, hasErrors:=True) 1665initializers = ImmutableArray.Create(Of BoundExpression)(arrayInitialization) 3134If(receiver IsNot Nothing, ImmutableArray.Create(receiver), ImmutableArray(Of BoundExpression).Empty), 3768Dim boundArguments = ImmutableArray.Create(Of BoundExpression)(arg) 3792boundArguments:=ImmutableArray.Create(Of BoundExpression)(arg),
Binding\Binder_Initializers.vb (1)
532ImmutableArray.Create(boundInitValue),
Binding\Binder_Invocation.vb (2)
1627childBoundNodes = ImmutableArray.Create(Of BoundExpression)(groupOpt) 3268ImmutableArray.Create(Of BoundExpression)(argument),
Binding\Binder_Lambda.vb (1)
469ImmutableArray.Create(Of BoundStatement)(boundReturn),
Binding\Binder_ObjectInitializer.vb (1)
495ImmutableArray.Create(Of Symbol)(methodResult.Candidate.UnderlyingSymbol),
Binding\Binder_Operators.vb (2)
1259ImmutableArray.Create(Of BoundExpression)(operand), 1269ImmutableArray.Create(Of BoundExpression)(operand),
Binding\Binder_Query.vb (27)
222ImmutableArray.Create(Of Binder)(intoBinder), 239ImmutableArray.Create(Of Binder)(intoBinder), 272ImmutableArray.Create(Of Binder)(intoBinder), 358ImmutableArray.Create(Of BoundExpression)(letSelectorLambda), 553ImmutableArray.Create(Of BoundExpression)(selectSelectorLambda), 624ImmutableArray.Create(Of BoundExpression)(selectorLambda), 695ImmutableArray.Create(Of BoundExpression)(selectorLambda), 704ImmutableArray.Create(Of Binder)(selectorBinder), 781ImmutableArray.Create(Me), 841ImmutableArray.Create(Of BoundExpression)(selectorLambda), 850ImmutableArray.Create(Of Binder)(selectorBinder), 988ImmutableArray.Create(Me), 996ImmutableArray.Create(Me), 1120lambdaBinders = ImmutableArray.Create(Of Binder)(manySelectorBinder) 1809ImmutableArray.Create(Of BoundExpression)(source).AddRange(groupByArguments), 2386ImmutableArray.Create(Of BoundExpression)(filterLambda), 2395ImmutableArray.Create(Of Binder)(filterBinder), 2494ImmutableArray.Create(boundCount), 2537ImmutableArray.Create(Me), 2607ImmutableArray.Create(Of BoundExpression)(keyLambda), 2626ImmutableArray.Create(Of Binder)(keyBinder), 3948arguments = ImmutableArray.Create(Of BoundExpression)(aggregationLambda) 3956ImmutableArray.Create(m_GroupReference).AddRange(arguments), 3976ImmutableArray.Create(Of Binder)(aggregationBinder), 4295ImmutableArray.Create(Of BoundExpression)(selectorLambda), 4305ImmutableArray.Create(Of Binder)(selectorBinder), 4692childBoundNodes = ImmutableArray.Create(If(methodGroup, source))
Binding\Binder_Statements.vb (7)
72Return New BoundBadStatement(node, ImmutableArray.Create(Of BoundNode)(condition), hasErrors:=True) 847Return New BoundBadStatement(node, ImmutableArray.Create(Of BoundNode)(boundLabelExpression), hasErrors:=True) 2469Return New BoundBadStatement(node, ImmutableArray.Create(Of BoundNode)(target), True) 3064nextVariables = ImmutableArray.Create(boundVariable) 3611ImmutableArray.Create(controlVariable), 3802ImmutableArray.Create(collection), 3855ImmutableArray.Create(collection),
Binding\Binder_Symbols.vb (1)
291Return Binder.GetErrorSymbol(GetBaseNamesForDiagnostic(typeSyntax), diagInfo, ImmutableArray.Create(Of Symbol)(sym), LookupResultKind.NotATypeOrNamespace)
Binding\Binder_XmlLiterals.vb (8)
27ImmutableArray.Create(Of BoundExpression)(str), 188ImmutableArray.Create(Of BoundExpression)(argument), 303sideEffectBuilder.Add(BindInvocationExpressionIfGroupNotNothing(syntax, addGroup, ImmutableArray.Create(Of BoundExpression)(expr), diagnostics)) 319sideEffectBuilder.Add(BindInvocationExpressionIfGroupNotNothing(syntax, addGroup, ImmutableArray.Create(Of BoundExpression)(attribute), diagnostics)) 327sideEffectBuilder.Add(BindInvocationExpressionIfGroupNotNothing(syntax, addGroup, ImmutableArray.Create(Of BoundExpression)(xmlnsAttributesPlaceholder), diagnostics)) 713arguments = ImmutableArray.Create(Of BoundExpression)(name) 894Dim objectCreation = BindInvocationExpressionIfGroupNotNothing(syntax, group, ImmutableArray.Create(Of BoundExpression)([namespace]), diagnostics) 919ImmutableArray.Create(Of BoundExpression)(value),
Binding\DocumentationCommentBinder.vb (1)
161Return ImmutableArray.Create(Of Symbol)(p)
Binding\DocumentationCommentCrefBinder.vb (1)
231ImmutableArray.Create(Of Symbol)(result))
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
49Return ImmutableArray.Create(Of Symbol)(result)
Binding\DocumentationCommentTypeParamRefBinder.vb (1)
48Return ImmutableArray.Create(Of Symbol)(symbol)
Binding\MemberSemanticModel.vb (1)
1959_guardedBoundNodeMap.Add(bindingRoot, ImmutableArray.Create(Of BoundNode)(boundRoot))
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (2)
74boundMeReference, ImmutableArray.Create(Of BoundExpression)(boundTryCast), 276ImmutableArray.Create(Of BoundExpression)(boundLocalOtherFieldBoxed),
Binding\SyntheticBoundTrees\SynthesizedConstructorSymbol.vb (1)
19Return New BoundBlock(Me.Syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundStatement)(returnStmt))
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (2)
85locals = ImmutableArray.Create(Of LocalSymbol)(local) 284ImmutableArray.Create(Of BoundExpression)(parameterAccess),
BoundTree\BoundLocalDeclaration.vb (1)
26Return ImmutableArray.Create(Of BoundLocalDeclarationBase)(Me)
BoundTree\Expression.vb (17)
35Return ImmutableArray.Create(Of BoundNode)(Me.ReceiverOpt) 43Return ImmutableArray.Create(Of BoundNode)(Me.MethodGroup) 52Return ImmutableArray.Create(Of BoundNode)(Me.ReceiverOpt) 65Return ImmutableArray.Create(Of BoundNode)(Me.Operand) 71Return ImmutableArray.Create(Of BoundNode)(Me.Operand) 95Return ImmutableArray.Create(Of BoundNode)(Me.MemberAccess) 111Return ImmutableArray.Create(Of BoundNode)(Me.Value) 127Return ImmutableArray.Create(Of BoundNode)(Me.LastOperator) 139Return ImmutableArray.Create(Of BoundNode)(Me.Expression) 147Return ImmutableArray.Create(Of BoundNode)(Me.ConversionCall) 155Return ImmutableArray.Create(Of BoundNode)(Me.Source) 163Return ImmutableArray.Create(Of BoundNode)(Me.UnderlyingExpression) 171Return ImmutableArray.Create(Of BoundNode)(Me.UnderlyingExpression) 179Return ImmutableArray.Create(Of BoundNode)(Me.Expression) 187Return ImmutableArray.Create(Of BoundNode)(Me.Value) 203Return ImmutableArray.Create(Of BoundNode)(Me.Group) 219Return ImmutableArray.Create(Of BoundNode)(Me.Argument)
BoundTree\Statement.vb (4)
78Return ImmutableArray.Create(Of BoundNode)(Me.EventInvocation) 86Return ImmutableArray.Create(Of BoundNode)(Me.LabelExpressionOpt) 94Return ImmutableArray.Create(Of BoundNode)(Me.LabelExpressionOpt) 102Return ImmutableArray.Create(Of BoundNode)(Me.Body)
Compilation\SemanticModel.vb (1)
3370Return ImmutableArray.Create(symbol)
Compilation\SpeculativeSyntaxTreeSemanticModel.vb (1)
95Return SymbolInfoFactory.Create(ImmutableArray.Create(Of ISymbol)(aliasSymbol), If(aliasSymbol IsNot Nothing, LookupResultKind.Good, LookupResultKind.Empty))
Declarations\DeclarationTreeBuilder.vb (2)
157children:=ImmutableArray.Create(Of SingleNamespaceOrTypeDeclaration)(decl)) 328children = ImmutableArray.Create(Of SingleNamespaceOrTypeDeclaration)(ns)
Declarations\MergedNamespaceDeclaration.vb (1)
63Return ImmutableArray.Create(loc)
Declarations\MergedTypeDeclaration.vb (1)
122Return ImmutableArray.Create(Declarations(0).NameLocation)
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
195Return New AnonymousTypeKey(ImmutableArray.Create(properties))
Emit\EditAndContinue\VisualBasicDefinitionMap.vb (1)
214Return ImmutableArray.Create(result)
Emit\SynthesizedPrivateImplementationDetailsSharedConstructor.vb (1)
86factory.Array(payloadArrayType.ElementType, ImmutableArray.Create(factory.MaximumMethodDefIndex()), ImmutableArray(Of BoundExpression).Empty)))
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (1)
893Dim allExpressions = ImmutableArray.Create(Of BoundExpression)(expression).Concat(indices)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (4)
89ImmutableArray.Create(Of BoundExpression)( 96ImmutableArray.Create(Of BoundExpression)( 150arguments:=ImmutableArray.Create(Of BoundExpression)(expression), 228ImmutableArray.Create(Of BoundExpression)(parameter),
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
472indices:=ImmutableArray.Create(Of BoundExpression)(statementFactory.Literal(spansIndex)))
Lowering\LambdaRewriter\LambdaRewriter.vb (2)
536ImmutableArray.Create(Of BoundExpression)(frameAccess)) 1428ImmutableArray.Create(Of BoundExpression)(_meProxyDeferredInit))
Lowering\LambdaRewriter\SynthesizedLambdaMethod.vb (1)
63Me._locations = ImmutableArray.Create(lambdaNode.Syntax.GetLocation())
Lowering\LocalRewriter\LocalRewriter.vb (1)
514ImmutableArray.Create(result),
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (1)
239ImmutableArray.Create(handler),
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (3)
105ImmutableArray.Create(Of BoundExpression)(result), 321ImmutableArray.Create(Of BoundExpression)(result), 452ImmutableArray.Create(result), Nothing, getObjectValueMethod.ReturnType)
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (5)
589ImmutableArray.Create(left), Nothing, memberSymbol.ReturnType) 594ImmutableArray.Create(right), Nothing, memberSymbol.ReturnType) 1014ImmutableArray.Create(Of BoundExpression)(leftInit), 1040ImmutableArray.Create(If(operandHasValue, NullableValueOrDefault(operand), operand)), 1139ImmutableArray.Create(tempInit),
Lowering\LocalRewriter\LocalRewriter_Call.vb (4)
105ImmutableArray.Create(Of BoundExpression)(node), 136arguments = ImmutableArray.Create(Of BoundExpression)(receiver) 246Return New BoundSequence(rewrittenArgument.Syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(storeVal), boundTemp, rewrittenArgument.Type) 382Return New BoundSequence(argument.Syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(storeVal), boundTemp, argument.Type)
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.vb (1)
170result = New BoundSequence(node.Syntax, ImmutableArray.Create(temp), ImmutableArray.Create(assignment), result, result.Type)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (10)
676ImmutableArray.Create(inputToOperatorMethod), 812ImmutableArray.Create(operand), Nothing, memberSymbol.ReturnType) 890ImmutableArray.Create(operand), Nothing, memberSymbol.ReturnType) 984ImmutableArray.Create(operand), 990ImmutableArray.Create(operand), Nothing, memberSymbol.ReturnType) 1035ImmutableArray.Create(operand), Nothing, memberSymbol.ReturnType) 1123ImmutableArray.Create(operand), 1129ImmutableArray.Create(operand), Nothing, memberSymbol.ReturnType) 1172ImmutableArray.Create(operand), Nothing, memberSymbol.ReturnType) 1225ImmutableArray.Create(operand), Nothing, mathRound.ReturnType)
Lowering\LocalRewriter\LocalRewriter_DelegateCreation.vb (1)
64ImmutableArray.Create(Of BoundExpression)(capture),
Lowering\LocalRewriter\LocalRewriter_FieldAccess.vb (1)
76ImmutableArray.Create(rewrittenReceiver),
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (5)
282ImmutableArray.Create(Of BoundExpression)(boundIndex.MakeRValue()), 297ImmutableArray.Create(Of BoundExpression)(boundIndex.MakeRValue()), 302ImmutableArray.Create(Of BoundExpression)(boundIndex.MakeRValue()), elementType, hasErrors:=True) 664ImmutableArray.Create(Of BoundStatement)(disposalStatement)), 720ImmutableArray.Create(Of BoundExpression)(rewrittenBoundLocal)),
Lowering\LocalRewriter\LocalRewriter_LateAddressOf.vb (1)
128statementList = ImmutableArray.Create(returnstmt)
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (18)
80Return New BoundArrayCreation(node, ImmutableArray.Create(bounds), initializer, booleanArrayType) 113Dim arrayCreation = New BoundArrayCreation(node, ImmutableArray.Create(bounds), Nothing, objectArrayType) 140Dim indices = ImmutableArray.Create(indexExpr) 177rewrittenArguments = ImmutableArray.Create(rewrittenValue) 202Dim arrayCreation = New BoundArrayCreation(node, ImmutableArray.Create(bounds), Nothing, objectArrayType) 253ImmutableArray.Create(indexExpr), 273Return New BoundArrayCreation(node, ImmutableArray.Create(bounds), Nothing, objectArrayType) 294Return New BoundArrayCreation(node, ImmutableArray.Create(bounds), initializer, objectArrayType) 327Return New BoundArrayCreation(node, ImmutableArray.Create(bounds), initializer, stringArrayType) 344Dim indices = ImmutableArray.Create(index) 349ImmutableArray.Create(index), 455ImmutableArray.Create(assignment), 531Return New BoundSequence(syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(memberAccess), Nothing, Me.GetSpecialType(SpecialType.System_Void)) 536Return New BoundSequence(syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(memberAccess), Nothing, Me.GetSpecialType(SpecialType.System_Void)) 610Return New BoundSequence(syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(invocation), Nothing, Me.GetSpecialType(SpecialType.System_Void)) 615Return New BoundSequence(syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(invocation), Nothing, Me.GetSpecialType(SpecialType.System_Void)) 842ImmutableArray.Create(Of BoundExpression)(store).Concat(copyBackBuilder.ToImmutableAndFree), 959Return New BoundArrayCreation(node, ImmutableArray.Create(bounds), initializer, typeArrayType)
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (1)
311statementsInTry = ImmutableArray.Create(Of BoundStatement)(conditionalValueInit)
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (7)
21ImmutableArray.Create(expr), 26Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), nullableType, hasErrors:=True) 206Return If(isOptional, Nothing, New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), expr.Type.GetNullableUnderlyingType(), hasErrors:=True)) 219ImmutableArray.Create(defaultValue), 255Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), expr.Type.GetNullableUnderlyingType(), hasErrors:=True) 283Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), 529ImmutableArray.Create(sideeffects),
Lowering\LocalRewriter\LocalRewriter_Query.vb (1)
202ImmutableArray.Create(rewrittenBody)).MakeCompilerGenerated()
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (2)
138arguments:=ImmutableArray.Create(Of BoundExpression)(rewrittenReceiver), 165Return New BoundBadExpression(syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(rewrittenReceiver), ErrorTypeSymbol.UnknownResultType, hasErrors:=True)
Lowering\LocalRewriter\LocalRewriter_RedimClause.vb (1)
91ImmutableArray.Create(Of BoundExpression)(assignmentOperator),
Lowering\LocalRewriter\LocalRewriter_StringConcat.vb (1)
288Return factory.Call(Nothing, memberSymbol, ImmutableArray.Create(Of BoundExpression)(argArray))
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (6)
99ImmutableArray.Create(Of BoundExpression)(boundLockObjectLocal), 124tryStatements = ImmutableArray.Create(Of BoundStatement)(DirectCast(Visit(node.Body), BoundBlock)) 138ImmutableArray.Create(Of BoundStatement)(statementInFinally)) 205parameters = ImmutableArray.Create(Of BoundExpression)(boundLockObject) 244ImmutableArray.Create(Of BoundExpression)(boundLockObject), 249boundMonitorExitCall = New BoundBadExpression(syntaxNode, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(boundLockObject), ErrorTypeSymbol.UnknownResultType, hasErrors:=True)
Lowering\LocalRewriter\LocalRewriter_Throw.vb (1)
30ImmutableArray.Create(Of BoundExpression)(expressionOpt),
Lowering\LocalRewriter\LocalRewriter_UnaryOperators.vb (4)
132ImmutableArray.Create(node.Operand), Nothing, memberSymbol.ReturnType) 156ImmutableArray.Create(node.Operand), Nothing, memberSymbol.ReturnType) 204ImmutableArray.Create(tempInit), 272ImmutableArray.Create(Of BoundExpression)(callInput),
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (2)
284ImmutableArray.Create(Of BoundExpression)(nodeFactory.Literal(E_INTERNALERROR)), 412ImmutableArray.Create(Of BoundExpression)(nodeFactory.Literal(E_RESUMEWITHOUTERROR)),
Lowering\LocalRewriter\LocalRewriter_Using.vb (2)
169Return New BoundStatementList(node.UsingInfo.UsingStatementSyntax, ImmutableArray.Create(Of BoundStatement)(currentBody)) 246finallyStatements = ImmutableArray.Create(disposeCall)
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (2)
320arguments:=ImmutableArray.Create([namespace]), 352result = New BoundArrayCreation(syntax, ImmutableArray.Create(Of BoundExpression)(size), initializer, arrayType)
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (1)
174Me._locations = ImmutableArray.Create(Of Location)(syntax.GetLocation())
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.vb (1)
40Me._locations = ImmutableArray.Create(syntax.GetLocation())
Lowering\SyntheticBoundNodeFactory.vb (1)
1039Return New BoundArrayCreation(_syntax, ImmutableArray.Create(Of BoundExpression)(Literal(elements.Length)), boundArrayInit, arrayType)
Lowering\UseTwiceRewriter.vb (5)
90receiver = New Result(New BoundSequence(capture.Syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(capture), boundTemp, boundTemp.Type), 97receiver = New Result(New BoundSequence(capture.Syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(capture), boundTemp, boundTemp.Type), 323receiver = New Result(New BoundSequence(capture.Syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(capture), boundTemp, boundTemp.Type), 347ImmutableArray.Create(Of BoundExpression)(clone), 358ImmutableArray.Create(Of BoundExpression)(receiver.First.MakeRValue()),
Semantics\Operators.vb (1)
3251ImmutableArray.Create(argument1),
Symbols\AliasSymbol.vb (1)
77Me._aliasLocations = ImmutableArray.Create(aliasLocation)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicAccessors.vb (1)
73_parameters = ImmutableArray.Create(Of ParameterSymbol)(
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicSymbol.vb (1)
79Return ImmutableArray.Create(Me._container.TypeDescriptor.Fields(Me.PropertyIndex).Location)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_TypePublicSymbol.vb (4)
74Dim equatableInterface As NamedTypeSymbol = Me.Manager.System_IEquatable_T.Construct(ImmutableArray.Create(Of TypeSymbol)(Me)) 75Me._interfaces = ImmutableArray.Create(Of NamedTypeSymbol)(equatableInterface) 112method.SetParameters(ImmutableArray.Create(Of ParameterSymbol)( 124method.SetParameters(ImmutableArray.Create(Of ParameterSymbol)(
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (1)
172Return ImmutableArray.Create(Of Location)(Me.TypeDescriptor.Location)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (2)
183ImmutableArray.Create(value), 212Return ImmutableArray.Create(TypeDescr.Location)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_EqualsMethodSymbol.vb (1)
22_parameters = ImmutableArray.Create(Of ParameterSymbol)(New SynthesizedParameterSimpleSymbol(Me, container.Manager.System_Object, 0, "obj"))
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_IEquatable_EqualsMethodSymbol.vb (2)
22_parameters = ImmutableArray.Create(Of ParameterSymbol)(New SynthesizedParameterSimpleSymbol(Me, container, 0, "val")) 23_interfaceMethod = ImmutableArray.Create(interfaceMethod)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertyAccessors.vb (1)
92_parameters = ImmutableArray.Create(Of ParameterSymbol)(
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_TemplateSymbol.vb (2)
77Dim equatableInterface As NamedTypeSymbol = Me.Manager.System_IEquatable_T.Construct(ImmutableArray.Create(Of TypeSymbol)(Me)) 78_interfaces = ImmutableArray.Create(Of NamedTypeSymbol)(equatableInterface)
Symbols\ArrayTypeSymbol.vb (2)
86Return ImmutableArray.Create(iReadOnlyListOfT.Construct(elementType)) 89Return ImmutableArray.Create(iListOfT.Construct(elementType))
Symbols\ExtendedErrorTypeSymbol.vb (1)
84_candidateSymbols = ImmutableArray.Create(Of Symbol)(nonErrorGuessType)
Symbols\FieldOrPropertyInitializer.vb (2)
59Me.FieldsOrProperties = ImmutableArray.Create(Of Symbol)(field) 87Me.FieldsOrProperties = ImmutableArray.Create(Of Symbol)([property])
Symbols\Metadata\PE\PENamespaceSymbol.vb (1)
206members.Add(ns.Name, ImmutableArray.Create(Of Symbol)(ns))
Symbols\MissingAssemblySymbol.vb (1)
72_lazyModules = ImmutableArray.Create(Of ModuleSymbol)(m_ModuleSymbol)
Symbols\NamespaceSymbol.vb (1)
97Return ImmutableArray.Create(Of NamespaceSymbol)(Me)
Symbols\Source\CrefTypeParameterSymbol.vb (2)
106Return ImmutableArray.Create(Of SyntaxReference)(Me._syntaxReference) 112Return ImmutableArray.Create(Of Location)(Me._syntaxReference.GetLocation())
Symbols\Source\CustomEventAccessorSymbol.vb (1)
27MyBase.New(container, flags, syntaxRef, locations:=ImmutableArray.Create(location))
Symbols\Source\LambdaParameterSymbol.vb (1)
33_location = ImmutableArray.Create(Of Location)(location)
Symbols\Source\LambdaSymbol.vb (2)
260Return ImmutableArray.Create(_syntaxNode.GetLocation()) 266Return ImmutableArray.Create(_syntaxNode.GetReference())
Symbols\Source\LocalSymbol.vb (2)
194Return ImmutableArray.Create(Me.IdentifierLocation) 588Return ImmutableArray.Create(_identifierToken.Parent.GetReference())
Symbols\Source\RangeVariableSymbol.vb (2)
185Return ImmutableArray.Create(Of Location)(_identifierToken.GetLocation()) 267Return ImmutableArray.Create(Of Location)(_syntax.GetLocation())
Symbols\Source\SourceAssemblySymbol.vb (4)
1554ImmutableArray.Create(typedConstantNoStringInterning))) 1610ImmutableArray.Create(typedConstantDebugMode))) 1624AddSynthesizedAttribute(attributes, _compilation.TrySynthesizeAttribute(WellKnownMember.System_Reflection_AssemblyKeyNameAttribute__ctor, ImmutableArray.Create(typedConstant))) 1633AddSynthesizedAttribute(attributes, _compilation.TrySynthesizeAttribute(WellKnownMember.System_Reflection_AssemblyKeyFileAttribute__ctor, ImmutableArray.Create(typedConstant)))
Symbols\Source\SourceEventSymbol.vb (1)
446Return ImmutableArray.Create(_location)
Symbols\Source\SourceFieldSymbol.vb (1)
620Return ImmutableArray.Create(Of Location)(GetSymbolLocation(_syntaxRef))
Symbols\Source\SourceLabelSymbol.vb (2)
56Return ImmutableArray.Create(Of Location)(_labelName.GetLocation()) 64Return ImmutableArray.Create(Of SyntaxReference)(DirectCast(parentNode.GetReference(), SyntaxReference))
Symbols\Source\SourceMemberMethodSymbol.vb (1)
814ImmutableArray.Create(Of MethodSymbol)(handlingMethod),
Symbols\Source\SourceMethodSymbol.vb (2)
842ImmutableArray.Create(location)), 1199Return New BoundBlock(methodBlock, methodBlock.Statements, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(boundStatement))
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
199interfaces = ImmutableArray.Create(comClassInterface)
Symbols\Source\SourceParameterSymbol.vb (1)
72Return ImmutableArray.Create(Of Location)(_location)
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
61Return ImmutableArray.Create(valueParameter)
Symbols\Source\SourcePropertySymbol.vb (1)
453Return ImmutableArray.Create(_location)
Symbols\Source\SourceTypeParameterSymbol.vb (1)
340Return ImmutableArray.Create(GetSymbolLocation(_syntaxRef))
Symbols\Source\SynthesizedEntryPointSymbol.vb (2)
321_parameters = ImmutableArray.Create(Of ParameterSymbol)(New SynthesizedParameterSymbol(Me, submissionArrayType, ordinal:=0, isByRef:=False, name:="submissionArray")) 369ImmutableArray.Create(Of BoundExpression)(submissionArrayParameter),
Symbols\Source\SynthesizedEventAccessorSymbol.vb (6)
62Dim parameterList = ImmutableArray.Create(Of ParameterSymbol)(parameter) 201arguments:=ImmutableArray.Create(Of BoundExpression)(fieldAccess), 220arguments:=ImmutableArray.Create(Of BoundExpression)(parameterAccess), 233statements:=ImmutableArray.Create(Of BoundStatement)(returnStatement)).MakeCompilerGenerated() 299ImmutableArray.Create(Of BoundStatement)([return]) 372compareExchangeMethod = compareExchangeMethod.Construct(ImmutableArray.Create(Of TypeSymbol)(delegateType))
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (1)
140ImmutableArray.Create(FunctionLocal),
Symbols\Source\SynthesizedMainTypeEntryPoint.vb (2)
75New BoundMethodGroup(syntaxNode, Nothing, ImmutableArray.Create(runMethod), LookupResultKind.Good, Nothing, QualificationKind.QualifiedViaTypeName), 76ImmutableArray.Create(instance), Nothing, diagnostics,
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (1)
128Return New BoundBlock(accessorBlock, Nothing, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundStatement)(boundStatement))
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
221Return ImmutableArray.Create(_syntaxRef.GetLocation())
Symbols\SynthesizedSymbols\SynthesizedLocal.vb (2)
36Return If(_syntaxOpt Is Nothing, ImmutableArray(Of Location).Empty, ImmutableArray.Create(_syntaxOpt.GetLocation())) 42Return If(_syntaxOpt Is Nothing, ImmutableArray(Of SyntaxReference).Empty, ImmutableArray.Create(_syntaxOpt.GetReference()))
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (1)
193Return ImmutableArray.Create(Of SyntaxReference)(node.GetReference)
Symbols\SynthesizedSymbols\SynthesizedParameterSymbol.vb (1)
429Me._locations = ImmutableArray.Create(Of location)(location)
Symbols\SynthesizedSymbols\SynthesizedSimpleMethodSymbol.vb (1)
37ImmutableArray.Create(Of MethodSymbol)(interfaceMethod))
Symbols\Tuples\TupleErrorFieldSymbol.vb (1)
47Me._locations = If((location Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(location))
Symbols\Tuples\TupleFieldSymbol.vb (1)
151Me._locations = If((location Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(location))
Symbols\Tuples\TupleTypeSymbol.vb (2)
336Me.New(If((locationOpt Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(locationOpt)), 403Return TupleTypeSymbol.Create(If((locationOpt Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(locationOpt)),
Symbols\WellKnownMembers.vb (1)
224Return TrySynthesizeAttribute(ctor, ImmutableArray.Create(arg))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (6)
src\Analyzers\VisualBasic\Analyzers\AddAccessibilityModifiers\VisualBasicAddAccessibilityModifiersDiagnosticAnalyzer.vb (1)
65Dim additionalLocations = ImmutableArray.Create(member.GetLocation())
src\Analyzers\VisualBasic\Analyzers\UseInferredMemberName\VisualBasicUseInferredMemberNameDiagnosticAnalyzer.vb (2)
62additionalUnnecessaryLocations:=ImmutableArray.Create(syntaxTree.GetLocation(fadeSpan)))) 86additionalUnnecessaryLocations:=ImmutableArray.Create(syntaxTree.GetLocation(fadeSpan))))
src\Analyzers\VisualBasic\Analyzers\UseIsNotExpression\VisualBasicUseIsNotDiagnosticAnalyzer.vb (1)
76ImmutableArray.Create(notExpression.GetLocation()),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (1)
267ImmutableArray.Create(Of ISymbol)(preprocessingSymbol),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (1)
605localVariables = ImmutableArray.Create(DirectCast(model.GetDeclaredSymbol(forEach), ILocalSymbol))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (17)
src\Analyzers\VisualBasic\CodeFixes\AddAnonymousTypeMemberName\VisualBasicAddAnonymousTypeMemberNameCodeFixProvider.vb (1)
28ImmutableArray.Create(BC36556)
src\Analyzers\VisualBasic\CodeFixes\AliasAmbiguousType\VisualBasicAliasAmbiguousTypeCodeFixProvider.vb (1)
25Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30561)
src\Analyzers\VisualBasic\CodeFixes\ConvertToAsync\VisualBasicConvertToAsyncFunctionCodeFixProvider.vb (1)
22Friend ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(Of String)(BC37001)
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\GenerateConstructorDiagnosticIds.vb (1)
22Friend Shared ReadOnly TooManyArgumentsDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30057)
src\Analyzers\VisualBasic\CodeFixes\GenerateEnumMember\GenerateEnumMemberCodeFixProvider.vb (1)
31Return ImmutableArray.Create(BC30456)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\GenerateConversionCodeFixProvider.vb (1)
31Return ImmutableArray.Create(BC30311)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
90Return ImmutableArray.Create(typeParameter)
src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceCodeFixProvider.vb (1)
25Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30149)
src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
66interfaceTypes = ImmutableArray.Create(GetInterfaceType(model, interfaceNode, cancellationToken))
src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicChangeToYieldCodeFixProvider.vb (1)
23Friend Shared ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(BC36942)
src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicConvertToIteratorCodeFixProvider.vb (1)
25Friend Shared ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(BC30451)
src\Analyzers\VisualBasic\CodeFixes\MakeMethodSynchronous\VisualBasicMakeMethodSynchronousCodeFixProvider.vb (1)
21Private Shared ReadOnly s_diagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC42356)
src\Analyzers\VisualBasic\CodeFixes\MakeTypeAbstract\VisualBasicMakeTypeAbstractCodeFixProvider.vb (1)
23ImmutableArray.Create("BC31411")
src\Analyzers\VisualBasic\CodeFixes\MakeTypePartial\VisualBasicMakeTypePartialCodeFixProvider.vb (1)
23Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC40046)
src\Analyzers\VisualBasic\CodeFixes\RemoveAsyncModifier\VisualBasicRemoveAsyncModifierCodeFixProvider.vb (1)
21Private Shared ReadOnly s_diagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC42356)
src\Analyzers\VisualBasic\CodeFixes\UnsealClass\VisualBasicUnsealClassCodeFixProvider.vb (1)
24ImmutableArray.Create(BC30299)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\InitializeParameter\InitializeParameterHelpers.vb (1)
34Return SyntaxFactory.List(ImmutableArray.Create(convertedStatement))
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (6)
CommandLineTests.vb (6)
3577AssertEx.Equal(ImmutableArray.Create(sdkPath), parser.ReferencePaths) 3605AssertEx.Equal(ImmutableArray.Create(sdkDir.Path), parser.ReferencePaths) 10986Return ImmutableArray.Create(Hidden01) 11061Return ImmutableArray.Create(Warning04) 11085Return ImmutableArray.Create(Error01) 11106Return ImmutableArray.Create(Rule)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
NavigationBar\VisualBasicEditorNavigationBarItemService_CodeGeneration.vb (1)
196handlesExpressions:=ImmutableArray.Create(Of SyntaxNode)(handlesSyntax))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (29)
Attributes\InternalsVisibleToAndStrongNameTests.vb (1)
52Return New DesktopStrongNameProvider(ImmutableArray.Create(keyFilePath), New VirtualizedStrongNameFileSystem())
CodeGen\CodeGenTuples.vb (4)
6868Dim ex = Assert.Throws(Of ArgumentException)(Function() comp.CreateTupleTypeSymbol(vt2, ImmutableArray.Create("Item1"))) 6873ex = Assert.Throws(Of ArgumentException)(Function() comp.CreateTupleTypeSymbol(vt2, elementLocations:=ImmutableArray.Create(loc1))) 7224Assert.Throws(Of ArgumentException)(Sub() comp.CreateTupleTypeSymbol(elementTypes:=ImmutableArray.Create(intType), elementNames:=Nothing)) 7227Assert.Throws(Of ArgumentException)(Sub() comp.CreateTupleTypeSymbol(elementTypes:=ImmutableArray.Create(intType, intType), elementNames:=ImmutableArray.Create("Item1")))
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.vb (8)
76Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 193Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 293Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 361Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 455Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 560Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 650Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 747Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage)))
Emit\DynamicAnalysis\DynamicInstrumentationTests.vb (6)
1915Dim diagnostics As ImmutableArray(Of Diagnostic) = CreateCompilation(source).GetEmitDiagnostics(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 2345Dim verifier = CompileAndVerify(c, emitOptions:=EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 2382Dim verifier = CompileAndVerify(c, emitOptions:=EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 2819emitOptions:=EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 2827emitOptions:=EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 2835emitOptions:=EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage)),
Emit\EditAndContinue\EditAndContinueTests.vb (4)
4402ImmutableArray.Create(edit)) 4503ImmutableArray.Create(edit)) 4604ImmutableArray.Create(edit)) 5776ImmutableArray.Create(edit))
Emit\EditAndContinue\SymbolMatcherTests.vb (5)
336Assert.Equal("VB$AnonymousType_0", anonymousTypeMap0(New AnonymousTypeKey(ImmutableArray.Create(New AnonymousTypeKeyField("A", isKey:=False, ignoreCase:=True)))).Name) 337Assert.Equal("VB$AnonymousType_1", anonymousTypeMap0(New AnonymousTypeKey(ImmutableArray.Create(New AnonymousTypeKeyField("B", isKey:=False, ignoreCase:=True)))).Name) 406Assert.Equal("VB$AnonymousType_0", anonymousTypeMap0(New AnonymousTypeKey(ImmutableArray.Create(New AnonymousTypeKeyField("A", isKey:=False, ignoreCase:=True)))).Name) 407Assert.Equal("VB$AnonymousType_1", anonymousTypeMap0(New AnonymousTypeKey(ImmutableArray.Create(New AnonymousTypeKeyField("X", isKey:=False, ignoreCase:=True)))).Name) 408Assert.Equal("VB$AnonymousType_2", anonymousTypeMap0(New AnonymousTypeKey(ImmutableArray.Create(New AnonymousTypeKeyField("Y", isKey:=False, ignoreCase:=True)))).Name)
Emit\NoPiaEmbedTypes.vb (1)
2677Dim dispIdDefinition = CreateCSharpCompilation(dispId, assemblyName:="DispId", referencedAssemblies:=TargetFrameworkUtil.GetReferences(TargetFramework.Mscorlib461Extended, Nothing)).EmitToImageReference(aliases:=ImmutableArray.Create("dispId"))
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (7)
EvaluationContext.vb (5)
571Return ImmutableArray.Create(identity) 578Return ImmutableArray.Create(identity) 589Return ImmutableArray.Create(identity) 592Return ImmutableArray.Create(linqLibrary) 622Return ImmutableArray.Create(identity)
Symbols\EEMethodSymbol.vb (1)
71_locations = ImmutableArray.Create(location)
Symbols\EENamedTypeSymbol.vb (1)
265Return ImmutableArray.Create(_syntax.GetLocation())
Microsoft.CodeAnalysis.VisualBasic.Features (171)
AddPackage\VisualBasicAddSpecificPackageCodeFixProvider.vb (1)
25Return ImmutableArray.Create(BC37267)
ChangeSignature\VisualBasicChangeSignatureService.vb (1)
47Private Shared ReadOnly _nodeKindsToIgnore As ImmutableArray(Of SyntaxKind) = ImmutableArray.Create(
CodeFixes\OverloadBase\OverloadBaseCodeFixProvider.AddKeywordAction.vb (1)
76newNode = Await cleanupService.CleanupAsync(newNode, ImmutableArray.Create(newNode.Span), options, services, cleanupService.GetDefaultProviders(), cancellationToken).ConfigureAwait(False)
Completion\CompletionProviders\CrefCompletionProvider.vb (1)
251symbols:=ImmutableArray.Create(symbol),
Completion\CompletionProviders\KeywordCompletionProvider.vb (1)
23Private Shared ReadOnly s_tags As ImmutableArray(Of String) = ImmutableArray.Create(WellKnownTags.Intrinsic)
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (1)
96symbols:=ImmutableArray.Create(parameter),
Completion\CompletionProviders\ObjectCreationCompletionProvider.vb (1)
61commitCharacterRules:=ImmutableArray.Create(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, " "c, "("c)),
Completion\CompletionProviders\SymbolCompletionProvider.vb (1)
42commitCharacterRules:=ImmutableArray.Create(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, "."c)))
Completion\KeywordRecommenders\ArrayStatements\EraseKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Erase", VBFeaturesResources.Used_to_release_array_variables_and_deallocate_the_memory_used_for_their_elements))
Completion\KeywordRecommenders\ArrayStatements\PreserveKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Preserve", VBFeaturesResources.Prevents_the_contents_of_an_array_from_being_cleared_when_the_dimensions_of_the_array_are_changed))
Completion\KeywordRecommenders\ArrayStatements\ReDimKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("ReDim", VBFeaturesResources.Reallocates_storage_space_for_an_array_variable))
Completion\KeywordRecommenders\Declarations\AliasKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Alias", VBFeaturesResources.Indicates_that_an_external_procedure_has_another_name_in_its_DLL))
Completion\KeywordRecommenders\Declarations\AsKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("As", VBFeaturesResources.Specifies_a_data_type_in_a_declaration_statement))
Completion\KeywordRecommenders\Declarations\AsyncKeywordRecommender.vb (1)
15ImmutableArray.Create(New RecommendedKeyword("Async", VBFeaturesResources.Indicates_an_asynchronous_method_that_can_use_the_Await_operator))
Completion\KeywordRecommenders\Declarations\ClassKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Class", VBFeaturesResources.Declares_the_name_of_a_class_and_introduces_the_definitions_of_the_variables_properties_and_methods_that_make_up_the_class))
Completion\KeywordRecommenders\Declarations\ConstKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Const", VBFeaturesResources.Declares_and_defines_one_or_more_constants))
Completion\KeywordRecommenders\Declarations\CustomEventKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Custom Event", VBFeaturesResources.Specifies_that_an_event_has_additional_specialized_code_for_adding_handlers_removing_handlers_and_raising_events))
Completion\KeywordRecommenders\Declarations\DeclareKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Declare", VBFeaturesResources.Declares_a_reference_to_a_procedure_implemented_in_an_external_file))
Completion\KeywordRecommenders\Declarations\DelegateKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Delegate", VBFeaturesResources.Used_to_declare_a_delegate_A_delegate_is_a_reference_type_that_refers_to_a_shared_method_of_a_type_or_to_an_instance_method_of_an_object_Any_procedure_that_is_convertible_or_that_has_matching_parameter_types_and_return_type_may_be_used_to_create_an_instance_of_this_delegate_class))
Completion\KeywordRecommenders\Declarations\DimKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Dim", VBFeaturesResources.Declares_and_allocates_storage_space_for_one_or_more_variables_Dim_var_bracket_As_bracket_New_bracket_dataType_bracket_boundList_bracket_bracket_bracket_initializer_bracket_bracket_var2_bracket))
Completion\KeywordRecommenders\Declarations\EnumKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Enum", VBFeaturesResources.Declares_an_enumeration_and_defines_the_values_of_its_members))
Completion\KeywordRecommenders\Declarations\EventKeywordRecommender.vb (1)
20ImmutableArray.Create(New RecommendedKeyword("Event", VBFeaturesResources.Declares_a_user_defined_event))
Completion\KeywordRecommenders\Declarations\FunctionKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Function", VBFeaturesResources.Declares_the_name_parameters_and_code_that_define_a_Function_procedure_that_is_a_procedure_that_returns_a_value_to_the_calling_code))
Completion\KeywordRecommenders\Declarations\ImplementsKeywordRecommender.vb (2)
28Return ImmutableArray.Create(New RecommendedKeyword("Implements", VBFeaturesResources.Specifies_one_or_more_interfaces_or_interface_members_that_must_be_implemented_in_the_class_or_structure_definition_in_which_the_Implements_statement_appears)) 47Return ImmutableArray.Create(New RecommendedKeyword("Implements", VBFeaturesResources.Indicates_that_a_class_or_structure_member_is_providing_the_implementation_for_a_member_defined_in_an_interface))
Completion\KeywordRecommenders\Declarations\ImportsKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Imports", VBFeaturesResources.Imports_all_or_specified_elements_of_a_namespace_into_a_file))
Completion\KeywordRecommenders\Declarations\InheritsKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Inherits", VBFeaturesResources.Causes_the_current_class_or_interface_to_inherit_the_attributes_variables_properties_procedures_and_events_from_another_class_or_set_of_interfaces))
Completion\KeywordRecommenders\Declarations\InKeywordRecommender.vb (2)
40Return ImmutableArray.Create(New RecommendedKeyword("In", VBFeaturesResources.Specifies_the_group_that_the_loop_variable_in_a_For_Each_statement_is_to_traverse)) 47Return ImmutableArray.Create(New RecommendedKeyword("In", VBFeaturesResources.Specifies_the_group_that_the_range_variable_is_to_traverse_in_a_query))
Completion\KeywordRecommenders\Declarations\InterfaceKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Interface", VBFeaturesResources.Declares_the_name_of_an_interface_and_the_definitions_of_the_members_of_the_interface))
Completion\KeywordRecommenders\Declarations\IteratorKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Iterator", VBFeaturesResources.Indicates_an_iterator_method_that_can_use_the_Yield_statement))
Completion\KeywordRecommenders\Declarations\LibKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Lib", VBFeaturesResources.Introduces_a_clause_that_identifies_the_external_file_DLL_or_code_resource_containing_an_external_procedure))
Completion\KeywordRecommenders\Declarations\ModuleKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Module", VBFeaturesResources.Specifies_that_an_attribute_at_the_beginning_of_a_source_file_applies_to_the_entire_module_Otherwise_the_attribute_will_apply_only_to_an_individual_programming_element_such_as_a_class_or_property))
Completion\KeywordRecommenders\Declarations\NamespaceKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Namespace", VBFeaturesResources.Declares_the_name_of_a_namespace_and_causes_the_source_code_following_the_declaration_to_be_compiled_within_that_namespace))
Completion\KeywordRecommenders\Declarations\OfKeywordRecommender.vb (9)
30Return ImmutableArray.Create(New RecommendedKeyword("Of", VBFeaturesResources.Identifies_a_type_parameter_on_a_generic_class_structure_interface_delegate_or_procedure)) 38Return ImmutableArray.Create(New RecommendedKeyword("Of", VBFeaturesResources.Identifies_a_type_parameter_on_a_generic_class_structure_interface_delegate_or_procedure)) 46Return ImmutableArray.Create(New RecommendedKeyword("Of", VBFeaturesResources.Identifies_a_type_parameter_on_a_generic_class_structure_interface_delegate_or_procedure)) 53Return ImmutableArray.Create(New RecommendedKeyword("Of", VBFeaturesResources.Identifies_a_type_parameter_on_a_generic_class_structure_interface_delegate_or_procedure)) 61Return ImmutableArray.Create(New RecommendedKeyword("Of", VBFeaturesResources.Identifies_a_type_parameter_on_a_generic_class_structure_interface_delegate_or_procedure)) 65Return ImmutableArray.Create(New RecommendedKeyword("Of", VBFeaturesResources.Identifies_a_type_parameter_on_a_generic_class_structure_interface_delegate_or_procedure)) 74Return ImmutableArray.Create(New RecommendedKeyword("Of", VBFeaturesResources.Identifies_a_type_parameter_on_a_generic_class_structure_interface_delegate_or_procedure)) 88Return ImmutableArray.Create(New RecommendedKeyword("Of", VBFeaturesResources.Identifies_a_type_parameter_on_a_generic_class_structure_interface_delegate_or_procedure)) 98Return ImmutableArray.Create(New RecommendedKeyword("Of", VBFeaturesResources.Identifies_a_type_parameter_on_a_generic_class_structure_interface_delegate_or_procedure))
Completion\KeywordRecommenders\Declarations\OperatorKeywordRecommender.vb (2)
24Return ImmutableArray.Create(New RecommendedKeyword("Operator CType", VBFeaturesResources.Returns_the_result_of_explicitly_converting_an_expression_to_a_specified_data_type_object_structure_class_or_interface_CType_Object_As_Expression_Object_As_Type_As_Type)) 26Return ImmutableArray.Create(New RecommendedKeyword("Operator", VBFeaturesResources.Declares_the_operator_symbol_operands_and_code_that_define_an_operator_procedure_on_a_class_or_structure))
Completion\KeywordRecommenders\Declarations\OverloadableOperatorRecommender.vb (1)
33Return ImmutableArray.Create(New RecommendedKeyword("CType", VBFeaturesResources.Returns_the_result_of_explicitly_converting_an_expression_to_a_specified_data_type_object_structure_class_or_interface_CType_Object_As_Expression_Object_As_Type_As_Type))
Completion\KeywordRecommenders\Declarations\PropertyKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Property", VBFeaturesResources.Declares_the_name_of_a_property_and_the_property_procedures_used_to_store_and_retrieve_the_value_of_the_property))
Completion\KeywordRecommenders\Declarations\StaticKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Static", VBFeaturesResources.Specifies_that_one_or_more_declared_local_variables_are_to_remain_in_existence_and_retain_their_latest_values_after_the_procedure_in_which_they_are_declared_terminates))
Completion\KeywordRecommenders\Declarations\StructureKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Structure", VBFeaturesResources.Declares_the_name_of_a_structure_and_introduces_the_definition_of_the_variables_properties_events_and_procedures_that_make_up_the_structure))
Completion\KeywordRecommenders\Declarations\SubKeywordRecommender.vb (2)
24Return ImmutableArray.Create(New RecommendedKeyword("Sub", VBFeaturesResources.Declares_the_name_parameters_and_code_that_define_a_Sub_procedure_that_is_a_procedure_that_does_not_return_a_value_to_the_calling_code)) 37Return ImmutableArray.Create(New RecommendedKeyword("Sub", VBFeaturesResources.Exits_a_Sub_procedure_and_transfers_execution_immediately_to_the_statement_following_the_call_to_the_Sub_procedure))
Completion\KeywordRecommenders\Declarations\ToKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("To", VBFeaturesResources.Separates_the_beginning_and_ending_values_of_a_loop_counter_or_array_bounds_or_that_of_a_value_match_range))
Completion\KeywordRecommenders\EventHandling\HandlesKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Handles", VBFeaturesResources.Declares_that_a_procedure_handles_a_specified_event))
Completion\KeywordRecommenders\EventHandling\RaiseEventKeywordRecommender.vb (2)
19Return ImmutableArray.Create(New RecommendedKeyword("RaiseEvent", VBFeaturesResources.Triggers_an_event_declared_at_module_level_within_a_class_form_or_document_RaiseEvent_eventName_bracket_argumentList_bracket)) 21Return ImmutableArray.Create(New RecommendedKeyword("RaiseEvent", VBFeaturesResources.Specifies_the_statements_to_run_when_the_event_is_raised_by_the_RaiseEvent_statement_RaiseEvent_delegateSignature_End_RaiseEvent))
Completion\KeywordRecommenders\Expressions\AddressOfKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("AddressOf", VBFeaturesResources.Creates_a_delegate_procedure_instance_that_references_the_specified_procedure_AddressOf_procedureName))
Completion\KeywordRecommenders\Expressions\FromKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("From", VBFeaturesResources.Identifies_a_list_of_values_as_a_collection_initializer))
Completion\KeywordRecommenders\Expressions\GlobalKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Global"))
Completion\KeywordRecommenders\Expressions\KeyKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Key", VBFeaturesResources.Identifies_a_key_field_in_an_anonymous_type_definition))
Completion\KeywordRecommenders\Expressions\LambdaKeywordRecommender.vb (1)
29Return ImmutableArray.Create(New RecommendedKeyword("Function", VBFeaturesResources.Defines_a_lambda_expression_that_calculates_and_returns_a_single_value_Can_be_used_wherever_a_delegate_type_is_expected_Function_parameterList_expression))
Completion\KeywordRecommenders\Expressions\MeKeywordRecommender.vb (3)
39Return ImmutableArray.Create(New RecommendedKeyword(SyntaxFacts.GetText(SyntaxKind.MeKeyword), VBFeaturesResources.Provides_a_way_to_refer_to_the_current_instance_of_a_class_or_structure_that_is_the_instance_in_which_the_code_is_running, matchPriority:=priority)) 46Return ImmutableArray.Create(New RecommendedKeyword(SyntaxFacts.GetText(SyntaxKind.MeKeyword), VBFeaturesResources.Provides_a_way_to_refer_to_the_current_instance_of_a_class_or_structure_that_is_the_instance_in_which_the_code_is_running)) 52Return ImmutableArray.Create(New RecommendedKeyword(SyntaxFacts.GetText(SyntaxKind.MeKeyword), VBFeaturesResources.Provides_a_way_to_refer_to_the_current_instance_of_a_class_or_structure_that_is_the_instance_in_which_the_code_is_running))
Completion\KeywordRecommenders\Expressions\MyBaseKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword(SyntaxFacts.GetText(SyntaxKind.MyBaseKeyword), VBFeaturesResources.Provides_a_way_to_refer_to_the_base_class_of_the_current_class_instance_You_cannot_use_MyBase_to_call_MustOverride_base_methods))
Completion\KeywordRecommenders\Expressions\MyClassKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword(SyntaxFacts.GetText(SyntaxKind.MyClassKeyword), VBFeaturesResources.Provides_a_way_to_refer_to_the_class_instance_members_as_originally_implemented_ignoring_any_derived_class_overrides))
Completion\KeywordRecommenders\Expressions\NewKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("New", VBFeaturesResources.Creates_a_new_object_instance))
Completion\KeywordRecommenders\Expressions\NothingKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Nothing", VBFeaturesResources.Represents_the_default_value_of_any_data_type))
Completion\KeywordRecommenders\Expressions\NotKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Not", VBFeaturesResources.Performs_logical_negation_on_a_Boolean_expression_or_bitwise_negation_on_a_numeric_expression_result_Not_expression))
Completion\KeywordRecommenders\Expressions\TypeOfKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("TypeOf", VBFeaturesResources.Determines_the_run_time_type_of_an_object_reference_variable_and_compares_it_to_a_data_type_Returns_True_or_False_depending_on_whether_the_two_types_are_compatible_result_TypeOf_objectExpression_Is_typeName))
Completion\KeywordRecommenders\Expressions\WithKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("With", VBFeaturesResources.Specifies_the_declaration_of_property_initializations_in_an_object_initializer_New_typeName_With_bracket_property_expression_bracket_bracket_bracket))
Completion\KeywordRecommenders\OnErrorStatements\ErrorKeywordRecommender.vb (1)
28Return ImmutableArray.Create(New RecommendedKeyword("Error", VBFeaturesResources.Simulates_the_occurrence_of_an_error))
Completion\KeywordRecommenders\OnErrorStatements\GoToKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("GoTo", VBFeaturesResources.Branches_unconditionally_to_a_specified_line_in_a_procedure))
Completion\KeywordRecommenders\OnErrorStatements\NextKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Next", VBFeaturesResources.When_a_run_time_error_occurs_execution_transfers_to_the_statement_following_the_statement_or_procedure_call_that_resulted_in_the_error))
Completion\KeywordRecommenders\OnErrorStatements\ResumeKeywordRecommender.vb (2)
26Return ImmutableArray.Create( 31Return ImmutableArray.Create(
Completion\KeywordRecommenders\OptionStatements\OptionKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Option", VBFeaturesResources.Introduces_a_statement_that_specifies_a_compiler_option_that_applies_to_the_entire_source_file))
Completion\KeywordRecommenders\PreprocessorDirectives\ConstDirectiveKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("#Const", VBFeaturesResources.Defines_a_conditional_compiler_constant_Conditional_compiler_constants_are_always_private_to_the_file_in_which_they_appear_The_expressions_used_to_initialize_them_can_contain_only_conditional_compiler_constants_and_literals))
Completion\KeywordRecommenders\PreprocessorDirectives\ElseDirectiveKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("#Else", VBFeaturesResources.Introduces_a_group_of_statements_in_an_SharpIf_statement_that_is_compiled_if_no_previous_condition_evaluates_to_True))
Completion\KeywordRecommenders\PreprocessorDirectives\ElseIfDirectiveKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("#ElseIf", VBFeaturesResources.Introduces_a_condition_in_an_SharpIf_statement_that_is_tested_if_the_previous_conditional_test_evaluates_to_False))
Completion\KeywordRecommenders\PreprocessorDirectives\EndIfDirectiveKeywordRecommender.vb (2)
20Return ImmutableArray.Create(New RecommendedKeyword("If", VBFeaturesResources.Terminates_the_definition_of_an_SharpIf_block)) 27Return ImmutableArray.Create(New RecommendedKeyword("#End If", VBFeaturesResources.Terminates_the_definition_of_an_SharpIf_block))
Completion\KeywordRecommenders\PreprocessorDirectives\EndRegionDirectiveKeywordRecommender.vb (2)
21Return ImmutableArray.Create(New RecommendedKeyword("Region", VBFeaturesResources.Terminates_a_SharpRegion_block)) 28Return ImmutableArray.Create(New RecommendedKeyword("#End Region", VBFeaturesResources.Terminates_a_SharpRegion_block))
Completion\KeywordRecommenders\PreprocessorDirectives\IfDirectiveKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("#If", VBFeaturesResources.Conditionally_compiles_selected_blocks_of_code_depending_on_the_value_of_an_expression))
Completion\KeywordRecommenders\PreprocessorDirectives\ReferenceDirectiveKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("#R", VBFeaturesResources.Add_a_metadata_reference_to_specified_assembly_and_all_its_dependencies_e_g_Sharpr_myLib_dll))
Completion\KeywordRecommenders\PreprocessorDirectives\RegionDirectiveKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("#Region", VBFeaturesResources.Collapses_and_hides_sections_of_code_in_Visual_Basic_files))
Completion\KeywordRecommenders\PreprocessorDirectives\WarningDirectiveKeywordRecommender.vb (2)
24Return ImmutableArray.Create(New RecommendedKeyword("Warning", VBFeaturesResources.Enables_reporting_of_specified_warnings_in_the_portion_of_the_source_file_below_the_current_line)) 26Return ImmutableArray.Create(New RecommendedKeyword("Warning", VBFeaturesResources.Disables_reporting_of_specified_warnings_in_the_portion_of_the_source_file_below_the_current_line))
Completion\KeywordRecommenders\Queries\AggregateKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Aggregate", VBFeaturesResources.Applies_an_aggregation_function_such_as_Sum_Average_or_Count_to_a_sequence))
Completion\KeywordRecommenders\Queries\DistinctKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Distinct", VBFeaturesResources.Restricts_the_values_of_a_query_result_to_eliminate_duplicate_values))
Completion\KeywordRecommenders\Queries\EqualsKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Equals", VBFeaturesResources.Specifies_the_relationship_between_element_keys_to_use_as_the_basis_of_a_join_operation))
Completion\KeywordRecommenders\Queries\FromKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("From", VBFeaturesResources.Specifies_a_collection_and_a_range_variable_to_use_in_a_query))
Completion\KeywordRecommenders\Queries\GroupByKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("By", VBFeaturesResources.Specifies_the_element_keys_used_for_grouping_in_Group_By_or_sort_order_in_Order_By))
Completion\KeywordRecommenders\Queries\GroupJoinKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Group Join", VBFeaturesResources.Combines_the_elements_of_two_sequences_and_groups_the_results_The_join_operation_is_based_on_matching_keys))
Completion\KeywordRecommenders\Queries\GroupKeywordRecommender.vb (3)
20Return ImmutableArray.Create(New RecommendedKeyword("Group", VBFeaturesResources.Groups_elements_that_have_a_common_key)) 29Return ImmutableArray.Create(New RecommendedKeyword("Group", VBFeaturesResources.Use_Group_to_specify_that_a_group_named_Group_should_be_created)) 49Return ImmutableArray.Create(New RecommendedKeyword("Group", VBFeaturesResources.Groups_elements_that_have_a_common_key))
Completion\KeywordRecommenders\Queries\IntoKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Into", VBFeaturesResources.Specifies_an_identifier_that_can_serve_as_a_reference_to_the_results_of_a_join_or_grouping_subexpression))
Completion\KeywordRecommenders\Queries\JoinKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Join", VBFeaturesResources.Combines_the_elements_of_two_sequences_The_join_operation_is_based_on_matching_keys))
Completion\KeywordRecommenders\Queries\LetKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Let", VBFeaturesResources.Computes_a_value_for_each_item_in_the_query_and_assigns_the_value_to_a_new_range_variable))
Completion\KeywordRecommenders\Queries\OnKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("On", VBFeaturesResources.Specifies_the_element_keys_used_to_correlate_sequences_for_a_join_operation))
Completion\KeywordRecommenders\Queries\OrderByKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Order By", VBFeaturesResources.Specifies_the_sort_order_for_columns_in_a_query_Can_be_followed_by_either_the_Ascending_or_the_Descending_keyword_If_neither_is_specified_Ascending_is_used))
Completion\KeywordRecommenders\Queries\SelectKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Select", VBFeaturesResources.Specifies_which_columns_to_include_in_the_result_of_a_query))
Completion\KeywordRecommenders\Queries\SkipKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Skip", VBFeaturesResources.Skips_elements_up_to_a_specified_position_in_the_collection))
Completion\KeywordRecommenders\Queries\TakeKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Take", VBFeaturesResources.Includes_elements_up_to_a_specified_position_in_the_collection))
Completion\KeywordRecommenders\Queries\WhereKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Where", VBFeaturesResources.Specifies_the_filtering_condition_for_a_range_variable_in_a_query))
Completion\KeywordRecommenders\Queries\WhileKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("While", VBFeaturesResources.Specifies_a_condition_for_Skip_and_Take_operations_Elements_will_be_bypassed_or_included_as_long_as_the_condition_is_true))
Completion\KeywordRecommenders\Statements\CallKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Call", VBFeaturesResources.Transfers_execution_to_a_Function_Sub_or_dynamic_link_library_DLL_procedure_bracket_Call_bracket_procedureName_bracket_argumentList_bracket))
Completion\KeywordRecommenders\Statements\CaseKeywordRecommender.vb (1)
26Return ImmutableArray.Create(New RecommendedKeyword("Case", VBFeaturesResources.Introduces_a_value_or_set_of_values_against_which_the_value_of_an_expression_in_a_Select_Case_statement_is_to_be_tested_Case_expression_expression1_To_expression2_bracket_Is_bracket_comparisonOperator_expression))
Completion\KeywordRecommenders\Statements\CatchKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Catch", VBFeaturesResources.Introduces_a_statement_block_to_be_run_if_the_specified_exception_occurs_inside_a_Try_block))
Completion\KeywordRecommenders\Statements\ContinueKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Continue", VBFeaturesResources.Transfers_execution_immediately_to_the_next_iteration_of_the_loop_Can_be_used_in_a_Do_loop_a_For_loop_or_a_While_loop))
Completion\KeywordRecommenders\Statements\DoKeywordRecommender.vb (2)
38Return ImmutableArray.Create(New RecommendedKeyword("Do", VBFeaturesResources.Exits_a_Do_loop_and_transfers_execution_immediately_to_the_statement_following_the_Loop_statement)) 40Return ImmutableArray.Create(New RecommendedKeyword("Do", VBFeaturesResources.Transfers_execution_immediately_to_the_next_iteration_of_the_Do_loop))
Completion\KeywordRecommenders\Statements\EachKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Each", VBFeaturesResources.Introduces_a_loop_that_is_repeated_for_each_element_in_a_collection))
Completion\KeywordRecommenders\Statements\ElseIfKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("ElseIf", VBFeaturesResources.Introduces_a_condition_in_an_If_statement_that_is_to_be_tested_if_the_previous_conditional_test_fails))
Completion\KeywordRecommenders\Statements\ElseKeywordRecommender.vb (3)
24Return ImmutableArray.Create(New RecommendedKeyword("Else", VBFeaturesResources.Introduces_a_group_of_statements_in_an_If_statement_that_is_executed_if_no_previous_condition_evaluates_to_True)) 31Return ImmutableArray.Create(New RecommendedKeyword("Else", VBFeaturesResources.Introduces_a_group_of_statements_in_an_If_statement_that_is_executed_if_no_previous_condition_evaluates_to_True)) 43Return ImmutableArray.Create(New RecommendedKeyword("Else", VBFeaturesResources.Introduces_the_statements_to_run_if_none_of_the_previous_cases_in_the_Select_Case_statement_returns_True))
Completion\KeywordRecommenders\Statements\EndKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("End", VBFeaturesResources.Stops_execution_immediately))
Completion\KeywordRecommenders\Statements\ExitKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Exit", VBFeaturesResources.Exits_a_procedure_or_block_and_transfers_execution_immediately_to_the_statement_following_the_procedure_call_or_block_definition_Exit_Do_For_Function_Property_Select_Sub_Try_While))
Completion\KeywordRecommenders\Statements\FinallyKeywordRecommender.vb (1)
20ImmutableArray.Create(New RecommendedKeyword("Finally", VBFeaturesResources.Introduces_a_statement_block_to_be_run_before_exiting_a_Try_structure))
Completion\KeywordRecommenders\Statements\ForKeywordRecommender.vb (2)
35Return ImmutableArray.Create(New RecommendedKeyword("For", VBFeaturesResources.Exits_a_For_loop_and_transfers_execution_immediately_to_the_statement_following_the_Next_statement)) 37Return ImmutableArray.Create(New RecommendedKeyword("For", VBFeaturesResources.Transfers_execution_immediately_to_the_next_iteration_of_the_For_loop))
Completion\KeywordRecommenders\Statements\GoToKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("GoTo", VBFeaturesResources.Branches_unconditionally_to_a_specified_line_in_a_procedure))
Completion\KeywordRecommenders\Statements\IfKeywordRecommender.vb (2)
20Return ImmutableArray.Create(New RecommendedKeyword("If", VBFeaturesResources.Conditionally_executes_a_group_of_statements_depending_on_the_value_of_an_expression)) 32Return ImmutableArray.Create(New RecommendedKeyword("If", VBFeaturesResources.Introduces_a_condition_in_an_If_statement_that_is_to_be_tested_if_the_previous_conditional_test_fails))
Completion\KeywordRecommenders\Statements\IsKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Is", VBFeaturesResources.Followed_by_a_comparison_operator_and_then_an_expression_Case_Is_introduces_the_statements_to_run_if_the_Select_Case_expression_combined_with_the_Case_Is_expression_evaluates_to_True))
Completion\KeywordRecommenders\Statements\LoopKeywordRecommender.vb (1)
29Return ImmutableArray.Create(New RecommendedKeyword("Loop", VBFeaturesResources.Terminates_a_loop_that_is_introduced_with_a_Do_statement))
Completion\KeywordRecommenders\Statements\NextKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Next", VBFeaturesResources.Terminates_a_loop_that_iterates_through_the_values_of_a_loop_variable))
Completion\KeywordRecommenders\Statements\ReturnKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Return", VBFeaturesResources.Returns_execution_to_the_code_that_called_the_Function_Sub_Get_Set_or_Operator_procedure_Return_or_Return_expression))
Completion\KeywordRecommenders\Statements\SelectKeywordRecommender.vb (2)
19Return ImmutableArray.Create(New RecommendedKeyword("Select", VBFeaturesResources.Runs_one_of_several_groups_of_statements_depending_on_the_value_of_an_expression)) 27Return ImmutableArray.Create(New RecommendedKeyword("Select", VBFeaturesResources.Exits_a_Select_block_and_transfers_execution_immediately_to_the_statement_following_the_End_Select_statement))
Completion\KeywordRecommenders\Statements\StepKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Step", VBFeaturesResources.Specifies_how_much_to_increment_between_each_loop_iteration))
Completion\KeywordRecommenders\Statements\StopKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Stop", VBFeaturesResources.Suspends_program_execution))
Completion\KeywordRecommenders\Statements\SyncLockKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("SyncLock", VBFeaturesResources.Ensures_that_multiple_threads_do_not_execute_the_statement_block_at_the_same_time_SyncLock_object_End_Synclock))
Completion\KeywordRecommenders\Statements\ThenKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("Then", VBFeaturesResources.Introduces_a_statement_block_to_be_compiled_or_executed_if_a_tested_condition_is_true))
Completion\KeywordRecommenders\Statements\ThrowKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Throw", VBFeaturesResources.Throws_an_exception_within_a_procedure_so_that_you_can_handle_it_with_structured_or_unstructured_exception_handling_code))
Completion\KeywordRecommenders\Statements\ToKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("To", VBFeaturesResources.Separates_the_beginning_and_ending_values_of_a_loop_counter_or_array_bounds_or_that_of_a_value_match_range))
Completion\KeywordRecommenders\Statements\TryKeywordRecommender.vb (2)
19Return ImmutableArray.Create(New RecommendedKeyword("Try", VBFeaturesResources.Provides_a_way_to_handle_some_or_all_possible_errors_that_might_occur_in_a_given_block_of_code_while_still_running_the_code_Try_bracket_Catch_bracket_Catch_Finally_End_Try)) 32Return ImmutableArray.Create(New RecommendedKeyword("Try", VBFeaturesResources.Exits_a_Try_block_and_transfers_execution_immediately_to_the_statement_following_the_End_Try_statement))
Completion\KeywordRecommenders\Statements\UsingKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Using", VBFeaturesResources.A_Using_block_does_three_things_colon_it_creates_and_initializes_variables_in_the_resource_list_it_runs_the_code_in_the_block_and_it_disposes_of_the_variables_before_exiting_Resources_used_in_the_Using_block_must_implement_System_IDisposable_Using_resource1_bracket_resource2_bracket_End_Using))
Completion\KeywordRecommenders\Statements\WhenKeywordRecommender.vb (1)
19ImmutableArray.Create(New RecommendedKeyword("When", VBFeaturesResources.Adds_a_conditional_test_to_a_Catch_statement_Exceptions_are_caught_by_that_Catch_statement_only_when_the_conditional_test_that_follows_the_When_keyword_evaluates_to_True))
Completion\KeywordRecommenders\Statements\WhileLoopKeywordRecommender.vb (1)
20Return ImmutableArray.Create(New RecommendedKeyword("While", VBFeaturesResources.Runs_a_series_of_statements_as_long_as_a_given_condition_is_true))
Completion\KeywordRecommenders\Statements\WithKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("With", VBFeaturesResources.Runs_a_series_of_statements_that_refer_to_a_single_object_or_structure_With_object_End_With))
Completion\KeywordRecommenders\Statements\YieldKeywordRecommender.vb (1)
18ImmutableArray.Create(New RecommendedKeyword("Yield", VBFeaturesResources.Produces_an_element_of_an_IEnumerable_or_IEnumerator))
Diagnostics\Analyzers\VisualBasicPreferFrameworkTypeDiagnosticAnalyzer.vb (1)
21ImmutableArray.Create(SyntaxKind.PredefinedType)
Diagnostics\Analyzers\VisualBasicUnboundIdentifiersDiagnosticAnalyzer.vb (1)
17Private Shared ReadOnly s_kindsOfInterest As ImmutableArray(Of SyntaxKind) = ImmutableArray.Create(SyntaxKind.IncompleteMember)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.ExpressionCodeGenerator.vb (1)
93Return ImmutableArray.Create(statement)
QuickInfo\VisualBasicSemanticQuickInfoProvider.vb (2)
197Return QuickInfoItem.Create(token.Span, sections:=ImmutableArray.Create(QuickInfoSection.Create(QuickInfoSectionKinds.Description, ImmutableArray.Create(New TaggedText(TextTags.Text, VBFeaturesResources.Multiple_Types)))))
RemoveUnusedVariable\VisualBasicRemoveUnusedVariableCodeFixProvider.vb (1)
29ImmutableArray.Create(BC42024)
src\Analyzers\VisualBasic\Analyzers\AddAccessibilityModifiers\VisualBasicAddAccessibilityModifiersDiagnosticAnalyzer.vb (1)
65Dim additionalLocations = ImmutableArray.Create(member.GetLocation())
src\Analyzers\VisualBasic\Analyzers\UseInferredMemberName\VisualBasicUseInferredMemberNameDiagnosticAnalyzer.vb (2)
62additionalUnnecessaryLocations:=ImmutableArray.Create(syntaxTree.GetLocation(fadeSpan)))) 86additionalUnnecessaryLocations:=ImmutableArray.Create(syntaxTree.GetLocation(fadeSpan))))
src\Analyzers\VisualBasic\Analyzers\UseIsNotExpression\VisualBasicUseIsNotDiagnosticAnalyzer.vb (1)
76ImmutableArray.Create(notExpression.GetLocation()),
src\Analyzers\VisualBasic\CodeFixes\AddAnonymousTypeMemberName\VisualBasicAddAnonymousTypeMemberNameCodeFixProvider.vb (1)
28ImmutableArray.Create(BC36556)
src\Analyzers\VisualBasic\CodeFixes\AliasAmbiguousType\VisualBasicAliasAmbiguousTypeCodeFixProvider.vb (1)
25Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30561)
src\Analyzers\VisualBasic\CodeFixes\ConvertToAsync\VisualBasicConvertToAsyncFunctionCodeFixProvider.vb (1)
22Friend ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(Of String)(BC37001)
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\GenerateConstructorDiagnosticIds.vb (1)
22Friend Shared ReadOnly TooManyArgumentsDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30057)
src\Analyzers\VisualBasic\CodeFixes\GenerateEnumMember\GenerateEnumMemberCodeFixProvider.vb (1)
31Return ImmutableArray.Create(BC30456)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\GenerateConversionCodeFixProvider.vb (1)
31Return ImmutableArray.Create(BC30311)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
90Return ImmutableArray.Create(typeParameter)
src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceCodeFixProvider.vb (1)
25Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30149)
src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
66interfaceTypes = ImmutableArray.Create(GetInterfaceType(model, interfaceNode, cancellationToken))
src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicChangeToYieldCodeFixProvider.vb (1)
23Friend Shared ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(BC36942)
src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicConvertToIteratorCodeFixProvider.vb (1)
25Friend Shared ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(BC30451)
src\Analyzers\VisualBasic\CodeFixes\MakeMethodSynchronous\VisualBasicMakeMethodSynchronousCodeFixProvider.vb (1)
21Private Shared ReadOnly s_diagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC42356)
src\Analyzers\VisualBasic\CodeFixes\MakeTypeAbstract\VisualBasicMakeTypeAbstractCodeFixProvider.vb (1)
23ImmutableArray.Create("BC31411")
src\Analyzers\VisualBasic\CodeFixes\MakeTypePartial\VisualBasicMakeTypePartialCodeFixProvider.vb (1)
23Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC40046)
src\Analyzers\VisualBasic\CodeFixes\RemoveAsyncModifier\VisualBasicRemoveAsyncModifierCodeFixProvider.vb (1)
21Private Shared ReadOnly s_diagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC42356)
src\Analyzers\VisualBasic\CodeFixes\UnsealClass\VisualBasicUnsealClassCodeFixProvider.vb (1)
24ImmutableArray.Create(BC30299)
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (13)
Diagnostics\Configuration\ConfigureSeverity\DotNetDiagnosticSeverityBasedSeverityConfigurationTests.vb (1)
29Return ImmutableArray.Create(Rule)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.vb (1)
54Return ImmutableArray.Create(Of DiagnosticAnalyzer)(New VisualBasicCompilerDiagnosticAnalyzer())
Diagnostics\Suppression\SuppressionTests.vb (6)
701Return ImmutableArray.Create(_descriptor) 776Return ImmutableArray.Create(_descriptor) 820Return ImmutableArray.Create(_descriptor) 886Return ImmutableArray.Create(_descriptor) 1006Return ImmutableArray.Create(_descriptor) 1722Return ImmutableArray.Create(_descriptor)
EditAndContinue\LineEditTests.vb (3)
1450New SequencePointUpdates("a", ImmutableArray.Create(New SourceLineUpdate(0, 1))), 1451New SequencePointUpdates("b", ImmutableArray.Create(New SourceLineUpdate(0, 1))) 1490New SequencePointUpdates("a", ImmutableArray.Create(New SourceLineUpdate(6, 4)))
EditAndContinue\SyntaxComparerTests.vb (2)
120ImmutableArray.Create(SyntaxFactory.Token(SyntaxKind.StaticKeyword))) 126ImmutableArray.Create(MakeLiteral(0)))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (121)
Compilation\CompilationAPITests.vb (10)
1551ImmutableArray.Create(DirectCast(Nothing, ITypeSymbol)), 1565ImmutableArray.Create(True)) 1578memberLocations:=ImmutableArray.Create(Location.None)) 1625ImmutableArray.Create(DirectCast(Nothing, ITypeSymbol)), 1626ImmutableArray.Create("m1")) 1634ImmutableArray.Create(Of ITypeSymbol)(compilation.GetSpecialType(SpecialType.System_Int32)), 1635ImmutableArray.Create("m1")) 1648ImmutableArray.Create(Of ITypeSymbol)(compilation.GetSpecialType(SpecialType.System_Int32)), 1649ImmutableArray.Create("m1"), 1650ImmutableArray.Create(False))
Diagnostics\DiagnosticAnalyzerTests.vb (10)
31Return ImmutableArray.Create(s_CA9999_UseOfVariableThatStartsWithX) 269Return ImmutableArray.Create(desc1) 307Return ImmutableArray.Create(desc1) 352Return ImmutableArray.Create(desc1) 403Return ImmutableArray.Create(s_descriptor) 501Return ImmutableArray.Create(desc1) 566Return ImmutableArray.Create(desc1) 954Return ImmutableArray.Create(ExpressionDescriptor) 1656Dim options = New AnalyzerOptions(ImmutableArray.Create(additionalFile)) 1659Dim analyzers As ImmutableArray(Of DiagnosticAnalyzer) = ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)
Diagnostics\GetDiagnosticsTests.vb (3)
524Dim compilationWithAnalyzers = compilation.WithAnalyzers(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer), AnalyzerOptions.Empty) 696Dim compilationWithAnalyzers = compilation.WithAnalyzers(ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer), AnalyzerOptions.Empty) 715Return ImmutableArray.Create(Descriptor)
SourceGeneration\GeneratorDriverTests.vb (20)
51additionalTexts:=ImmutableArray.Create(Of AdditionalText)(additionalText), 66Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(testGenerator), parseOptions:=parseOptions) 94Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(testGenerator), parseOptions:=parseOptions) 149Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(testGenerator), parseOptions:=parseOptions) 163Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(testGenerator), parseOptions:=parseOptions) 316Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions) 348Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions) 377Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions) 408Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions) 438Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions) 469Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions) 498Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions) 528Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions) 558Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions) 587Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions) 600Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(New IncrementalGeneratorWrapper(testGenerator)), parseOptions:=parseOptions) 618Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(testGenerator), parseOptions:=parseOptions) 652Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=TestOptions.Regular) 679Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(gen), parseOptions:=TestOptions.Regular) 715Dim driver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(gen), parseOptions:=parseOptions)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.vb (31)
84Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 125Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 168Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 196Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 225Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 251Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 282Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 311Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 340Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 369Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 400Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 443Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 484Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 524Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 563Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 602Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 642Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 678Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 715Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 752Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 789Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 826Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 863Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 899Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 946Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 993Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1036Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1085Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1138Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1196Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1250Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.vb (47)
55Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 87Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 113Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 138Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 163Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 192Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 224Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 256Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 288Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 319Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 345Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 371Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 397Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 430Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 458Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 486Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 513Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 543Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 574Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 604Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 634Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 662Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 690Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 718Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 745Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 772Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 799Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 826Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 855Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 884Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 911Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 937Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 966Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 994Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1020Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1047Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1079Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1119Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1160Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1200Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1242Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1288Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1325Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1365Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1406Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1448Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions) 1500Dim driver As GeneratorDriver = VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
SymbolsTests\AssemblyAndNamespaceTests.vb (2)
518Dim aliasedCorlib = NetFramework.mscorlib.WithAliases(ImmutableArray.Create("Goo")) 560Dim libRef = libComp.EmitToImageReference(aliases:=ImmutableArray.Create("myTask"))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Parser\ParseDirectives.vb (1)
3169Return ImmutableArray.Create(_descriptor)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
Classification\SyntaxClassification\IdentifierNameSyntaxClassifier.vb (1)
19Public Overrides ReadOnly Property SyntaxNodeTypes As ImmutableArray(Of Type) = ImmutableArray.Create(GetType(IdentifierNameSyntax))
Classification\SyntaxClassification\ImportAliasClauseSyntaxClassifier.vb (1)
18Public Overrides ReadOnly Property SyntaxNodeTypes As ImmutableArray(Of Type) = ImmutableArray.Create(GetType(ImportAliasClauseSyntax))
Rename\VisualBasicRenameRewriterLanguageService.vb (4)
828Return ImmutableArray.Create(DirectCast(token.Parent, ForEachStatementSyntax).Expression.GetLocation()) 954Return ImmutableArray.Create(originalDeclarationLocation) 961Return ImmutableArray.Create(originalDeclarationLocation) 969Return ImmutableArray.Create(originalDeclarationLocation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (1)
267ImmutableArray.Create(Of ISymbol)(preprocessingSymbol),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (1)
605localVariables = ImmutableArray.Create(DirectCast(model.GetDeclaredSymbol(forEach), ILocalSymbol))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\InitializeParameter\InitializeParameterHelpers.vb (1)
34Return SyntaxFactory.List(ImmutableArray.Create(convertedStatement))
Microsoft.CodeAnalysis.Workspaces (21)
FindSymbols\FindReferences\Finders\FieldSymbolReferenceFinder.cs (1)
25? new(ImmutableArray.Create(symbol.AssociatedSymbol))
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (1)
36Add(result, ImmutableArray.Create(symbol.AssociatedSymbol));
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (1)
31? new(ImmutableArray.Create<ISymbol>(symbol.ContainingType))
FindSymbols\FindReferences\Finders\PropertyAccessorSymbolReferenceFinder.cs (1)
29: new(ImmutableArray.Create(symbol.AssociatedSymbol));
LanguageServices\FixAllSpanMappingService\AbstractFixAllSpanMappingService.cs (2)
40return ImmutableDictionary.CreateRange([KeyValuePairUtil.Create(document, ImmutableArray.Create(decl.FullSpan))]); 66return ImmutableDictionary.CreateRange([KeyValuePairUtil.Create(document, ImmutableArray.Create(decl.FullSpan))]);
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (3)
79return ImmutableArray.Create(map(items[0])); 119return ImmutableArray.Create(map(items[0], arg)); 159return ImmutableArray.Create(map(items[0], 0, arg));
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (4)
179return ImmutableArray.Create(map(items[0], 0, arg)); 494return ImmutableArray.Create(map(self[0], other[0])); 1202? ImmutableArray.Create(symbol) 1203: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol));
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
281return ImmutableArray.Create<V>((V)_value);
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
3101 => ImmutableArray.Create(_item0),
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
185=> HasOneItem ? ImmutableArray.Create(_one) : _many;
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
523dictionary1.Add(keySelector(value), ImmutableArray.Create(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (1)
27return ImmutableArray.Create(info.Symbol);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
56var diagnostics = ImmutableArray.Create(diagnostic ?? context.Diagnostics[0]);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
85var parameters = ImmutableArray.Create(CodeGenerationSymbolFactory.CreateParameterSymbol(
Workspace\Solution\ProjectDependencyGraph_AddProject.cs (1)
31builder.Add(ImmutableArray.Create(projectId));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (10)
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (3)
79return ImmutableArray.Create(map(items[0])); 119return ImmutableArray.Create(map(items[0], arg)); 159return ImmutableArray.Create(map(items[0], 0, arg));
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (4)
179return ImmutableArray.Create(map(items[0], 0, arg)); 494return ImmutableArray.Create(map(self[0], other[0])); 1202? ImmutableArray.Create(symbol) 1203: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol));
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
3101 => ImmutableArray.Create(_item0),
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
185=> HasOneItem ? ImmutableArray.Create(_one) : _many;
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
523dictionary1.Add(keySelector(value), ImmutableArray.Create(value));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (6)
Options\OptionsTestHelpers.cs (6)
26public static readonly ImmutableArray<(IOption, object)> PublicCustomOptionsWithNonDefaultValues = ImmutableArray.Create<(IOption, object)>( 29public static readonly ImmutableArray<(IOption, object)> PublicAutoFormattingOptionsWithNonDefaultValues = ImmutableArray.Create<(IOption, object)>( 135ImmutableArray<bool> array => array.IsEmpty ? ImmutableArray.Create(true) : [], 136ImmutableArray<string> array => array is ["X"] ? ImmutableArray.Create("X", "Y") : ImmutableArray.Create("X"), 137ImmutableArray<int> array => array.IsEmpty ? ImmutableArray.Create(1) : [], 138ImmutableArray<long> array => array.IsEmpty ? ImmutableArray.Create(1L) : [],
Microsoft.CodeAnalysis.Workspaces.UnitTests (38)
BatchFixAllProviderTests.cs (5)
43ImmutableArray.Create(1), 44ImmutableArray.Create(2), 45ImmutableArray.Create(3)); 59public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 91public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(LiteralZeroAnalyzer.Descriptor.Id);
ChecksumTests.cs (1)
184Assert.NotEqual(Checksum.Null, Checksum.Create(ImmutableArray.Create((byte)0)));
SolutionTests\SolutionTestHelpers.cs (1)
49var boxedItems = (IEnumerable<TValue>)ImmutableArray.Create(item);
SolutionTests\SolutionTests.cs (20)
128Assert.Throws<InvalidOperationException>(() => solution.RemoveDocuments(ImmutableArray.Create(s_unrelatedDocumentId))); 129Assert.Throws<ArgumentNullException>(() => solution.RemoveDocuments(ImmutableArray.Create((DocumentId)null!))); 147Assert.Throws<InvalidOperationException>(() => solution.RemoveAdditionalDocuments(ImmutableArray.Create(s_unrelatedDocumentId))); 148Assert.Throws<ArgumentNullException>(() => solution.RemoveAdditionalDocuments(ImmutableArray.Create((DocumentId)null!))); 166Assert.Throws<InvalidOperationException>(() => solution.RemoveAnalyzerConfigDocuments(ImmutableArray.Create(s_unrelatedDocumentId))); 167Assert.Throws<ArgumentNullException>(() => solution.RemoveAnalyzerConfigDocuments(ImmutableArray.Create((DocumentId)null!))); 1928new ProjectReference(projectId2, ImmutableArray.Create("alias")), 1950var projectRefs = (IEnumerable<ProjectReference>)ImmutableArray.Create(externalProjectRef); 2740Assert.Throws<ArgumentException>(() => solution.GetProject(projectId2).RemoveDocuments(ImmutableArray.Create(documentInfo1.Id))); 2759Assert.Throws<ArgumentException>(() => solution.GetProject(projectId2).RemoveAdditionalDocuments(ImmutableArray.Create(documentInfo1.Id))); 2774.AddAnalyzerConfigDocuments(ImmutableArray.Create(documentInfo1)); 2778Assert.Throws<ArgumentException>(() => solution.GetProject(projectId2).RemoveAnalyzerConfigDocuments(ImmutableArray.Create(documentInfo1.Id))); 2987var analyzerReference = new AnalyzerImageReference(ImmutableArray.Create(analyzer)); 3012analyzerReference = new AnalyzerImageReference(ImmutableArray.Create(analyzer)); 3014var secondAnalyzerReference = new AnalyzerImageReference(ImmutableArray.Create(secondAnalyzer)); 4683solution = solution.AddAnalyzerConfigDocuments(ImmutableArray.Create( 4716solution = solution.AddAnalyzerConfigDocuments(ImmutableArray.Create( 4757solution = solution.AddAnalyzerConfigDocuments(ImmutableArray.Create( 4805solution = solution.AddAnalyzerConfigDocuments(ImmutableArray.Create( 4851solution = solution.AddAnalyzerConfigDocuments(ImmutableArray.Create(
WorkspaceTests\WorkspaceReferenceTests.cs (11)
27metadataReferences: ImmutableArray.Create<MetadataReference>(PortableExecutableReference.CreateFromFile(typeof(object).Assembly.Location))); 56metadataReferences: ImmutableArray.Create<MetadataReference>(PortableExecutableReference.CreateFromFile(typeof(object).Assembly.Location))); 66projectReferences: ImmutableArray.Create<ProjectReference>(new ProjectReference(referenceInfo.Id)), 67metadataReferences: ImmutableArray.Create<MetadataReference>(PortableExecutableReference.CreateFromFile(typeof(object).Assembly.Location))); 96metadataReferences: ImmutableArray.Create<MetadataReference>(PortableExecutableReference.CreateFromFile(typeof(object).Assembly.Location))); 106projectReferences: ImmutableArray.Create<ProjectReference>(new ProjectReference(referenceInfo.Id)), 107metadataReferences: ImmutableArray.Create<MetadataReference>(PortableExecutableReference.CreateFromFile(typeof(object).Assembly.Location))); 136metadataReferences: ImmutableArray.Create<MetadataReference>(PortableExecutableReference.CreateFromFile(typeof(object).Assembly.Location))); 146projectReferences: ImmutableArray.Create<ProjectReference>(new ProjectReference(referenceInfo.Id)), 147metadataReferences: ImmutableArray.Create<MetadataReference>(PortableExecutableReference.CreateFromFile(typeof(object).Assembly.Location))); 180metadataReferences: ImmutableArray.Create<MetadataReference>(PortableExecutableReference.CreateFromFile(typeof(object).Assembly.Location)));
Microsoft.DotNet.CodeAnalysis (3)
Analyzers\MembersMustExistAnalyzer.cs (1)
28public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(s_memberMustExistDiagnostic); } }
Analyzers\PinvokeAnalyzer.cs (1)
26public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(InvalidPinvokeCall); } }
Analyzers\ResourceUsageAnalyzer.cs (1)
21public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(InvalidSRFormatCall); } }
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
165case 1: return ImmutableArray.Create(span[0]);
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
165case 1: return ImmutableArray.Create(span[0]);
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
407var analyzers = ImmutableArray.Create(analyzer); 469var analyzers = ImmutableArray.Create(analyzer);
Microsoft.Gen.ContextualOptions.Unit.Tests (5)
EmitterTests.cs (3)
34ImmutableArray.Create("Foo")); 86ImmutableArray.Create("Foo")); 114ImmutableArray.Create("Foo"));
test\Generators\Shared\RoslynTestUtils.cs (2)
407var analyzers = ImmutableArray.Create(analyzer); 469var analyzers = ImmutableArray.Create(analyzer);
Microsoft.Gen.Logging (1)
src\Generators\Shared\RoslynExtensions.cs (1)
114return ImmutableArray.Create(span[0]);
Microsoft.Gen.Logging.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
407var analyzers = ImmutableArray.Create(analyzer); 469var analyzers = ImmutableArray.Create(analyzer);
Microsoft.Gen.Metrics (1)
src\Generators\Shared\RoslynExtensions.cs (1)
114return ImmutableArray.Create(span[0]);
Microsoft.Gen.Metrics.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
407var analyzers = ImmutableArray.Create(analyzer); 469var analyzers = ImmutableArray.Create(analyzer);
Microsoft.Gen.MetricsReports.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
407var analyzers = ImmutableArray.Create(analyzer); 469var analyzers = ImmutableArray.Create(analyzer);
Microsoft.Interop.ComInterfaceGenerator (14)
Analyzers\AddGeneratedComClassAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(AddGeneratedComClassAttribute);
Analyzers\AddGeneratedComClassFixer.cs (1)
20public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(AnalyzerDiagnostics.Ids.AddGeneratedComClassAttribute);
Analyzers\AddMarshalAsToElementFixer.cs (1)
20public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(GeneratorDiagnostics.Ids.NotRecommendedGeneratedComInterfaceUsage);
Analyzers\ComHostingDoesNotSupportGeneratedComInterfaceAnalyzer.cs (1)
17public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(ComHostingDoesNotSupportGeneratedComInterface);
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
20public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(ConvertToGeneratedComInterface);
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(AnalyzerDiagnostics.Ids.ConvertToGeneratedComInterface);
Analyzers\GeneratedComInterfaceAttributeAnalyzer.cs (2)
21= ImmutableArray.Create(GeneratorDiagnostics.InterfaceTypeNotSupported); 23public static readonly ImmutableArray<ComInterfaceType> SupportedComInterfaceTypes = ImmutableArray.Create(ComInterfaceType.InterfaceIsIUnknown);
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (3)
57var firstArgumentTypeLookupOnly = ImmutableArray.Create(firstArgumentTypeLookup); 72methodsOfInterest.Add(createAggregatedObject, ImmutableArray.Create(CreateArgumentTypeLookup(1))); 88methodsOfInterest.Add(marshalType.GetMembers("GetTypedObjectForIUnknown")[0], ImmutableArray.Create(CreateTypeOfArgumentTypeLookup(1)));
ComInterfaceGenerator.cs (1)
374ImmutableArray.Create(FunctionPointerUnmanagedCallingConvention(Identifier("MemberFunction"))));
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
165case 1: return ImmutableArray.Create(span[0]);
src\libraries\System.Runtime.InteropServices\gen\Common\FixAllContextExtensions.cs (1)
56return ImmutableArray.Create(context.Project);
Microsoft.Interop.JavaScript.JSImportGenerator (5)
JSExportGenerator.cs (1)
72return ImmutableArray.Create(DiagnosticInfo.Create(GeneratorDiagnostics.JSExportRequiresAllowUnsafeBlocks, null));
JSImportGenerator.cs (1)
70return ImmutableArray.Create(DiagnosticInfo.Create(GeneratorDiagnostics.JSImportRequiresAllowUnsafeBlocks, null));
JSSignatureContext.cs (3)
38ImmutableArray<IUseSiteAttributeParser> useSiteAttributeParsers = ImmutableArray.Create<IUseSiteAttributeParser>(new JSMarshalAsAttributeParser(env.Compilation)); 43ImmutableArray.Create<IMarshallingInfoAttributeParser>(new JSMarshalAsAttributeParser(env.Compilation)), 44ImmutableArray.Create<ITypeBasedMarshallingInfoProvider>(new FallbackJSMarshallingInfoProvider()));
Microsoft.Interop.LibraryImportGenerator (8)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (1)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(GeneratorDiagnostics.Ids.TypeNotSupported);
Analyzers\ConvertToLibraryImportAnalyzer.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(ConvertToLibraryImport);
Analyzers\ConvertToLibraryImportFixer.cs (1)
33public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(Ids.ConvertToLibraryImport);
Analyzers\CustomMarshallerAttributeFixer.cs (1)
106ImmutableArray.Create(
Analyzers\ShapeBreakingDiagnosticSuppressor.cs (1)
20ImmutableArray.Create(MarkMethodsAsStaticSuppression);
LibraryImportGenerator.cs (1)
83return ImmutableArray.Create(DiagnosticInfo.Create(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, null));
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
165case 1: return ImmutableArray.Create(span[0]);
src\libraries\System.Runtime.InteropServices\gen\Common\FixAllContextExtensions.cs (1)
56return ImmutableArray.Create(context.Project);
Microsoft.Interop.LibraryImportGenerator.Downlevel (3)
DownlevelLibraryImportGeneratorHelpers.cs (2)
33var useSiteAttributeParsers = ImmutableArray.Create<IUseSiteAttributeParser>( 40ImmutableArray.Create<IMarshallingInfoAttributeParser>(new MarshalAsAttributeParser(diagnostics, defaultInfo)),
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
165case 1: return ImmutableArray.Create(span[0]);
Microsoft.Interop.SourceGeneration (6)
DiagnosticOr.cs (2)
70Val v => new ValueAndDiagnostic(v.Value, ImmutableArray.Create(diagnostic)), 91return new Diag(ImmutableArray.Create(diagnostic));
GeneratedStatements.cs (1)
168return ImmutableArray.Create(
Marshalling\ByValueMarshalKindSupportDescriptor.cs (1)
25ImmutableArray.Create(info.ByValueMarshalAttributeLocations.OutLocation))
Marshalling\ResolvedGenerator.cs (1)
27return new(s_forwarder.Bind(info, context), ImmutableArray.Create<GeneratorDiagnostic>(notSupportedDiagnostic));
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
165case 1: return ImmutableArray.Create(span[0]);
Microsoft.ML.CodeAnalyzer.Tests (3)
Code\BaseTestClassTest.cs (1)
18.AddPackages(ImmutableArray.Create(new PackageIdentity("xunit", "2.4.2")));
Code\RelaxTestNamingTest.cs (1)
109public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
Helpers\AdditionalMetadataReferences.cs (1)
19.AddPackages(ImmutableArray.Create(new PackageIdentity("System.Memory", "4.5.1")));
Microsoft.ML.DataView (1)
VectorType.cs (1)
49Dimensions = ImmutableArray.Create(Size);
Microsoft.ML.InternalCodeAnalyzer (9)
BaseTestClassAnalyzer.cs (1)
28public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
BestFriendAnalyzer.cs (1)
37ImmutableArray.Create(Rule);
BestFriendOnPublicDeclarationsAnalyzer.cs (1)
32ImmutableArray.Create(Rule);
ContractsCheckNameofFixProvider.cs (1)
29public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(Id);
InstanceInitializerAnalyzer.cs (1)
29ImmutableArray.Create(Rule);
ParameterVariableNameAnalyzer.cs (1)
30ImmutableArray.Create(Rule);
RelaxTestNamingSuppressor.cs (1)
22public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions { get; } = ImmutableArray.Create(Rule);
SingleVariableDeclarationAnalyzer.cs (1)
30ImmutableArray.Create(Rule);
TypeParamNameAnalyzer.cs (1)
29ImmutableArray.Create(Rule);
Microsoft.VisualStudio.LanguageServices (1)
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (1)
341var operations = ImmutableArray.Create<CodeActionOperation>(new ApplyChangesOperation(newSolution));
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (16)
EditorConfigSettings\DataProvider\DataProviderTests.MockAnalyzerReference.cs (5)
22private static readonly ImmutableArray<DiagnosticAnalyzer> s_defaultAnalyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new MockDiagnosticAnalyzer()); 53=> Fixer != null ? ImmutableArray.Create(Fixer) : ImmutableArray<CodeFixProvider>.Empty; 61public sealed override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(Id); 77: this(ImmutableArray.Create((diagnosticId, category))) 87: this(ImmutableArray.Create(MockFixer.Id))
ProjectSystemShim\CPS\AnalyzersTests.cs (4)
39project.SetOptions(ImmutableArray.Create($"/ruleset:{ruleSetFile.Path}")); 63project.SetOptions(ImmutableArray.Create($"/ruleset:{ruleSetFile.Path}")); 66project.SetOptions(ImmutableArray.Create($"/ruleset:{ruleSetFile.Path}")); 80project.SetOptions(ImmutableArray.Create($"/ruleset:{ruleSetFile.Path}"));
ProjectSystemShim\CPS\CSharpCompilerOptionsTests.cs (6)
53project.SetOptions(ImmutableArray.Create(@"/warnaserror")); 71project.SetOptions(ImmutableArray.Create($"/out:{newObjPath}")); 77project.SetOptions(ImmutableArray.Create($"/out:{newObjPath}")); 83project.SetOptions(ImmutableArray.Create($"/out:{newObjPath}")); 103project.SetOptions(ImmutableArray.Create($"/out:{relativeObjPath}")); 186cpsProject.SetOptions(ImmutableArray.Create("/checksumalgorithm:SHA1"));
ProjectSystemShim\TestEvaluationData.cs (1)
41"IntermediateAssembly" => ImmutableArray.Create(OutputAssembly),
Microsoft.VisualStudio.LanguageServices.UnitTests (13)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (3)
49ImmutableDictionary(Of String, ImmutableArray(Of DiagnosticAnalyzer)).Empty.Add(LanguageNames.CSharp, ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer))) 95ImmutableDictionary(Of String, ImmutableArray(Of DiagnosticAnalyzer)).Empty.Add(LanguageNames.CSharp, ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer))) 270Return ImmutableArray.Create(DescriptorFactory.CreateSimpleDescriptor("CompilationAnalyzer"))
Diagnostics\VisualStudioDiagnosticAnalyzerProviderTests.vb (1)
55Dim hostAnalyzers = New HostDiagnosticAnalyzers(ImmutableArray.Create(Of AnalyzerReference)(New AnalyzerFileReference(analyzerFile.Path, analyzerLoader)))
ProjectSystemShim\FileChangeWatcherTests.vb (2)
36Dim context1 = fileChangeWatcher.CreateContext(ImmutableArray.Create(New WatchedDirectory(_tempPath, ImmutableArray(Of String).Empty))) 37Dim context2 = fileChangeWatcher.CreateContext(ImmutableArray.Create(New WatchedDirectory(_tempPath, ImmutableArray(Of String).Empty)))
ProjectSystemShim\VisualStudioProjectTests\MetadataToProjectReferenceConversionTests.vb (6)
200referencingProject.AddMetadataReference(ReferencePath, New MetadataReferenceProperties(aliases:=ImmutableArray.Create("alias1"))) 208referencingProject.AddMetadataReference(ReferencePath, New MetadataReferenceProperties(aliases:=ImmutableArray.Create("alias2"))) 212referencingProject.RemoveMetadataReference(ReferencePath, New MetadataReferenceProperties(aliases:=ImmutableArray.Create("alias2"))) 217referencingProject.RemoveMetadataReference(ReferencePath, New MetadataReferenceProperties(aliases:=ImmutableArray.Create("alias1"))) 263referencingProject.AddMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("temporary"))) 272referencingProject.RemoveMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("temporary")))
Venus\DocumentService_IntegrationTests.vb (1)
328Return New ExcerptResult(mappedSource.GetSubText(line.Span), New TextSpan(mappedSpan.Start - line.Start, mappedSpan.Length), ImmutableArray.Create(New ClassifiedSpan(New TextSpan(0, line.Span.Length), ClassificationTypeNames.Text)), document, span)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Snippets\SnippetCompletionProvider.vb (1)
78commitCharacterRules:=ImmutableArray.Create(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, s_commitChars)))
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Implementation\LanguageClient\XamlInProcLanguageClient.cs (1)
43protected override ImmutableArray<string> SupportedLanguages => ImmutableArray.Create(StringConstants.XamlLanguageName);
Implementation\LanguageClient\XamlInProcLanguageClientDisableUX.cs (1)
45protected override ImmutableArray<string> SupportedLanguages => ImmutableArray.Create(StringConstants.XamlLanguageName);
Roslyn.VisualStudio.Next.UnitTests (34)
Services\ServiceHubServicesTests.cs (31)
518ImmutableArray.Create(("SG.cs", CreateText(Guid.NewGuid().ToString())))); 526ImmutableArray.Create(("SG.cs", sourceText)), 527ImmutableArray.Create(("SG.cs", sourceText))); 535ImmutableArray.Create(("SG.cs", CreateText(sourceText))), 536ImmutableArray.Create(("SG.cs", CreateText(sourceText)))); 543ImmutableArray.Create(("SG.cs", CreateText(Guid.NewGuid().ToString()))), 544ImmutableArray.Create(("SG.cs", CreateText(Guid.NewGuid().ToString())))); 551ImmutableArray.Create(("SG.cs", CreateText(Guid.NewGuid().ToString()))), 552ImmutableArray.Create(("NewName.cs", CreateText(Guid.NewGuid().ToString())))); 560ImmutableArray.Create(("SG.cs", sourceText)), 561ImmutableArray.Create(("NewName.cs", sourceText))); 569ImmutableArray.Create(("SG.cs", CreateText(sourceText))), 570ImmutableArray.Create(("NewName.cs", CreateText(sourceText)))); 577ImmutableArray.Create(("SG.cs", CreateText(Guid.NewGuid().ToString()))), 578ImmutableArray.Create(("NewName.cs", CreateText(Guid.NewGuid().ToString())))); 585ImmutableArray.Create(("SG.cs", CreateText("X", Encoding.ASCII))), 586ImmutableArray.Create(("SG.cs", CreateText("X", Encoding.UTF8)))); 593ImmutableArray.Create(("SG.cs", CreateText("X", Encoding.UTF8, checksumAlgorithm: SourceHashAlgorithm.Sha1))), 594ImmutableArray.Create(("SG.cs", CreateText("X", Encoding.UTF8, checksumAlgorithm: SourceHashAlgorithm.Sha256)))); 601ImmutableArray.Create(("SG.cs", CreateText(Guid.NewGuid().ToString()))), 610ImmutableArray.Create(("SG.cs", CreateText(Guid.NewGuid().ToString())))); 618ImmutableArray.Create(("SG.cs", CreateText(contents))), 627ImmutableArray.Create(("SG.cs", CreateText(contents))), 636ImmutableArray.Create(("SG.cs", CreateText(contents))), 645ImmutableArray.Create(("SG.cs", CreateText(contents))), 654ImmutableArray.Create(("SG.cs", CreateText(contents))), 691ImmutableArray.Create(("SG.cs", CreateStreamText(contents, useBOM: useBOM1, useMemoryStream: useMemoryStream1))), 692ImmutableArray.Create(("SG.cs", CreateStreamText(contents, useBOM: useBOM2, useMemoryStream: useMemoryStream2)))); 720return ImmutableArray.Create(("hint", SourceText.From($"// generated document {callCount}", Encoding.UTF8))); 804return ImmutableArray.Create(("hint", SourceText.From($"// generated document {callCount}", Encoding.UTF8))); 859return ImmutableArray.Create(("hint", SourceText.From($"// generated document {callCount}", Encoding.UTF8)));
Services\SolutionServiceTests.cs (1)
372return s.AddAnalyzerConfigDocuments(ImmutableArray.Create(analyzerConfigDocumentInfo));
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (2)
266ImmutableArray.Create(new DiagnosticDescriptor("test", "test", "test", "test", DiagnosticSeverity.Error, isEnabledByDefault: true)); 286ImmutableArray.Create(new DiagnosticDescriptor("test", "test", "test", "test", DiagnosticSeverity.Error, isEnabledByDefault: true));
RunTests (1)
TestRunner.cs (1)
146return new RunAllResult(result.ExitCode == 0, ImmutableArray<TestResult>.Empty, ImmutableArray.Create(result));
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableArray_1.cs (2)
321return ImmutableArray.Create(item); 427return ImmutableArray.Create(item);
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
165case 1: return ImmutableArray.Create(span[0]);
System.Text.RegularExpressions.Generator (3)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
165case 1: return ImmutableArray.Create(span[0]);
UpgradeToGeneratedRegexAnalyzer.cs (1)
30public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.UseRegexSourceGeneration);
UpgradeToGeneratedRegexCodeFixer.cs (1)
35public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(DiagnosticDescriptors.UseRegexSourceGeneration.Id);
VBCSCompiler (1)
src\Compilers\Server\VBCSCompiler\MetadataCache.cs (1)
53return (moduleBuilder != null) ? moduleBuilder.ToImmutableAndFree() : ImmutableArray.Create(manifestModule);
VBCSCompiler.UnitTests (7)
AnalyzerConsistencyCheckerTests.cs (7)
89var analyzerReferences = ImmutableArray.Create(new CommandLineAnalyzerReference("Alpha.dll")); 145ImmutableArray.Create(new CommandLineAnalyzerReference(mvidAlpha1.Path)), 155ImmutableArray.Create(new CommandLineAnalyzerReference(mvidAlpha2.Path)), 184var analyzerReferences = ImmutableArray.Create( 207var analyzerReferences = ImmutableArray.Create( 225var analyzerReferences = ImmutableArray.Create( 240var analyzerReferences = ImmutableArray.Create(new CommandLineAnalyzerReference(compFile.Path));
VisualBasicSyntaxGenerator (1)
Grammar\GrammarGenerator.vb (1)
336ImmutableArray.Create(name))