1 write to Empty
Microsoft.CodeAnalysis.VisualBasic (1)
Compilation\MethodCompiler.vb (1)
1395codeCoverageSpans:=ImmutableArray(Of SourceSpan).Empty,
3699 references to Empty
AnalyzerRunner (2)
DiagnosticAnalyzerRunner.cs (1)
182languageAnalyzers = ImmutableArray<DiagnosticAnalyzer>.Empty;
Program.cs (1)
142solution = solution.WithProjectAnalyzerReferences(projectId, ImmutableArray<AnalyzerReference>.Empty);
Aspire.Hosting (2)
Dcp\ApplicationExecutor.cs (2)
617var relationships = ImmutableArray<RelationshipSnapshot>.Empty; 688var relationships = ImmutableArray<RelationshipSnapshot>.Empty;
BuildValidator (3)
LocalReferenceResolver.cs (1)
139aliases: metadataReferenceInfo.ExternAlias is null ? ImmutableArray<string>.Empty : ImmutableArray.Create(metadataReferenceInfo.ExternAlias),
Program.cs (2)
370return ImmutableArray<SourceLinkEntry>.Empty; 381sourceLinks = ImmutableArray<SourceLinkEntry>.Empty;
ConfigurationSchemaGenerator (1)
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (1)
164case 0: return ImmutableArray<T>.Empty;
IdeCoreBenchmarks (2)
CSharpIdeAnalyzerBenchmarks.cs (1)
62incrementalAnalyzerNames: ImmutableArray<string>.Empty);
NavigateToBenchmarks.cs (1)
217g => Task.Run(() => SearchAsync(solution, g, priorityDocuments: ImmutableArray<Document>.Empty), CancellationToken.None)).ToArray();
illink (4)
ILLink.RoslynAnalyzer (10)
CompilationExtensions.cs (1)
143 case 0: return ImmutableArray<T>.Empty;
DataFlow\LocalDataFlowVisitor.cs (1)
183 return ProcessMethodCall (operation, method, null, ImmutableArray<IArgumentOperation>.Empty, state);
RequiresAnalyzerBase.cs (4)
37 private protected virtual ImmutableArray<(Action<SyntaxNodeAnalysisContext> Action, SyntaxKind[] SyntaxKind)> ExtraSyntaxNodeActions { get; } = ImmutableArray<(Action<SyntaxNodeAnalysisContext> Action, SyntaxKind[] SyntaxKind)>.Empty; 38 private protected virtual ImmutableArray<(Action<SymbolAnalysisContext> Action, SymbolKind[] SymbolKind)> ExtraSymbolActions { get; } = ImmutableArray<(Action<SymbolAnalysisContext> Action, SymbolKind[] SymbolKind)>.Empty; 78 var typeParams = ImmutableArray<ITypeParameterSymbol>.Empty; 79 var typeArgs = ImmutableArray<ITypeSymbol>.Empty;
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (1)
1358 return ImmutableArray<GenericParameterValue>.Empty;
TrimAnalysis\MethodProxy.cs (1)
39 return ImmutableArray<GenericParameterProxy>.Empty;
TrimAnalysis\TrimAnalysisMethodCallPattern.cs (1)
35 Arguments = ImmutableArray<MultiValue>.Empty;
TrimAnalysis\TypeProxy.cs (1)
18 return ImmutableArray<GenericParameterProxy>.Empty;
Microsoft.AspNetCore.App.Analyzers (12)
Infrastructure\EmbeddedSyntax\EmbeddedSeparatedSyntaxNodeList.cs (1)
21= new(ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>>.Empty);
Infrastructure\RoutePattern\RoutePatternHelpers.cs (1)
17=> new(kind, virtualChars, ImmutableArray<EmbeddedDiagnostic>.Empty, value: null);
RouteEmbeddedLanguage\Infrastructure\RouteStringSyntaxDetector.cs (1)
539return ImmutableArray<ISymbol>.Empty;
RouteEmbeddedLanguage\Infrastructure\RouteUsageDetector.cs (5)
66Parameters: ImmutableArray<ISymbol>.Empty, 67ResolvedParameters: ImmutableArray<ParameterSymbol>.Empty, 145Parameters: ImmutableArray<ISymbol>.Empty, 146ResolvedParameters: ImmutableArray<ParameterSymbol>.Empty, 356return ImmutableArray<ISymbol>.Empty;
RouteEmbeddedLanguage\RoutePatternHighlighter.cs (3)
28return ImmutableArray<AspNetCoreDocumentHighlights>.Empty; 41return ImmutableArray<AspNetCoreDocumentHighlights>.Empty; 47return ImmutableArray<AspNetCoreDocumentHighlights>.Empty;
src\Shared\RoslynUtils\SymbolExtensions.cs (1)
158_ => ImmutableArray<IParameterSymbol>.Empty,
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.Http.RequestDelegateGenerator (1)
src\Shared\RoslynUtils\SymbolExtensions.cs (1)
158_ => ImmutableArray<IParameterSymbol>.Empty,
Microsoft.AspNetCore.Mvc.Analyzers (1)
TopLevelParameterNameAnalyzer.cs (1)
195var constructorParameters = attribute.AttributeConstructor?.Parameters ?? ImmutableArray<IParameterSymbol>.Empty;
Microsoft.Build (2)
Evaluation\LazyItemEvaluator.IncludeOperation.cs (1)
142return itemsToAdd?.ToImmutable() ?? ImmutableArray<I>.Empty;
Graph\ProjectInterpretation.cs (1)
451return ImmutableArray<string>.Empty;
Microsoft.Build.Engine.UnitTests (1)
Graph\GraphTestingUtilities.cs (1)
152return ImmutableArray<ProjectGraphNode>.Empty;
Microsoft.CodeAnalysis (296)
CodeGen\ArrayMembers.cs (5)
251=> ImmutableArray<Cci.ICustomModifier>.Empty; 254=> ImmutableArray<Cci.ICustomModifier>.Empty; 328=> ImmutableArray<Cci.IParameterTypeInformation>.Empty; 339=> ImmutableArray<Cci.ICustomModifier>.Empty; 342=> ImmutableArray<Cci.ICustomModifier>.Empty;
CodeGen\LocalConstantDefinition.cs (1)
47=> ImmutableArray<Cci.ICustomModifier>.Empty;
CodeGen\LocalDefinition.cs (1)
113=> ImmutableArray<Cci.ICustomModifier>.Empty;
CodeGen\LocalScopeManager.cs (2)
134ImmutableArray<Cci.ILocalDefinition>.Empty, 135ImmutableArray<Cci.ILocalDefinition>.Empty));
CodeGen\LocalSlotManager.cs (1)
256return ImmutableArray<Cci.ILocalDefinition>.Empty;
CodeGen\MethodBody.cs (1)
110return ImmutableArray<Cci.SequencePoint>.Empty;
CodeGen\PrivateImplementationDetails.cs (1)
690public ImmutableArray<Cci.ICustomModifier> RefCustomModifiers => ImmutableArray<Cci.ICustomModifier>.Empty;
CodeGen\SignatureOnlyLocalDefinition.cs (2)
41get { return ImmutableArray<bool>.Empty; } 46get { return ImmutableArray<string>.Empty; }
Collections\ArrayBuilderExtensions.cs (4)
76return ImmutableArray<TResult>.Empty; 116return ImmutableArray<TResult>.Empty; 156return ImmutableArray<TResult>.Empty; 224return builder?.ToImmutableAndFree() ?? ImmutableArray<T>.Empty;
Collections\CachingDictionary.cs (1)
45private static readonly ImmutableArray<TElement> s_emptySentinel = ImmutableArray<TElement>.Empty;
Collections\ImmutableArrayExtensions.cs (22)
55return ImmutableArray<T>.Empty; 117return ImmutableArray<T>.Empty; 176return ImmutableArray<TResult>.Empty; 214return ImmutableArray<TResult>.Empty; 244return ImmutableArray<TResult>.Empty; 270return ImmutableArray<TResult>.Empty; 290return ImmutableArray<TResult>.Empty; 310return ImmutableArray<TResult>.Empty; 333return ImmutableArray<TResult>.Empty; 357return ImmutableArray<TResult>.Empty; 381return ImmutableArray<TResult>.Empty; 406return ImmutableArray<TResult>.Empty; 424return ImmutableArray<TResult>.Empty; 442return ImmutableArray<TResult>.Empty; 458return new ValueTask<ImmutableArray<TResult>>(ImmutableArray<TResult>.Empty); 491return ImmutableArray<TResult>.Empty; 521return ImmutableArray<TResult>.Empty; 613return ImmutableArray<T>.Empty; 797return array.IsDefault ? ImmutableArray<T>.Empty : array; 806null or { IsDefault: true } => ImmutableArray<T>.Empty, 863return ImmutableArray<TValue>.Empty; 1251return ImmutableArray<TNamedTypeSymbol>.Empty;
Collections\OrderPreservingMultiDictionary.cs (1)
153return ImmutableArray<V>.Empty;
Collections\TemporaryArray`1.cs (1)
3090 => ImmutableArray<T>.Empty,
Collections\TopologicalSort.cs (1)
86result = hadCycle ? ImmutableArray<TNode>.Empty : resultBuilder.ToImmutable();
CommandLine\AnalyzerConfigSet.cs (1)
516return new GlobalAnalyzerConfig(new Section(GlobalSectionName, AnalyzerOptions.Empty), ImmutableArray<Section>.Empty);
CommandLine\CommandLineArguments.cs (2)
439return ImmutableArray<PortableExecutableReference>.Empty; 446return ImmutableArray<PortableExecutableReference>.Empty;
CommandLine\CommandLineParser.cs (1)
342return ImmutableArray<KeyValuePair<string, string>>.Empty;
CommandLine\CommonCompiler.cs (1)
429return ImmutableArray<EmbeddedText?>.Empty;
CommandLine\CommonCompiler.LoggingMetadataFileReferenceResolver.cs (1)
39return ImmutableArray<PortableExecutableReference>.Empty;
Compilation\Compilation.cs (2)
1278return typesByMetadataName?.ToImmutableAndFree() ?? ImmutableArray<INamedTypeSymbol>.Empty; 3776return ImmutableArray<AssemblyIdentity>.Empty;
Compilation\IImportScope.cs (4)
49/// <remarks>May be <see cref="ImmutableArray{T}.Empty"/>, will never be <see cref="ImmutableArray{T}.IsDefault"/>.</remarks> 56/// <remarks>May be <see cref="ImmutableArray{T}.Empty"/>, will never be <see cref="ImmutableArray{T}.IsDefault"/>.</remarks> 64/// <remarks>May be <see cref="ImmutableArray{T}.Empty"/>, will never be <see cref="ImmutableArray{T}.IsDefault"/>.</remarks> 71/// <remarks>May be <see cref="ImmutableArray{T}.Empty"/>, will never be <see cref="ImmutableArray{T}.IsDefault"/>.</remarks>
Compilation\SymbolInfo.cs (2)
49: this(symbol, ImmutableArray<ISymbol>.Empty, CandidateReason.None) 54: this(symbol, ImmutableArray<ISymbol>.Empty, reason)
CryptographicHashProvider.cs (1)
181return ImmutableArray<byte>.Empty;
Diagnostic\Diagnostic.cs (1)
363var programmaticSuppressions = this.ProgrammaticSuppressionInfo?.Suppressions ?? ImmutableArray<Suppression>.Empty;
Diagnostic\DiagnosticBag.cs (1)
198return ImmutableArray<TDiagnostic>.Empty;
DiagnosticAnalyzer\AdditionalTextComparer.cs (1)
56ByteSequenceComparer.GetHashCode(GetTextOrNullIfBinary(obj)?.GetChecksum() ?? ImmutableArray<byte>.Empty));
DiagnosticAnalyzer\AnalysisResult.cs (1)
108return ImmutableArray<Diagnostic>.Empty;
DiagnosticAnalyzer\AnalysisScope.cs (3)
111var additionalFiles = analyzerOptions?.AdditionalFiles ?? ImmutableArray<AdditionalText>.Empty; 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 (5)
1136return ImmutableArray<Diagnostic>.Empty; 1823subsetProcessedAnalyzers = ImmutableArray<DiagnosticAnalyzer>.Empty; 1874subsetProcessedAnalyzers = ImmutableArray<DiagnosticAnalyzer>.Empty; 2666var executableCodeBlocks = ImmutableArray<SyntaxNode>.Empty; 2728return ImmutableArray<IOperation>.Empty;
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActions.cs (2)
20public static readonly GroupedAnalyzerActions Empty = new GroupedAnalyzerActions(ImmutableArray<(DiagnosticAnalyzer, GroupedAnalyzerActionsForAnalyzer)>.Empty, AnalyzerActions.Empty); 50var groupedActionsAndAnalyzers = ImmutableArray<(DiagnosticAnalyzer, GroupedAnalyzerActionsForAnalyzer)>.Empty.Add((analyzer, groupedActions));
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
783ImmutableArray<IOperation> operationBlocks = executableBlocks[0] is IOperation ? (ImmutableArray<IOperation>)(object)executableBlocks : ImmutableArray<IOperation>.Empty;
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
581return ImmutableArray<TExtension>.Empty;
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (2)
292var supportedDiagnostics = ImmutableArray<DiagnosticDescriptor>.Empty; 370var descriptors = ImmutableArray<SuppressionDescriptor>.Empty;
DiagnosticAnalyzer\AnalyzerOptions.cs (1)
17internal static readonly AnalyzerOptions Empty = new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty);
DiagnosticAnalyzer\AnalyzerReference.cs (3)
67public virtual ImmutableArray<ISourceGenerator> GetGeneratorsForAllLanguages() => ImmutableArray<ISourceGenerator>.Empty; 70public virtual ImmutableArray<ISourceGenerator> GetGenerators() => ImmutableArray<ISourceGenerator>.Empty; 76public virtual ImmutableArray<ISourceGenerator> GetGenerators(string language) => ImmutableArray<ISourceGenerator>.Empty;
DiagnosticAnalyzer\CompilationStartedEvent.cs (1)
23: this(compilation, ImmutableArray<AdditionalText>.Empty)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (6)
107_analysisResultBuilder = new AnalysisResultBuilder(analysisOptions.LogAnalyzerExecutionTime, analyzers, _analysisOptions.Options?.AdditionalFiles ?? ImmutableArray<AdditionalText>.Empty); 227private ImmutableArray<AdditionalText> AdditionalFiles => _analysisOptions.Options?.AdditionalFiles ?? ImmutableArray<AdditionalText>.Empty; 998return ImmutableArray<CompilationEvent>.Empty; 1051return ImmutableArray<CompilationEvent>.Empty; 1243return ImmutableArray<DiagnosticDescriptor>.Empty; 1255return ImmutableArray<SuppressionDescriptor>.Empty;
DiagnosticAnalyzer\DiagnosticQueue.cs (1)
213return ImmutableArray<Diagnostic>.Empty;
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (21)
436private ImmutableArray<CodeBlockAnalyzerAction> _codeBlockEndActions = ImmutableArray<CodeBlockAnalyzerAction>.Empty; 437private ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>> _syntaxNodeActions = ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>.Empty; 464private ImmutableArray<OperationBlockAnalyzerAction> _operationBlockEndActions = ImmutableArray<OperationBlockAnalyzerAction>.Empty; 465private ImmutableArray<OperationAnalyzerAction> _operationActions = ImmutableArray<OperationAnalyzerAction>.Empty; 678_compilationStartActions = ImmutableArray<CompilationStartAnalyzerAction>.Empty; 679_compilationEndActions = ImmutableArray<CompilationAnalyzerAction>.Empty; 680_compilationActions = ImmutableArray<CompilationAnalyzerAction>.Empty; 681_syntaxTreeActions = ImmutableArray<SyntaxTreeAnalyzerAction>.Empty; 682_additionalFileActions = ImmutableArray<AdditionalFileAnalyzerAction>.Empty; 683_semanticModelActions = ImmutableArray<SemanticModelAnalyzerAction>.Empty; 684_symbolActions = ImmutableArray<SymbolAnalyzerAction>.Empty; 685_symbolStartActions = ImmutableArray<SymbolStartAnalyzerAction>.Empty; 686_symbolEndActions = ImmutableArray<SymbolEndAnalyzerAction>.Empty; 687_codeBlockStartActions = ImmutableArray<AnalyzerAction>.Empty; 688_codeBlockEndActions = ImmutableArray<CodeBlockAnalyzerAction>.Empty; 689_codeBlockActions = ImmutableArray<CodeBlockAnalyzerAction>.Empty; 690_operationBlockStartActions = ImmutableArray<OperationBlockStartAnalyzerAction>.Empty; 691_operationBlockEndActions = ImmutableArray<OperationBlockAnalyzerAction>.Empty; 692_operationBlockActions = ImmutableArray<OperationBlockAnalyzerAction>.Empty; 693_syntaxNodeActions = ImmutableArray<AnalyzerAction>.Empty; 694_operationActions = ImmutableArray<OperationAnalyzerAction>.Empty;
DiagnosticAnalyzer\DiagnosticSuppressor.cs (1)
15public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray<DiagnosticDescriptor>.Empty;
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
370return ImmutableArray<ISymbol>.Empty;
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
70return ImmutableArray<ISymbol>.Empty;
DiagnosticAnalyzer\UnresolvedAnalyzerReference.cs (2)
56return ImmutableArray<DiagnosticAnalyzer>.Empty; 61return ImmutableArray<DiagnosticAnalyzer>.Empty;
Emit\CommonPEModuleBuilder.cs (3)
509return ImmutableArray<Cci.ManagedResource>.Empty; 716=> ImmutableArray<TNamedTypeSymbol>.Empty; 719=> ImmutableArray<TNamedTypeSymbol>.Empty;
Emit\EditAndContinue\DefinitionMap.cs (4)
270previousLocals = ImmutableArray<EncLocalInfo>.Empty; 341previousLocals = ImmutableArray<EncLocalInfo>.Empty; 376previousLocals = localSignature.IsNil ? ImmutableArray<EncLocalInfo>.Empty : 464return ImmutableArray<DebugId>.Empty;
Emit\EditAndContinue\DeletedMethodBody.cs (9)
22public ImmutableArray<Cci.ExceptionHandlerRegion> ExceptionRegions => ImmutableArray<Cci.ExceptionHandlerRegion>.Empty; 28public ImmutableArray<Cci.ILocalDefinition> LocalVariables => ImmutableArray<Cci.ILocalDefinition>.Empty; 36public ImmutableArray<Cci.SequencePoint> SequencePoints => ImmutableArray<Cci.SequencePoint>.Empty; 40public ImmutableArray<Cci.LocalScope> LocalScopes => ImmutableArray<Cci.LocalScope>.Empty; 46public ImmutableArray<StateMachineHoistedLocalScope> StateMachineHoistedLocalScopes => ImmutableArray<StateMachineHoistedLocalScope>.Empty; 54public ImmutableArray<EncClosureInfo> ClosureDebugInfo => ImmutableArray<EncClosureInfo>.Empty; 56public ImmutableArray<EncLambdaInfo> LambdaDebugInfo => ImmutableArray<EncLambdaInfo>.Empty; 58public ImmutableArray<LambdaRuntimeRudeEditInfo> OrderedLambdaRuntimeRudeEdits => ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty; 60public ImmutableArray<SourceSpan> CodeCoverageSpans => ImmutableArray<SourceSpan>.Empty;
Emit\EditAndContinue\DeltaMetadataWriter.cs (6)
545addDeletedClosureMethods(deletedMethod, currentLambdas: ImmutableArray<EncLambdaInfo>.Empty, ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty); 555(ImmutableArray<EncLambdaInfo>.Empty, ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty); 1014var previouslyAddedRowIds = _previousGeneration.CustomAttributesAdded.TryGetValue(parentHandle, out var rowIds) ? rowIds : ImmutableArray<int>.Empty; 1038var previouslyAddedRowIds = _previousGeneration.CustomAttributesAdded.TryGetValue(parentHandle, out var rowIds) ? rowIds : ImmutableArray<int>.Empty;
Emit\EmitOptions.cs (1)
148instrumentationKinds: ImmutableArray<InstrumentationKind>.Empty)
Emit\ErrorType.cs (1)
219publicKeyOrToken: ImmutableArray<byte>.Empty,
Emit\MethodInstrumentation.cs (1)
16Kinds = ImmutableArray<InstrumentationKind>.Empty,
Emit\NoPia\CommonEmbeddedMethod.cs (8)
122ImmutableArray<Cci.ExceptionHandlerRegion>.Empty; 129ImmutableArray<Cci.ILocalDefinition>.Empty; 135ImmutableArray<byte> Cci.IMethodBody.IL => ImmutableArray<byte>.Empty; 137ImmutableArray<Cci.SequencePoint> Cci.IMethodBody.SequencePoints => ImmutableArray<Cci.SequencePoint>.Empty; 143ImmutableArray<SourceSpan> Cci.IMethodBody.CodeCoverageSpans => ImmutableArray<SourceSpan>.Empty; 146ImmutableArray<Cci.LocalScope>.Empty; 168ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty; 275return ImmutableArray<Cci.IParameterTypeInformation>.Empty;
Emit\NoPia\VtblGap.cs (5)
110get { return ImmutableArray<Cci.IParameterDefinition>.Empty; } 211get { return ImmutableArray<Cci.IParameterTypeInformation>.Empty; } 236return ImmutableArray<Cci.IParameterTypeInformation>.Empty; 241get { return ImmutableArray<Cci.ICustomModifier>.Empty; } 246get { return ImmutableArray<Cci.ICustomModifier>.Empty; }
InternalUtilities\EnumerableExtensions.cs (9)
358return ImmutableArray<TResult>.Empty; 370return ImmutableArray<TResult>.Empty; 387return ImmutableArray<TResult>.Empty; 403return ImmutableArray<TResult>.Empty; 419return ImmutableArray<TResult>.Empty; 431return ImmutableArray<TResult>.Empty; 443return ImmutableArray<TResult>.Empty; 456return ImmutableArray<TResult>.Empty; 469return ImmutableArray<TResult>.Empty;
InternalUtilities\OneOrMany.cs (1)
27public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty);
InternalUtilities\SpecializedCollections.Empty.List.cs (1)
18public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
MetadataReader\MetadataDecoder.cs (4)
262sizes = ImmutableArray<int>.Empty; 295lowerBounds = ImmutableArray<int>.Empty; 907modifiers = ImmutableArray<ModifierInfo<TypeSymbol>>.Empty; 1177return ImmutableArray<LocalInfo<TypeSymbol>>.Empty;
MetadataReader\MetadataHelpers.cs (1)
607return ImmutableArray<T>.Empty;
MetadataReader\MetadataTypeName.cs (2)
173name._namespaceSegments = ImmutableArray<string>.Empty; 174name._namespaceSegmentsMemory = ImmutableArray<ReadOnlyMemory<char>>.Empty;
MetadataReader\PEModule.cs (9)
163_lazyAssemblyReferences = ImmutableArray<AssemblyIdentity>.Empty; 436return ImmutableArray<EmbeddedResource>.Empty; 1632return result?.ToImmutableAndFree() ?? ImmutableArray<string>.Empty; 1639return result?.ToImmutableAndFree() ?? ImmutableArray<string>.Empty; 1650return ImmutableArray<string>.Empty; 1690return (ImmutableArray<string>.Empty, ImmutableArray<string>.Empty); 3666return ImmutableArray<byte>.Empty; 3673return ImmutableArray<byte>.Empty;
MetadataReader\TypeNameDecoder.cs (3)
203container = MakePointerTypeSymbol(container, ImmutableArray<ModifierInfo<TypeSymbol>>.Empty); 214GetMDArrayTypeSymbol(rank, container, default(ImmutableArray<ModifierInfo<TypeSymbol>>), ImmutableArray<int>.Empty, default(ImmutableArray<int>)); 230typeArgumentsBuilder.Add(new KeyValuePair<TypeSymbol, ImmutableArray<ModifierInfo<TypeSymbol>>>(GetTypeSymbol(argument, out refersToNoPia), ImmutableArray<ModifierInfo<TypeSymbol>>.Empty));
MetadataReference\AssemblyIdentity.cs (2)
226publicKey = ImmutableArray<byte>.Empty; 537ImmutableArray<byte> publicKey = (publicKeyBytes != null) ? ImmutableArray.Create(publicKeyBytes) : ImmutableArray<byte>.Empty;
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
684token = ImmutableArray<byte>.Empty;
Operations\ControlFlowBranch.cs (3)
68result = ImmutableArray<ControlFlowRegion>.Empty; 111result = ImmutableArray<ControlFlowRegion>.Empty; 154var result = builder == null ? ImmutableArray<ControlFlowRegion>.Empty : builder.ToImmutableAndFree();
Operations\ControlFlowGraphBuilder.BasicBlockBuilder.cs (2)
83_statements?.ToImmutableAndFree() ?? ImmutableArray<IOperation>.Empty, 233return ImmutableArray<ControlFlowBranch>.Empty;
Operations\ControlFlowGraphBuilder.Context.cs (1)
38ImmutableArray<KeyValuePair<IPropertySymbol, IOperation>>.Empty);
Operations\ControlFlowGraphBuilder.cs (29)
1412return result ?? MakeInvalidOperation(originalOperation.Syntax, originalOperation.Type, ImmutableArray<IOperation>.Empty); 2003return ImmutableArray<T>.Empty; 3344ImmutableArray<IArgumentOperation>.Empty, semanticModel: null, value.Syntax, 3932return new NoneOperation(children: ImmutableArray<IOperation>.Empty, semanticModel: null, operation.Syntax, constantValue: null, isImplicit: true, type: null); 4186args = ImmutableArray<IArgumentOperation>.Empty; 4231disposeArguments: ImmutableArray<IArgumentOperation>.Empty, 4232locals: ImmutableArray<ILocalSymbol>.Empty, 4245arguments: ImmutableArray<IArgumentOperation>.Empty, 4311ImmutableArray<ILocalSymbol>.Empty); 4607result = new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, operation.Collection.Syntax, 4725return ImmutableArray<IArgumentOperation>.Empty; 6360return MakeInvalidOperation(operation.Syntax, operation.Type, ImmutableArray<IOperation>.Empty); 6366return MakeInvalidOperation(operation.Syntax, operation.Type, ImmutableArray<IOperation>.Empty); 6373return new AnonymousObjectCreationOperation(initializers: ImmutableArray<IOperation>.Empty, semanticModel: null, 6400IOperation visitedTarget = new PropertyReferenceOperation(propertyReference.Property, propertyReference.ConstrainedToType, ImmutableArray<IArgumentOperation>.Empty, visitedPropertyInstance, 6596return MakeInvalidOperation(operation.Syntax, operation.Type, ImmutableArray<IOperation>.Empty); 6761return new NoneOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, operation.Syntax, operation.Type, operation.GetConstantValue(), IsImplicit(operation)); 6983return new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, operation.Syntax, operation.Type, operation.GetConstantValue(), isImplicit: true); 6996return new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, operation.Syntax, operation.Type, operation.GetConstantValue(), isImplicit: true); 7155return MakeInvalidOperation(operation.Syntax, operation.Type, ImmutableArray<IOperation>.Empty); 7250var value = new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, 7263arguments = ImmutableArray<IArgumentOperation>.Empty; 7496return new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, invalidOperation.Syntax, invalidOperation.Type, invalidOperation.GetConstantValue(), IsImplicit(invalidOperation)); 7795? MakeInvalidOperation(operation.Syntax, type: _compilation.GetSpecialType(SpecialType.System_Object), ImmutableArray<IOperation>.Empty) 7797matchFailureCtor, initializer: null, ImmutableArray<IArgumentOperation>.Empty, semanticModel: null, operation.Syntax, 7842locals: ImmutableArray<ILocalSymbol>.Empty, 7935isVirtual: true, arguments: ImmutableArray<IArgumentOperation>.Empty, 8037var visitedValue = new PropertyReferenceOperation(property, constrainedToType: null, ImmutableArray<IArgumentOperation>.Empty, oldInstance, 8063var target = new PropertyReferenceOperation(property, constrainedToType: null, ImmutableArray<IArgumentOperation>.Empty, implicitReceiver,
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (1)
332subRegions = ImmutableArray<ControlFlowRegion>.Empty;
Operations\IOperation.OperationList.cs (1)
41return ImmutableArray<IOperation>.Empty;
Operations\IOperation.OperationList.Reversed.cs (1)
44return ImmutableArray<IOperation>.Empty;
Operations\OperationNodes.cs (1)
701Locals = ImmutableArray<ILocalSymbol>.Empty;
PEWriter\Members.cs (1)
499/// <see cref="ImmutableArray{SourceSpan}.Empty"/> if not applicable.
PEWriter\MetadataWriter.cs (6)
592return ImmutableArray<IParameterDefinition>.Empty; 1194SerializeReturnValueAndParameters(signatureEncoder, signature, varargParameters: ImmutableArray<IParameterTypeInformation>.Empty); 1285SerializeReturnValueAndParameters(encoder, propertyDef, ImmutableArray<IParameterTypeInformation>.Empty); 3858SerializeReturnValueAndParameters(signatureEncoder, signature, varargParameters: ImmutableArray<IParameterTypeInformation>.Empty); 4179return ImmutableArray<LocalSlotDebugInfo>.Empty; 4189return ImmutableArray<LocalSlotDebugInfo>.Empty;
PEWriter\MetadataWriter.DynamicAnalysis.cs (2)
61_blobs.Add(ImmutableArray<byte>.Empty, default(BlobHandle)); 68var spans = body?.CodeCoverageSpans ?? ImmutableArray<SourceSpan>.Empty;
PEWriter\RootModuleStaticConstructor.cs (16)
67public ImmutableArray<IParameterDefinition> Parameters => ImmutableArray<IParameterDefinition>.Empty; 90public ImmutableArray<IParameterTypeInformation> ExtraParameters => ImmutableArray<IParameterTypeInformation>.Empty; 100public ImmutableArray<ICustomModifier> ReturnValueCustomModifiers => ImmutableArray<ICustomModifier>.Empty; 102public ImmutableArray<ICustomModifier> RefCustomModifiers => ImmutableArray<ICustomModifier>.Empty; 118public ImmutableArray<IParameterTypeInformation> GetParameters(EmitContext context) => ImmutableArray<IParameterTypeInformation>.Empty; 134public ImmutableArray<ExceptionHandlerRegion> ExceptionRegions => ImmutableArray<ExceptionHandlerRegion>.Empty; 140public ImmutableArray<ILocalDefinition> LocalVariables => ImmutableArray<ILocalDefinition>.Empty; 144public ImmutableArray<SequencePoint> SequencePoints => ImmutableArray<SequencePoint>.Empty; 148public ImmutableArray<LocalScope> LocalScopes => ImmutableArray<LocalScope>.Empty; 154public ImmutableArray<StateMachineHoistedLocalScope> StateMachineHoistedLocalScopes => ImmutableArray<StateMachineHoistedLocalScope>.Empty; 158public ImmutableArray<EncHoistedLocalInfo> StateMachineHoistedLocalSlots => ImmutableArray<EncHoistedLocalInfo>.Empty; 160public ImmutableArray<ITypeReference> StateMachineAwaiterSlots => ImmutableArray<ITypeReference>.Empty; 162public ImmutableArray<EncClosureInfo> ClosureDebugInfo => ImmutableArray<EncClosureInfo>.Empty; 164public ImmutableArray<EncLambdaInfo> LambdaDebugInfo => ImmutableArray<EncLambdaInfo>.Empty; 166public ImmutableArray<LambdaRuntimeRudeEditInfo> OrderedLambdaRuntimeRudeEdits => ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty; 170public ImmutableArray<SourceSpan> CodeCoverageSpans => ImmutableArray<SourceSpan>.Empty;
ReferenceManager\CommonReferenceManager.Binding.cs (5)
154implicitlyResolvedReferences = ImmutableArray<MetadataReference>.Empty; 155implicitlyResolvedReferenceMap = ImmutableArray<ResolvedReference>.Empty; 322resolvedReferences = ImmutableArray<ResolvedReference>.Empty; 323metadataReferences = ImmutableArray<MetadataReference>.Empty; 442return ImmutableArray<int>.Empty;
ReferenceManager\CommonReferenceManager.Resolution.cs (4)
402boundReferenceDirectives = ImmutableArray<MetadataReference>.Empty; 428modules = ImmutableArray<PEModule>.Empty; 442var mergedReferences = ImmutableArray<MetadataReference>.Empty; 855referenceDirectiveLocations = referenceDirectiveLocationsBuilder?.ToImmutableAndFree() ?? ImmutableArray<Location>.Empty;
ReferenceManager\CommonReferenceManager.State.cs (1)
668aliasesOfReferencedAssembliesBuilder[i] = ImmutableArray<string>.Empty;
RuleSet\RuleSet.cs (2)
185return new RuleSet(_filePath, effectiveGeneralOption, effectiveSpecificOptions.ToImmutableDictionary(), ImmutableArray<RuleSetInclude>.Empty); 275return ImmutableArray<string>.Empty;
SourceFileResolver.cs (3)
21public static SourceFileResolver Default { get; } = new SourceFileResolver(ImmutableArray<string>.Empty, baseDirectory: null); 33: this(searchPaths, baseDirectory, ImmutableArray<KeyValuePair<string, string>>.Empty) 86_pathMap = ImmutableArray<KeyValuePair<string, string>>.Empty;
SourceGeneration\GeneratorDriver.cs (1)
245var postInitSources = ImmutableArray<GeneratedSyntaxTree>.Empty;
SourceGeneration\GeneratorState.cs (8)
21public static readonly GeneratorState Empty = new GeneratorState(ImmutableArray<GeneratedSyntaxTree>.Empty, 22ImmutableArray<SyntaxInputNode>.Empty, 23ImmutableArray<IIncrementalGeneratorOutputNode>.Empty, 24ImmutableArray<GeneratedSyntaxTree>.Empty, 25ImmutableArray<Diagnostic>.Empty, 39ImmutableArray<GeneratedSyntaxTree>.Empty, 40ImmutableArray<Diagnostic>.Empty, 98ImmutableArray<GeneratedSyntaxTree>.Empty,
SourceGeneration\GlobalAliases.cs (1)
18public static readonly GlobalAliases Empty = new(ImmutableArray<(string aliasName, string symbolName)>.Empty);
SourceGeneration\Nodes\InputNode.cs (1)
66var noInputStepsStepInfo = tableBuilder.TrackIncrementalSteps ? ImmutableArray<(IncrementalGeneratorRunStep, int)>.Empty : default;
SourceGeneration\Nodes\NodeStateTable.cs (4)
63internal static NodeStateTable<T> Empty { get; } = new NodeStateTable<T>(ImmutableArray<TableEntry>.Empty, ImmutableArray<IncrementalGeneratorRunStep>.Empty, hasTrackedSteps: true, isCached: false); 172return new NodeStateTable<T>(compacted.ToImmutableAndFree(), ImmutableArray<IncrementalGeneratorRunStep>.Empty, hasTrackedSteps: false, isCached: true); 501public IReadOnlyList<IncrementalGeneratorRunStep> Steps => (IReadOnlyList<IncrementalGeneratorRunStep>?)_steps ?? ImmutableArray<IncrementalGeneratorRunStep>.Empty;
SourceGeneration\Nodes\PredicateSyntaxStrategy.cs (1)
68var noInputStepsStepInfo = _filterTable.TrackIncrementalSteps ? ImmutableArray<(IncrementalGeneratorRunStep, int)>.Empty : default;
SourceGeneration\Nodes\SyntaxReceiverStrategy.cs (1)
63_nodeStateTable.AddEntry(_receiver, EntryState.Modified, lastElapsedTime, TrackIncrementalSteps ? System.Collections.Immutable.ImmutableArray<(IncrementalGeneratorRunStep, int)>.Empty : default, EntryState.Modified);
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\Compilers\Core\AnalyzerDriver\DeclarationComputer.cs (1)
23var codeBlocks = executableCodeBlocks?.Where(c => c != null).AsImmutableOrEmpty() ?? ImmutableArray<SyntaxNode>.Empty;
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (1)
495return ImmutableArray<string>.Empty;
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
89result = ImmutableArray<T>.Empty; 371return ImmutableArray<U>.Empty; 400result = ImmutableArray<T>.Empty;
Symbols\Attributes\CommonMethodEarlyWellKnownAttributeData.cs (1)
17private ImmutableArray<string?> _lazyConditionalSymbols = ImmutableArray<string?>.Empty;
Symbols\Attributes\CommonTypeEarlyWellKnownAttributeData.cs (1)
55private ImmutableArray<string> _lazyConditionalSymbols = ImmutableArray<string>.Empty;
Symbols\Attributes\CustomAttributesBag.cs (1)
30public static readonly CustomAttributesBag<T> Empty = new CustomAttributesBag<T>(CustomAttributeBagCompletionPart.All, ImmutableArray<T>.Empty);
Symbols\CustomModifiersTuple.cs (2)
13public static readonly CustomModifiersTuple Empty = new CustomModifiersTuple(ImmutableArray<CustomModifier>.Empty, ImmutableArray<CustomModifier>.Empty);
Text\SourceText.cs (2)
74_precomputedEmbeddedTextBlob = ImmutableArray<byte>.Empty; 412get { return ImmutableArray<SourceText>.Empty; }
Microsoft.CodeAnalysis.CodeStyle (60)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (6)
354return (userIdExclusions: ImmutableArray<string>.Empty, userCategoryExclusions: ImmutableArray<string>.Empty, analyzerDisabled: false); 357return (userIdExclusions: ImmutableArray<string>.Empty, userCategoryExclusions: ImmutableArray<string>.Empty, analyzerDisabled: true); 362return (userIdExclusions: ImmutableArray<string>.Empty, userCategoryExclusions: ImmutableArray<string>.Empty, analyzerDisabled: false);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
571: ImmutableArray<Location>.Empty;
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
176? ImmutableArray<SyntaxNode>.Empty
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (4)
76return ImmutableArray<TResult>.Empty; 116return ImmutableArray<TResult>.Empty; 156return ImmutableArray<TResult>.Empty; 224return builder?.ToImmutableAndFree() ?? ImmutableArray<T>.Empty;
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (22)
55return ImmutableArray<T>.Empty; 117return ImmutableArray<T>.Empty; 176return ImmutableArray<TResult>.Empty; 214return ImmutableArray<TResult>.Empty; 244return ImmutableArray<TResult>.Empty; 270return ImmutableArray<TResult>.Empty; 290return ImmutableArray<TResult>.Empty; 310return ImmutableArray<TResult>.Empty; 333return ImmutableArray<TResult>.Empty; 357return ImmutableArray<TResult>.Empty; 381return ImmutableArray<TResult>.Empty; 406return ImmutableArray<TResult>.Empty; 424return ImmutableArray<TResult>.Empty; 442return ImmutableArray<TResult>.Empty; 458return new ValueTask<ImmutableArray<TResult>>(ImmutableArray<TResult>.Empty); 491return ImmutableArray<TResult>.Empty; 521return ImmutableArray<TResult>.Empty; 613return ImmutableArray<T>.Empty; 797return array.IsDefault ? ImmutableArray<T>.Empty : array; 806null or { IsDefault: true } => ImmutableArray<T>.Empty, 863return ImmutableArray<TValue>.Empty; 1251return ImmutableArray<TNamedTypeSymbol>.Empty;
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
153return ImmutableArray<V>.Empty;
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
3090 => ImmutableArray<T>.Empty,
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
70return ImmutableArray<ISymbol>.Empty;
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (9)
358return ImmutableArray<TResult>.Empty; 370return ImmutableArray<TResult>.Empty; 387return ImmutableArray<TResult>.Empty; 403return ImmutableArray<TResult>.Empty; 419return ImmutableArray<TResult>.Empty; 431return ImmutableArray<TResult>.Empty; 443return ImmutableArray<TResult>.Empty; 456return ImmutableArray<TResult>.Empty; 469return ImmutableArray<TResult>.Empty;
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
27public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty);
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.List.cs (1)
18public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
89result = ImmutableArray<T>.Empty; 371return ImmutableArray<U>.Empty; 400result = ImmutableArray<T>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (1)
46return ImmutableArray<T>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
457return ImmutableArray<T>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (1)
294return (ImmutableArray<ModifierKind>.Empty, defaultValue());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (1)
34=> IsOnHeader(root, position, ownerOfHeader, lastTokenOrNodeOfHeader, ImmutableArray<SyntaxNode>.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SymbolAnnotation.cs (1)
25? ImmutableArray<ISymbol>.Empty
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
45visitor.WriteSymbolKeyArray(ImmutableArray<ITypeSymbol>.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FunctionPointerTypeSymbolKey.cs (1)
39var callingConventionModifiers = ImmutableArray<INamedTypeSymbol>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
35visitor.WriteSymbolKeyArray(ImmutableArray<ITypeSymbol>.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
188public static readonly Task<ImmutableArray<T>> EmptyImmutableArray = Task.FromResult(ImmutableArray<T>.Empty);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
88attributes: ImmutableArray<AttributeData>.Empty));
Microsoft.CodeAnalysis.Compiler.Test.Resources (2)
Analyzers\DoNothingAnalyzer.cs (1)
14public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray<DiagnosticDescriptor>.Empty;
Analyzers\DoNothingSuppressor.cs (1)
14public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions => ImmutableArray<SuppressionDescriptor>.Empty;
Microsoft.CodeAnalysis.CSharp (1194)
Binder\Binder.cs (1)
862: new BoundSequence(scopeDesignator, locals, ImmutableArray<BoundExpression>.Empty, expression, getType()) { WasCompilerGenerated = true };
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
186ImmutableArray<TypeWithAnnotations>.Empty, 187ImmutableArray<RefKind>.Empty,
Binder\Binder.QueryTranslationState.cs (1)
57result.Add(vars, ImmutableArray<string>.Empty);
Binder\Binder.ValueChecks.cs (10)
630(object)otherSymbol == null ? ImmutableArray<Symbol>.Empty : ImmutableArray.Create(otherSymbol), 631receiver == null ? ImmutableArray<BoundExpression>.Empty : ImmutableArray.Create(receiver), 5480ImmutableArray<TypeParameterSymbol>.Empty, 5483ImmutableArray<CustomModifier>.Empty, 5492ImmutableArray<CustomModifier>.Empty, 5493ImmutableArray<MethodSymbol>.Empty); 5520ImmutableArray<TypeParameterSymbol>.Empty, 5523ImmutableArray<CustomModifier>.Empty, 5532ImmutableArray<CustomModifier>.Empty, 5533ImmutableArray<MethodSymbol>.Empty);
Binder\Binder_Attributes.cs (5)
264ImmutableArray<BoundAssignmentOperator> boundNamedArguments = analyzedArguments.NamedArguments?.ToImmutableAndFree() ?? ImmutableArray<BoundAssignmentOperator>.Empty; 763var validatedArguments = ImmutableArray<TypedConstant>.Empty; 802return ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty; 989initializer = ImmutableArray<TypedConstant>.Empty; 995initializer = ImmutableArray<TypedConstant>.Empty;
Binder\Binder_Await.cs (2)
333getAwaiterCall = MakeInvocationExpression(node, expression, WellKnownMemberNames.GetAwaiter, ImmutableArray<BoundExpression>.Empty, diagnostics); 438getAwaiterGetResultCall = MakeInvocationExpression(node, awaiterExpression, WellKnownMemberNames.GetResult, ImmutableArray<BoundExpression>.Empty, diagnostics);
Binder\Binder_Constraints.cs (1)
347return (TypeParameterConstraintClause.Create(constraints, constraintTypes?.ToImmutableAndFree() ?? ImmutableArray<TypeWithAnnotations>.Empty), syntaxBuilder);
Binder\Binder_Crefs.cs (17)
110return ImmutableArray<Symbol>.Empty; 172return ImmutableArray<Symbol>.Empty; 180return ImmutableArray<Symbol>.Empty; 202return ImmutableArray<Symbol>.Empty; 242return ImmutableArray<Symbol>.Empty; 250return ImmutableArray<Symbol>.Empty; 277return ImmutableArray<Symbol>.Empty; 296return ImmutableArray<Symbol>.Empty; 308return ImmutableArray<Symbol>.Empty; 447return ImmutableArray<Symbol>.Empty; 455return ImmutableArray<Symbol>.Empty; 798refCustomModifiers: ImmutableArray<CustomModifier>.Empty, 799explicitInterfaceImplementations: ImmutableArray<MethodSymbol>.Empty); 813refCustomModifiers: ImmutableArray<CustomModifier>.Empty, 815explicitInterfaceImplementations: ImmutableArray<PropertySymbol>.Empty); 861return ImmutableArray<Symbol>.Empty; 945parameterBuilder.Add(new SignatureOnlyParameterSymbol(TypeWithAnnotations.Create(type), ImmutableArray<CustomModifier>.Empty, isParamsArray: false, isParamsCollection: false, refKind: refKind));
Binder\Binder_Expressions.cs (32)
108return BadExpression(syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty); 116return BadExpression(syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, childNode); 124return BadExpression(syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, childNodes); 132return BadExpression(syntax, lookupResultKind, ImmutableArray<Symbol>.Empty); 140return BadExpression(syntax, lookupResultKind, ImmutableArray<Symbol>.Empty, childNode); 151ImmutableArray<BoundExpression>.Empty, 854node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(BindToTypeForErrorRecovery(BindValue(node.Expression, BindingDiagnosticBag.Discarded, BindValueKind.RefersToLocation))), 1007ImmutableArray<BoundExpression>.Empty; 1041argumentSyntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, 3262foreach (Symbol member in ContainingType?.GetMembers(identifier) ?? ImmutableArray<Symbol>.Empty) 4089sizes: ImmutableArray<BoundExpression>.Empty, boundInitExprOpt: boundInitializerExpressions); 4454ImmutableArray<Symbol>.Empty, 4455ImmutableArray<BoundExpression>.Empty, 4493ImmutableArray<Symbol>.Empty, 4825symbols: ImmutableArray<Symbol>.Empty, 4836symbols: ImmutableArray<Symbol>.Empty, //CONSIDER: we could look for a matching constructor on System.ValueType 4879symbols: ImmutableArray<Symbol>.Empty, //CONSIDER: we could look for a matching constructor on System.ValueType 5047typeArgumentsWithAnnotations: ImmutableArray<TypeWithAnnotations>.Empty, 5200return new BoundBadExpression(syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, CreateErrorType()); 5860ImmutableArray<BoundExpression> arguments = ImmutableArray<BoundExpression>.Empty; 6389return BadExpression(elementInitializer, LookupResultKind.NotInvocable, ImmutableArray<Symbol>.Empty, boundElementInitializerExpressions); 6429applicableMethods: ImmutableArray<MethodSymbol>.Empty, 7020return new BoundBadExpression(node, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol>.Empty, children, interfaceType); 7980lookupResult.Symbols.All(s => s.Kind == SymbolKind.Method) ? lookupResult.Symbols.SelectAsArray(s_toMethodSymbolFunc) : ImmutableArray<MethodSymbol>.Empty, 8050ReportQueryLookupFailed(node, boundLeft, plainName, ImmutableArray<Symbol>.Empty, diagnostics); 8160(object)symbolOpt == null ? ImmutableArray<Symbol>.Empty : ImmutableArray.Create(symbolOpt), 8161boundLeft == null ? ImmutableArray<BoundExpression>.Empty : ImmutableArray.Create(BindToTypeForErrorRecovery(boundLeft)), 8302boundDimensionsOpt: ImmutableArray<BoundExpression>.Empty, 9268return new BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, childBoundNodes, CreateErrorType(), hasErrors: true); 9289return BindDynamicIndexer(node, expr, arguments, ImmutableArray<PropertySymbol>.Empty, diagnostics); 9666ImmutableArray<BoundExpression>.Empty,
Binder\Binder_Initializers.cs (2)
51return ImmutableArray<BoundInitializer>.Empty; 132boundInitializers.Add(new BoundFieldEqualsValue(parameterSyntax, fieldSymbol, ImmutableArray<LocalSymbol>.Empty,
Binder\Binder_InterpolatedString.cs (2)
902return (ImmutableArray<ImmutableArray<BoundExpression>>.Empty, false, ImmutableArray<ImmutableArray<(bool IsLiteral, bool HasAlignment, bool HasFormat)>>.Empty, 0, 0);
Binder\Binder_Invocation.cs (4)
51return ImmutableArray<MethodSymbol>.Empty; 348result = BindDynamicInvocation(node, boundExpression, analyzedArguments, ImmutableArray<MethodSymbol>.Empty, diagnostics, queryClause); 1571BoundExpression collection = CreateParamsCollection(node, parameters[paramsIndex], collectionArgs: ImmutableArray<BoundExpression>.Empty, diagnostics); 2179var originalMethods = (expr.Kind == BoundKind.MethodGroup) ? ((BoundMethodGroup)expr).Methods : ImmutableArray<MethodSymbol>.Empty;
Binder\Binder_Lookup.cs (6)
1045return ImmutableArray<NamedTypeSymbol>.Empty; 1052return ImmutableArray<NamedTypeSymbol>.Empty; 1305return ImmutableArray<Symbol>.Empty; 1329return ImmutableArray<Symbol>.Empty; 1442diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.ERR_BadAccess, new[] { unwrappedSymbol }, unwrappedSymbols, additionalLocations: ImmutableArray<Location>.Empty) : null; 1466diagInfo = new CSDiagnosticInfo(ErrorCode.ERR_BadAccess, new[] { unwrappedSymbol }, ImmutableArray.Create<Symbol>(unwrappedSymbol), additionalLocations: ImmutableArray<Location>.Empty);
Binder\Binder_Operators.cs (2)
1363originalUserDefinedOperators = ImmutableArray<MethodSymbol>.Empty; 1472originalUserDefinedOperators = ImmutableArray<MethodSymbol>.Empty;
Binder\Binder_Patterns.cs (4)
370lengthAccess = new BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, CreateErrorType(), hasErrors: true) { WasCompilerGenerated = true }; 988positionalClause, declType, ImmutableArray<TypeWithAnnotations>.Empty, permitDesignations, ref hasErrors, patternsBuilder, diagnostics); 1384addSubpatternsForTuple(ImmutableArray<TypeWithAnnotations>.Empty);
Binder\Binder_Query.cs (8)
302state.selectOrGroup, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol?>.Empty, 696return lambdaBodyBinder.CreateBlockFromExpression(node, ImmutableArray<LocalSymbol>.Empty, RefKind.None, construction, null, d); 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); 803field2Value = new BoundBadExpression(field2Value.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(field2Value), field2Value.Type, true); 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 (17)
146result = new BoundBadStatement(node, ImmutableArray<BoundNode>.Empty, hasErrors: true); 543childNodes = ImmutableArray<BoundNode>.Empty; 1841ImmutableArray<BoundExpression>.Empty); 2798declarations = ImmutableArray<BoundLocalDeclaration>.Empty; 2905return new BoundBadStatement(node, ImmutableArray<BoundNode>.Empty, hasErrors: true); 2916return new BoundBadStatement(node, ImmutableArray<BoundNode>.Empty, hasErrors: true); 3215return ImmutableArray<BoundCatchBlock>.Empty; 3694constructorLocals = ImmutableArray<LocalSymbol>.Empty; 3700blockBody: new BoundBlock(typeDecl, ImmutableArray<LocalSymbol>.Empty, ImmutableArray<BoundStatement>.Empty).MakeCompilerGenerated(), 3960arguments: ImmutableArray<BoundExpression>.Empty, 3961argumentNamesOpt: ImmutableArray<string?>.Empty, 3962argumentRefKindsOpt: ImmutableArray<RefKind>.Empty, 3966argsToParamsOpt: ImmutableArray<int>.Empty, 4039return ImmutableArray<LocalSymbol>.Empty; 4047return ImmutableArray<LocalFunctionSymbol>.Empty; 4055return ImmutableArray<LabelSymbol>.Empty;
Binder\Binder_Symbols.cs (1)
1469receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.Ambiguous, ImmutableArray<Symbol>.Empty, ImmutableArray.Create(receiver), receiver.Type, hasErrors: true).MakeCompilerGenerated();
Binder\Binder_XmlNameAttribute.cs (2)
25return ImmutableArray<Symbol>.Empty; 36return ImmutableArray<Symbol>.Empty;
Binder\BindingDiagnosticBag.cs (1)
176var info = new CSDiagnosticInfo(code, args, symbols, ImmutableArray<Location>.Empty);
Binder\BlockBinder.cs (1)
55return (labels != null) ? labels.ToImmutableAndFree() : ImmutableArray<LabelSymbol>.Empty;
Binder\EmbeddedStatementBinder.cs (2)
42return locals?.ToImmutableAndFree() ?? ImmutableArray<LocalFunctionSymbol>.Empty; 58return labels?.ToImmutableAndFree() ?? ImmutableArray<LabelSymbol>.Empty;
Binder\FixedStatementBinder.cs (1)
57return ImmutableArray<LocalSymbol>.Empty;
Binder\ForEachLoopBinder.cs (1)
725ImmutableArray<Symbol>.Empty,
Binder\ForLoopBinder.cs (1)
92var innerLocals = ImmutableArray<LocalSymbol>.Empty;
Binder\HostObjectModeBinder.cs (2)
42ImmutableArray<Symbol>.Empty, 43ImmutableArray<Location>.Empty
Binder\Imports.cs (2)
29ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty, 30ImmutableArray<AliasAndExternAliasDirective>.Empty);
Binder\LocalScopeBinder.cs (4)
50return ImmutableArray<LocalSymbol>.Empty; 68return ImmutableArray<LocalFunctionSymbol>.Empty; 86return ImmutableArray<LabelSymbol>.Empty; 304return locals?.ToImmutableAndFree() ?? ImmutableArray<LocalFunctionSymbol>.Empty;
Binder\MethodArgumentInfo.cs (1)
37return new MethodArgumentInfo(method, arguments: ImmutableArray<BoundExpression>.Empty, defaultArguments: default, expanded: false);
Binder\PatternExplainer.cs (1)
313return map.TryGetValue(temp, out var builder) ? builder.ToImmutable() : ImmutableArray<T>.Empty;
Binder\RefSafetyAnalysis.cs (1)
1099using var _ = new LocalScope(this, ImmutableArray<LocalSymbol>.Empty);
Binder\Semantics\Conversions\Conversion.cs (2)
35conversionResult: UserDefinedConversionResult.NoApplicableOperators(ImmutableArray<UserDefinedConversionAnalysis>.Empty), 1124return ImmutableArray<MethodSymbol>.Empty;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
550return ImmutableArray<Symbol>.Empty;
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
1338ImmutableArray<CustomModifier>.Empty,
Binder\SimpleProgramBinder.cs (2)
53return locals?.ToImmutableAndFree() ?? ImmutableArray<LocalFunctionSymbol>.Empty; 76return labels?.ToImmutableAndFree() ?? ImmutableArray<LabelSymbol>.Empty;
Binder\SimpleProgramUnitBinder.cs (1)
46return ImmutableArray<LabelSymbol>.Empty;
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,
Binder\WithUsingNamespacesAndTypesBinder.cs (1)
354return Imports.Create(ImmutableDictionary<string, AliasAndUsingDirective>.Empty, _usings, ImmutableArray<AliasAndExternAliasDirective>.Empty);
BoundTree\BoundNewT.cs (1)
13public override ImmutableArray<BoundExpression> Arguments => ImmutableArray<BoundExpression>.Empty;
BoundTree\BoundNoPiaObjectCreationExpression.cs (1)
13public override ImmutableArray<BoundExpression> Arguments => ImmutableArray<BoundExpression>.Empty;
BoundTree\BoundObjectCreationExpression.cs (2)
15: this(syntax, constructor, ImmutableArray<MethodSymbol>.Empty, arguments, argumentNamesOpt, argumentRefKindsOpt, expanded, argsToParamsOpt, defaultArguments, constantValueOpt, initializerExpressionOpt, wasTargetTyped: false, type, hasErrors) 21return this.Update(constructor, ImmutableArray<MethodSymbol>.Empty, arguments, argumentNamesOpt, argumentRefKindsOpt, expanded, argsToParamsOpt, defaultArguments, constantValueOpt, initializerExpressionOpt, this.WasTargetTyped, type);
BoundTree\Constructors.cs (6)
170return Synthesized(syntax, receiverOpt, initialBindingReceiverIsSubjectToCloning: initialBindingReceiverIsSubjectToCloning, method, ImmutableArray<BoundExpression>.Empty); 550: this(syntax, aliasOpt, boundContainingTypeOpt, ImmutableArray<BoundExpression>.Empty, typeWithAnnotations, hasErrors) 656: this(syntax, locals, ImmutableArray<LocalFunctionSymbol>.Empty, hasUnsafeModifier: false, instrumentation: null, statements, hasErrors) 662return new BoundBlock(syntax, ImmutableArray<LocalSymbol>.Empty, ImmutableArray.Create(statement)) 668return new BoundBlock(syntax, ImmutableArray<LocalSymbol>.Empty, statements) { WasCompilerGenerated = true }; 673return new BoundBlock(syntax, ImmutableArray<LocalSymbol>.Empty, statements.AsImmutableOrNull()) { WasCompilerGenerated = true };
BoundTree\Expression.cs (3)
26return ImmutableArray<BoundExpression>.Empty; 133return arrayInitializer?.Initializers ?? ImmutableArray<BoundExpression>.Empty; 170(this.Kind == BoundKind.StatementList || this.Kind == BoundKind.Scope) ? StaticCast<BoundNode?>.From(this.Statements) : ImmutableArray<BoundNode?>.Empty;
BoundTree\Statement.cs (1)
18protected virtual ImmutableArray<BoundNode?> Children => ImmutableArray<BoundNode?>.Empty;
BoundTree\TupleBinaryOperatorInfo.cs (1)
106new Multiple(operators: ImmutableArray<TupleBinaryOperatorInfo>.Empty, leftConvertedTypeOpt: null, rightConvertedTypeOpt: null);
BoundTree\UnboundLambda.cs (11)
239useSiteInfo.AccumulatesDependencies ? useSiteInfo.Dependencies.AsImmutableOrEmpty() : ImmutableArray<AssemblySymbol>.Empty); 949ImmutableArray<DiagnosticInfo>.Empty, 950ImmutableArray<AssemblySymbol>.Empty); 1029public static readonly ReturnInferenceCacheKey Empty = new ReturnInferenceCacheKey(ImmutableArray<TypeWithAnnotations>.Empty, ImmutableArray<RefKind>.Empty, null); 1097parameterTypes = ImmutableArray<TypeWithAnnotations>.Empty; 1098parameterRefKinds = ImmutableArray<RefKind>.Empty; 1183?? rebind(ReallyInferReturnType(delegateType: null, ImmutableArray<TypeWithAnnotations>.Empty, ImmutableArray<RefKind>.Empty)); 1234ImmutableArray<DiagnosticInfo>.Empty, 1235ImmutableArray<AssemblySymbol>.Empty))
CodeGen\CodeGenerator.cs (4)
187dynamicTransformFlags: ImmutableArray<bool>.Empty, 188tupleElementNames: ImmutableArray<string>.Empty, 236asyncYieldPoints = ImmutableArray<int>.Empty; 237asyncResumePoints = ImmutableArray<int>.Empty;
CodeGen\EmitStatement.cs (2)
1760ImmutableArray<bool>.Empty; 1763ImmutableArray<string>.Empty;
CodeGen\Optimizer.cs (2)
1174receiver = typeExpression.Update(aliasOpt: null, boundContainingTypeOpt: null, boundDimensionsOpt: ImmutableArray<BoundExpression>.Empty, 2265receiverOpt = typeExpression.Update(aliasOpt: null, boundContainingTypeOpt: null, boundDimensionsOpt: ImmutableArray<BoundExpression>.Empty,
CommandLine\CSharpCommandLineParser.cs (2)
77ImmutableArray<KeyValuePair<string, string>> pathMap = ImmutableArray<KeyValuePair<string, string>>.Empty; 1955var aliases = (alias != null) ? ImmutableArray.Create(alias) : ImmutableArray<string>.Empty;
CommandLine\CSharpCompiler.cs (1)
148var sourceFileResolver = new LoggingSourceFileResolver(ImmutableArray<string>.Empty, Arguments.BaseDirectory, Arguments.PathMap, touchedFilesLogger);
Compilation\BuiltInOperators.cs (17)
237ImmutableArray<UnaryOperatorSignature>.Empty, 238ImmutableArray<UnaryOperatorSignature>.Empty, 309ImmutableArray<BinaryOperatorSignature>.Empty, //multiplication 310ImmutableArray<BinaryOperatorSignature>.Empty, //addition 311ImmutableArray<BinaryOperatorSignature>.Empty, //subtraction 312ImmutableArray<BinaryOperatorSignature>.Empty, //division 313ImmutableArray<BinaryOperatorSignature>.Empty, //remainder 314ImmutableArray<BinaryOperatorSignature>.Empty, //left shift 315ImmutableArray<BinaryOperatorSignature>.Empty, //right shift 316ImmutableArray<BinaryOperatorSignature>.Empty, //equal 317ImmutableArray<BinaryOperatorSignature>.Empty, //not equal 318ImmutableArray<BinaryOperatorSignature>.Empty, //greater than 319ImmutableArray<BinaryOperatorSignature>.Empty, //less than 320ImmutableArray<BinaryOperatorSignature>.Empty, //greater than or equal 321ImmutableArray<BinaryOperatorSignature>.Empty, //less than or equal 323ImmutableArray<BinaryOperatorSignature>.Empty, //xor 325ImmutableArray<BinaryOperatorSignature>.Empty, //unsigned right shift
Compilation\CSharpCompilation.cs (8)
434ImmutableArray<SyntaxTree>.Empty, 976syntaxAndDeclarations: syntaxAndDeclarations.WithExternalSyntaxTrees(ImmutableArray<SyntaxTree>.Empty)); 1574var previousSubmissionImports = previousSubmission is object ? Imports.ExpandPreviousSubmissionImports(previousSubmission.GlobalImports, this) : ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty; 1778ImmutableArray<Symbol>.Empty, 1779ImmutableArray<Location>.Empty 3264return new ReadOnlyBindingDiagnostic<AssemblySymbol>(result.AsImmutable(), ImmutableArray<AssemblySymbol>.Empty); 4098: ImmutableArray<CustomModifier>.Empty; 4807return ImmutableArray<string>.Empty;
Compilation\CSharpCompilation.UsingsFromOptionsAndDiagnostics.cs (1)
19public static readonly UsingsFromOptionsAndDiagnostics Empty = new UsingsFromOptionsAndDiagnostics() { UsingNamespacesOrTypes = ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty, Diagnostics = null };
Compilation\CSharpSemanticModel.cs (17)
1090: ImmutableArray<ISymbol>.Empty; 1104: ImmutableArray<ISymbol>.Empty; 1118: ImmutableArray<ISymbol>.Empty; 1141: ImmutableArray<IPropertySymbol>.Empty; 1585return ImmutableArray<ISymbol>.Empty; 1597return ImmutableArray<ISymbol>.Empty; 1949return SymbolInfoFactory.Create(ImmutableArray<Symbol>.Empty, LookupResultKind.Empty, isDynamic); 2155conversion = Conversion.MakeConditionalExpression(ImmutableArray<Conversion>.Empty); 2288return ImmutableArray<Symbol>.Empty; 2305return ImmutableArray<IPropertySymbol>.Empty; 3350memberGroup = ImmutableArray<Symbol>.Empty; 4054candidateConstructors = ImmutableArray<MethodSymbol>.Empty; 4089return ImmutableArray<IPropertySymbol>.Empty; 4099return ImmutableArray<IPropertySymbol>.Empty; 5012return ImmutableArray<ISymbol>.Empty; 5190: ImmutableArray<ISymbol>.Empty; 5423xmlNamespaces: ImmutableArray<ImportedXmlNamespace>.Empty));
Compilation\DeconstructionInfo.cs (2)
66return ImmutableArray<DeconstructionInfo>.Empty; 72? ImmutableArray<DeconstructionInfo>.Empty
Compilation\SyntaxAndDeclarationManager.cs (1)
400oldLoadDirectives = ImmutableArray<LoadDirective>.Empty;
Compilation\SyntaxTreeSemanticModel.cs (2)
403return model == null ? ImmutableArray<Symbol>.Empty : model.GetMemberGroupWorker(node, options, cancellationToken); 412return model == null ? ImmutableArray<IPropertySymbol>.Empty : model.GetIndexerGroupWorker(node, options, cancellationToken);
Compilation\SyntaxTreeSemanticModel_RegionAnalysisContext.cs (2)
34var node = new BoundBadStatement(expression, ImmutableArray<BoundNode>.Empty, hasErrors: true); 51var node = new BoundBadStatement(firstStatement, ImmutableArray<BoundNode>.Empty, hasErrors: true);
Compiler\DocumentationCommentCompiler.cs (3)
632return ImmutableArray<ParameterSymbol>.Empty; 648return ImmutableArray<TypeParameterSymbol>.Empty; 727nodes = ImmutableArray<DocumentationCommentTriviaSyntax>.Empty;
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
558ImmutableArray<ParameterSymbol> parameters = ImmutableArray<ParameterSymbol>.Empty;
Compiler\MethodBodySynthesizer.cs (7)
48arguments: ImmutableArray<BoundExpression>.Empty, 49argumentNamesOpt: ImmutableArray<string>.Empty, 50argumentRefKindsOpt: ImmutableArray<RefKind>.Empty, 54argsToParamsOpt: ImmutableArray<int>.Empty, 565ImmutableArray<LocalSymbol>.Empty, 570ImmutableArray<BoundCatchBlock>.Empty, 573ImmutableArray<LocalSymbol>.Empty,
Compiler\MethodCompiler.cs (19)
308ImmutableArray<EncLambdaInfo>.Empty, 309ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty, 310ImmutableArray<EncClosureInfo>.Empty, 311ImmutableArray<StateMachineStateDebugInfo>.Empty, 318codeCoverageSpans: ImmutableArray<SourceSpan>.Empty, 638var processedInitializers = new Binder.ProcessedFieldInitializers() { BoundInitializers = ImmutableArray<BoundInitializer>.Empty }; 765ImmutableArray<EncLambdaInfo>.Empty, 766ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty, 767ImmutableArray<EncClosureInfo>.Empty, 775codeCoverageSpans: ImmutableArray<SourceSpan>.Empty, 900sourceMethod.SetDiagnostics(ImmutableArray<Diagnostic>.Empty, out diagsWritten); 961body = new BoundBlock(methodSymbol.GetNonNullSyntaxNode(), ImmutableArray<LocalSymbol>.Empty, ImmutableArray<BoundStatement>.Empty) { WasCompilerGenerated = true }; 1004new BoundBlock(analyzedInitializers.Syntax, ImmutableArray<LocalSymbol>.Empty, analyzedInitializers.Statements), // The block is necessary to establish the right local scope for the analysis 1198codeCoverageSpans = ImmutableArray<SourceSpan>.Empty; 1222boundStatements = ImmutableArray<BoundStatement>.Empty; 1384codeCoverageSpans = ImmutableArray<SourceSpan>.Empty; 1476codeCoverageSpans = ImmutableArray<SourceSpan>.Empty; 1951statements = ImmutableArray<BoundStatement>.Empty;
CSharpCompilationOptions.cs (1)
347value = ImmutableArray<byte>.Empty;
CSharpParseOptions.cs (2)
124symbols = ImmutableArray<string>.Empty; 192: ImmutableArray<ImmutableArray<string>>.Empty;
Declarations\DeclarationTreeBuilder.cs (13)
134return ImmutableArray<SingleNamespaceOrTypeDeclaration>.Empty; 190var diagnostics = ImmutableArray<Diagnostic>.Empty; 227children: ImmutableArray<SingleTypeDeclaration>.Empty, 228diagnostics: ImmutableArray<Diagnostic>.Empty, 255children: ImmutableArray<SingleTypeDeclaration>.Empty, 309return ImmutableArray<ReferenceDirective>.Empty; 343diagnostics: ImmutableArray<Diagnostic>.Empty, 355diagnostics: ImmutableArray<Diagnostic>.Empty); 469referenceDirectives: isForScript ? GetReferenceDirectives(compilationUnit) : ImmutableArray<ReferenceDirective>.Empty, 516diagnostics: ImmutableArray<Diagnostic>.Empty); 787return ImmutableArray<SingleTypeDeclaration>.Empty; 826children: ImmutableArray<SingleTypeDeclaration>.Empty, 864children: ImmutableArray<SingleTypeDeclaration>.Empty,
DocumentationComments\SourceDocumentationCommentUtils.cs (2)
37return ImmutableArray<DocumentationCommentTriviaSyntax>.Empty; 112return ImmutableArray<DocumentationCommentTriviaSyntax>.Empty;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
399var otherParameterTypes = ImmutableArray<TypeWithAnnotations>.Empty; 916var translatedParameterTypes = ImmutableArray<TypeWithAnnotations>.Empty;
Emitter\Model\AttributeDataAdapter.cs (3)
24return ImmutableArray<Cci.IMetadataExpression>.Empty; 61return ImmutableArray<Cci.IMetadataNamedArgument>.Empty; 129ImmutableArray<Cci.IMetadataExpression>.Empty);
Emitter\Model\MethodReference.cs (1)
67return ImmutableArray<Cci.IParameterTypeInformation>.Empty;
Emitter\Model\MethodSymbolAdapter.cs (1)
178return ImmutableArray<Cci.IParameterTypeInformation>.Empty;
Emitter\Model\ParameterTypeInformation.cs (2)
97get { return ImmutableArray<Cci.ICustomModifier>.Empty; } 107get { return ImmutableArray<Cci.ICustomModifier>.Empty; }
Emitter\Model\PEAssemblyBuilder.cs (19)
203ImmutableArray<TypedConstant>.Empty, 204ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 216ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 230ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 244ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 259ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 272ImmutableArray<TypedConstant>.Empty, 273ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 287ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 300ImmutableArray<TypedConstant>.Empty, 301ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 314ImmutableArray<TypedConstant>.Empty, 315ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 328ImmutableArray<TypedConstant>.Empty, 329ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 342ImmutableArray<TypedConstant>.Empty, 343ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 356ImmutableArray<TypedConstant>.Empty, 357ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
Emitter\Model\PEModuleBuilder.cs (4)
147public sealed override ImmutableArray<Cci.UsedNamespaceOrType> GetImports() => ImmutableArray<Cci.UsedNamespaceOrType>.Empty; 510return ImmutableArray<AnonymousTypeKey>.Empty; 515return ImmutableArray<SynthesizedDelegateKey>.Empty; 1658attribute = SynthesizeNativeIntegerAttribute(WellKnownMember.System_Runtime_CompilerServices_NativeIntegerAttribute__ctor, ImmutableArray<TypedConstant>.Empty);
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
21this.SetParameters(ImmutableArray<ParameterSymbol>.Empty);
Emitter\NoPia\EmbeddedType.cs (3)
263return SynthesizedAttributeData.Create(TypeManager.ModuleBeingBuilt.Compilation, ctor, ImmutableArray<TypedConstant>.Empty, ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 283ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
Emitter\NoPia\EmbeddedTypesManager.cs (2)
140ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 149ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
Errors\CSDiagnosticInfo.cs (5)
23: this(code, Array.Empty<object>(), ImmutableArray<Symbol>.Empty, ImmutableArray<Location>.Empty) 28: this(code, args, ImmutableArray<Symbol>.Empty, ImmutableArray<Location>.Empty) 33: this(code, args, symbols, ImmutableArray<Location>.Empty)
Errors\DiagnosticBagExtensions.cs (1)
47var info = new CSDiagnosticInfo(code, args, symbols, ImmutableArray<Location>.Empty);
Errors\MessageProvider.cs (2)
89var info = new CSDiagnosticInfo((ErrorCode)code, args, ImmutableArray<Symbol>.Empty, ImmutableArray<Location>.Empty);
FlowAnalysis\AbstractFlowPass.cs (1)
471return (object)method == null ? ImmutableArray<ParameterSymbol>.Empty : method.Parameters;
FlowAnalysis\ControlFlowAnalysis.cs (2)
45var result = _context.Failed ? ImmutableArray<SyntaxNode>.Empty : 65: ImmutableArray<SyntaxNode>.Empty;
FlowAnalysis\CSharpDataFlowAnalysis.cs (6)
68: ImmutableArray<ISymbol>.Empty; 102var result = _context.Failed ? ImmutableArray<ISymbol>.Empty : 132var entryResult = ImmutableArray<ISymbol>.Empty; 133var exitResult = ImmutableArray<ISymbol>.Empty; 161: ImmutableArray<ISymbol>.Empty; 180: ImmutableArray<ISymbol>.Empty;
FlowAnalysis\ExitPointsWalker.cs (1)
63return ImmutableArray<StatementSyntax>.Empty;
FlowAnalysis\FlowAnalysisPass.cs (2)
86block = new BoundBlock(block.Syntax, ImmutableArray<LocalSymbol>.Empty, newStatements) { WasCompilerGenerated = true }; 176return body.Update(body.Locals, ImmutableArray<LocalFunctionSymbol>.Empty, body.HasUnsafeModifier, body.Instrumentation, builder.ToImmutableAndFree());
FlowAnalysis\NullableWalker.cs (9)
657: ImmutableArray<string>.Empty; 682checkMemberStateOnConstructorExit(method, member, state, thisSlot, exitLocation, membersWithStateEnforcedByRequiredMembers: ImmutableArray<string>.Empty, forcePropertyAnalysis: true); 790var info = new CSDiagnosticInfo(errorCode, new object[] { symbol.Kind.Localize(), symbol.Name }, ImmutableArray<Symbol>.Empty, additionalLocations: symbol.Locations); 866return ImmutableArray<Symbol>.Empty; 911=> ImmutableArray<Symbol>.Empty, 5581_ => ImmutableArray<NamedTypeSymbol>.Empty, 7288return ImmutableArray<VisitResult>.Empty; 8926_ => (null, ImmutableArray<ParameterSymbol>.Empty), 12096VisitArguments(node, node.ConstructorArguments, ImmutableArray<RefKind>.Empty, node.Constructor, argsToParamsOpt: node.ConstructorArgumentsToParamsOpt, defaultArguments: node.ConstructorDefaultArguments,
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (2)
50public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 51public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty;
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (2)
176return _F.Try((BoundBlock)finalizedRegion, ImmutableArray<BoundCatchBlock>.Empty, rewrittenFinally); 598handlerLocals = ImmutableArray<LocalSymbol>.Empty;
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (1)
161ImmutableArray<BoundExpression>.Empty));
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (6)
153F.Block(ImmutableArray<LocalSymbol>.Empty, 261: ImmutableArray<BoundExpression>.Empty)); 435typeArgumentsWithAnnotations: ImmutableArray<TypeWithAnnotations>.Empty, 436loweredArguments: ImmutableArray<BoundExpression>.Empty, 437argumentNames: ImmutableArray<string>.Empty, 438refKinds: ImmutableArray<RefKind>.Empty,
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
223return new BoundBadStatement(F.Syntax, ImmutableArray<BoundNode>.Empty, hasErrors: true);
Lowering\ClosureConversion\ClosureConversion.cs (2)
1123locals: ImmutableArray<LocalSymbol>.Empty, 1731return new BoundBadExpression(F.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (5)
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); 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\ClosureConversion\LambdaCapturedVariable.cs (1)
122public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
31private ImmutableArray<SourceSpan> _dynamicAnalysisSpans = ImmutableArray<SourceSpan>.Empty;
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
609return _factory.Sequence(ImmutableArray<LocalSymbol>.Empty, builder.ToImmutableAndFree(), lastExpression);
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (6)
156get { return ImmutableArray<TypeWithAnnotations>.Empty; } 161get { return ImmutableArray<TypeParameterSymbol>.Empty; } 166get { return ImmutableArray<ParameterSymbol>.Empty; } 171get { return ImmutableArray<MethodSymbol>.Empty; } 176get { return ImmutableArray<CustomModifier>.Empty; } 186return ImmutableArray<string>.Empty;
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (2)
282ImmutableArray<BoundCatchBlock>.Empty, 412ImmutableArray<LocalSymbol>.Empty,
Lowering\LocalRewriter\LocalRewriter.cs (4)
161codeCoverageSpans = codeCoverageInstrumenter?.DynamicAnalysisSpans ?? ImmutableArray<SourceSpan>.Empty; 172codeCoverageSpans = ImmutableArray<SourceSpan>.Empty; 593return new BoundBadExpression(syntax, LookupResultKind.NotReferencable, ImmutableArray<Symbol?>.Empty, children, resultType); 783rewrittenStatements = ImmutableArray<BoundStatement>.Empty;
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
73locals: ImmutableArray<LocalSymbol>.Empty,
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
190ImmutableArray<BoundExpression>.Empty, 367ImmutableArray<BoundExpression>.Empty,
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
852locals: ImmutableArray<LocalSymbol>.Empty, 1396locals: ImmutableArray<LocalSymbol>.Empty, 1964locals: ImmutableArray<LocalSymbol>.Empty,
Lowering\LocalRewriter\LocalRewriter_Block.cs (2)
130? new BoundBlock(node.Syntax, ImmutableArray<LocalSymbol>.Empty, ImmutableArray<BoundStatement>.Empty)
Lowering\LocalRewriter\LocalRewriter_Call.cs (7)
514sideEffects: ImmutableArray<BoundExpression>.Empty, 807ImmutableArray<LocalSymbol>.Empty, 884visitedArgumentsBuilder[argIndex] = _factory.Sequence(ImmutableArray<LocalSymbol>.Empty, ImmutableArray.Create<BoundExpression>(store), local); 903return ImmutableArray<BoundInterpolatedStringArgumentPlaceholder>.Empty; 1440ImmutableArray<BoundExpression>.Empty, 1579ImmutableArray<LocalSymbol>.Empty, 1643locals: ImmutableArray<LocalSymbol>.Empty,
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (4)
616locals: ImmutableArray<LocalSymbol>.Empty, 1083rewrittenReceiver = _factory.New(constructor, ImmutableArray<BoundExpression>.Empty); 1262new BoundBlock(iteratorBody.Syntax, locals: ImmutableArray<LocalSymbol>.Empty, statements); 1420ImmutableArray<LocalSymbol>.Empty,
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
106BadExpression(node.Syntax, byteArray, ImmutableArray<BoundExpression>.Empty) : 111result = BadExpression(node.Syntax, node.Type, ImmutableArray<BoundExpression>.Empty);
Lowering\LocalRewriter\LocalRewriter_Event.cs (5)
128clearCall = new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(removeDelegate), ErrorTypeSymbol.UnknownResultType); 170marshalCall = new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, marshalArguments, ErrorTypeSymbol.UnknownResultType); 180? ImmutableArray<LocalSymbol>.Empty 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);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (5)
67ImmutableArray<BoundCatchBlock>.Empty, 379locals: ImmutableArray<LocalSymbol>.Empty, 483helperCall = new BoundBadExpression(fixedInitializer.Syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, ErrorTypeSymbol.UnknownResultType); 544lengthCall = new BoundBadExpression(fixedInitializer.Syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(factory.Local(pinnedTemp)), ErrorTypeSymbol.UnknownResultType);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (4)
260tryBlock: new BoundBlock(forEachSyntax, locals: ImmutableArray<LocalSymbol>.Empty, statements: ImmutableArray.Create(whileLoop)), 261catchBlocks: ImmutableArray<BoundCatchBlock>.Empty, 411locals: ImmutableArray<LocalSymbol>.Empty, 548return BoundCall.Synthesized(syntax, receiver, initialBindingReceiverIsSubjectToCloning: ThreeState.Unknown, methodArgumentInfo.Method, arguments: ImmutableArray<BoundExpression>.Empty);
Lowering\LocalRewriter\LocalRewriter_FunctionPointerInvocation.cs (1)
60rewrittenInvocation = new BoundSequence(rewrittenInvocation.Syntax, temps.ToImmutableAndFree(), sideEffects: ImmutableArray<BoundExpression>.Empty, rewrittenInvocation, node.Type);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (1)
192ImmutableArray<BoundExpression>.Empty,
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
91locals: ImmutableArray<LocalSymbol>.Empty,
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (2)
181test = _factory.Sequence(ImmutableArray<LocalSymbol>.Empty, _sideEffectBuilder.ToImmutable(), test); 319result = _factory.Sequence(allTemps, ImmutableArray<BoundExpression>.Empty, result);
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (4)
117exitCallExpr = new BoundBadExpression(lockSyntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(boundLockTemp), ErrorTypeSymbol.UnknownResultType); 179ImmutableArray<BoundCatchBlock>.Empty, 212enterCallExpr = new BoundBadExpression(lockSyntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(boundLockTemp), ErrorTypeSymbol.UnknownResultType); 228ImmutableArray<BoundCatchBlock>.Empty,
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (1)
129var alternative = _factory.Sequence(ImmutableArray<LocalSymbol>.Empty, ImmutableArray.Create(tmpAssignment, transformedLhsAssignment), tmp);
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (8)
107ImmutableArray<BoundExpression>.Empty, 350ImmutableArray<BoundExpression>.Empty, 389newGuid = new BoundBadExpression(node.Syntax, LookupResultKind.NotCreatable, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, ErrorTypeSymbol.UnknownResultType); 407callGetTypeFromCLSID = new BoundBadExpression(node.Syntax, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, ErrorTypeSymbol.UnknownResultType); 419rewrittenObjectCreation = new BoundBadExpression(node.Syntax, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, node.Type);
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
129ImmutableArray<TypeWithAnnotations>.Empty,
Lowering\LocalRewriter\LocalRewriter_PropertyAccess.cs (1)
70return MakePropertyGetAccess(syntax, rewrittenReceiver, property, ImmutableArray<BoundExpression>.Empty, default, null, oldNodeOpt);
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
195return F.StaticCall(constructionMethod, ImmutableArray<BoundExpression>.Empty);
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (2)
70symbols: ImmutableArray<Symbol?>.Empty, 71childBoundNodes: ImmutableArray<BoundExpression>.Empty,
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (2)
228: new BoundBadExpression(syntax, LookupResultKind.Empty, symbols: ImmutableArray<Symbol?>.Empty, childBoundNodes: ImmutableArray<BoundExpression>.Empty, type);
Lowering\LocalRewriter\LocalRewriter_TryStatement.cs (1)
25(optimizing && !HasSideEffects(tryBlock)) ? ImmutableArray<BoundCatchBlock>.Empty
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (12)
84tuple.Syntax, sourceTuple: null, wasTargetTyped: true, newArguments, ImmutableArray<string?>.Empty, 85ImmutableArray<bool>.Empty, conversion.Type, conversion.HasErrors); 126syntax, sourceTuple: null, wasTargetTyped: true, fieldAccessorsBuilder.ToImmutableAndFree(), ImmutableArray<string?>.Empty, 127ImmutableArray<bool>.Empty, expr.Type, expr.HasErrors); 162tuple.Syntax, sourceTuple: null, wasTargetTyped: false, newArguments, ImmutableArray<string?>.Empty, 163ImmutableArray<bool>.Empty, tuple.Type, tuple.HasErrors); 308BoundExpression innerSequence = _factory.Sequence(locals: ImmutableArray<LocalSymbol>.Empty, innerEffects.ToImmutableAndFree(), logicalExpression); 322return _factory.Sequence(ImmutableArray<LocalSymbol>.Empty, outerEffects.ToImmutableAndFree(), 330return _factory.Sequence(ImmutableArray<LocalSymbol>.Empty, outerEffects.ToImmutableAndFree(), 339_factory.Sequence(ImmutableArray<LocalSymbol>.Empty, outerEffects.ToImmutableAndFree(), 459argumentNamesOpt: ImmutableArray<string?>.Empty, 460inferredNamesOpt: ImmutableArray<bool>.Empty,
Lowering\LocalRewriter\LocalRewriter_TupleCreationExpression.cs (2)
69Binder.CheckRequiredMembersInObjectInitializer(smallestConstructor, initializers: ImmutableArray<BoundExpression>.Empty, syntax, _diagnostics); 83Binder.CheckRequiredMembersInObjectInitializer(tuple8Ctor, initializers: ImmutableArray<BoundExpression>.Empty, syntax, _diagnostics);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
549ImmutableArray<LocalSymbol>.Empty,
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (4)
92BoundBlock body = new BoundBlock(syntax, ImmutableArray<LocalSymbol>.Empty, statements); 96ImmutableArray<LocalSymbol>.Empty, 422catchBlocks: ImmutableArray<BoundCatchBlock>.Empty, 463disposeCall = new BoundBadExpression(resourceSyntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(disposedExpression), ErrorTypeSymbol.UnknownResultType);
Lowering\LocalRewriter\LoweredDynamicOperation.cs (1)
55var bad = new BoundBadExpression(children[0].Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, children, resultType);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (5)
270var loweredArguments = ImmutableArray<BoundExpression>.Empty; 372var loweredArguments = ImmutableArray<BoundExpression>.Empty; 414var loweredArguments = ImmutableArray<BoundExpression>.Empty; 516return MakeDynamicOperation(binderConstruction, loweredReceiver, RefKind.None, ImmutableArray<BoundExpression>.Empty, default(ImmutableArray<RefKind>), null, resultType); 676return ImmutableArray<LocalSymbol>.Empty;
Lowering\MethodToClassRewriter.cs (1)
750typeParameters = ImmutableArray<TypeParameterSymbol>.Empty;
Lowering\SpillSequenceSpiller.cs (2)
69return (_locals == null) ? ImmutableArray<LocalSymbol>.Empty : _locals.ToImmutable(); 76return ImmutableArray<BoundStatement>.Empty;
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
426hoistedLocals = ImmutableArray<StateMachineFieldSymbol>.Empty; 571return F.Sequence(ImmutableArray<LocalSymbol>.Empty, sideEffects.ToImmutableAndFree(), last);
Lowering\StateMachineRewriter\StateMachineFieldSymbol.cs (1)
64public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
123return new BoundBadStatement(F.Syntax, ImmutableArray<BoundNode>.Empty, hasErrors: true);
Lowering\StateMachineRewriter\StateMachineTypeSymbol.cs (1)
78builder == null ? ImmutableArray<CSharpAttributeData>.Empty : builder.ToImmutableAndFree(),
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.cs (1)
97builder == null ? ImmutableArray<CSharpAttributeData>.Empty : builder.ToImmutableAndFree(),
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (2)
111get { return ImmutableArray<Location>.Empty; } 116get { return ImmutableArray<SyntaxReference>.Empty; }
Lowering\SynthesizedMethodBaseSymbol.cs (4)
97=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 100=> ImmutableArray<TypeParameterConstraintKind>.Empty; 170: ImmutableArray<CSharpAttributeData>.Empty; 176return InheritsBaseMethodAttributes ? BaseMethod.GetReturnTypeAttributes() : ImmutableArray<CSharpAttributeData>.Empty;
Lowering\SyntheticBoundNodeFactory.cs (15)
233return new BoundBadExpression(Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, type, hasErrors: true); 445return Block(ImmutableArray<BoundStatement>.Empty); 450return Block(ImmutableArray<LocalSymbol>.Empty, statements); 485return StatementList(ImmutableArray<BoundStatement>.Empty); 533statements.Add(Try(Block(statement), ImmutableArray<BoundCatchBlock>.Empty, Block(instrumentation.Epilogue))); 789return new BoundBadExpression(Syntax, default(LookupResultKind), ImmutableArray<Symbol?>.Empty, args.AsImmutable(), receiver); 826return Call(receiver, method, ImmutableArray<BoundExpression>.Empty); 890argsToParamsOpt: ImmutableArray<int>.Empty, defaultArguments: default(BitVector), resultKind: LookupResultKind.Viable, type: method.ReturnType) 916return If(condition, ImmutableArray<LocalSymbol>.Empty, thenClause, elseClauseOpt); 992return MakeSequence(ImmutableArray<LocalSymbol>.Empty, parts); 1021return new BoundSequence(Syntax, ImmutableArray<LocalSymbol>.Empty, sideEffects.AsImmutableOrNull(), result, resultType) { WasCompilerGenerated = true }; 1602return new BoundCatchBlock(Syntax, ImmutableArray<LocalSymbol>.Empty, source, source.Type, exceptionFilterPrologueOpt: null, exceptionFilterOpt: null, body: block, isSynthesizedAsyncCatchAll: false); 1607return new BoundTryStatement(Syntax, tryBlock, ImmutableArray<BoundCatchBlock>.Empty, faultBlock, finallyLabelOpt: null, preferFaultHandler: true); 1844locals: ImmutableArray<LocalSymbol>.Empty,
Operations\CSharpOperationFactory.cs (24)
341return ImmutableArray<TOperation>.Empty; 378return ImmutableArray<IOperation>.Empty; 543dimensions = ImmutableArray<BoundExpression>.Empty; 615var arguments = ImmutableArray<IArgumentOperation>.Empty; 723declarations: ImmutableArray<BoundAnonymousPropertyDeclaration>.Empty, 764return CreateBoundDynamicMemberAccessOperation(implicitReceiver, typeArgumentsOpt: ImmutableArray<TypeSymbol>.Empty, memberName: "Add", 897arguments = ImmutableArray<IArgumentOperation>.Empty; 914ImmutableArray<ITypeSymbol> typeArguments = ImmutableArray<ITypeSymbol>.Empty; 964ImmutableArray<ITypeSymbol> typeArguments = ImmutableArray<ITypeSymbol>.Empty; 981return new DynamicInvocationOperation(operation, arguments, argumentNames: ImmutableArray<string?>.Empty, argumentRefKinds: ImmutableArray<RefKind>.Empty, _semanticModel, syntax, type, isImplicit); 1940return ImmutableArray<IArgumentOperation>.Empty; 1969return new VariableDeclaratorOperation(local.GetPublicSymbol(), initializer: null, ignoredArguments: ImmutableArray<IOperation>.Empty, semanticModel: _semanticModel, syntax: declaratorSyntax, isImplicit: false); 1981var nextVariables = ImmutableArray<IOperation>.Empty; 2489return new InvalidOperation(ImmutableArray<IOperation>.Empty, _semanticModel, syntax, type, placeholder.ConstantValueOpt, isImplicit); 2558: ImmutableArray<IPatternOperation>.Empty; 2561: ImmutableArray<IPropertySubpatternOperation>.Empty; 2579: ImmutableArray<IPatternOperation>.Empty; 2585propertySubpatterns: ImmutableArray<IPropertySubpatternOperation>.Empty, 2861var reference = OperationFactory.CreateInvalidOperation(_semanticModel, subpatternSyntax, ImmutableArray<IOperation>.Empty, isImplicit: true); 2883matchedType: previousType, deconstructSymbol: null, deconstructionSubpatterns: ImmutableArray<IPatternOperation>.Empty, 2907reference = new PropertyReferenceOperation(property.GetPublicSymbol(), constrainedToType: null, ImmutableArray<IArgumentOperation>.Empty, 2915reference = OperationFactory.CreateInvalidOperation(_semanticModel, nameSyntax, ImmutableArray<IOperation>.Empty, isImplicit: false); 2947return ImmutableArray<IArgumentOperation>.Empty;
Operations\CSharpOperationFactory_Methods.cs (6)
22return ImmutableArray<BoundStatement>.Empty; 75return new VariableInitializerOperation(locals: ImmutableArray<ILocalSymbol>.Empty, value, _semanticModel, initializerSyntax, initializerIsImplicit); 95return boundLocal == null ? null : new VariableDeclaratorOperation(boundLocal.LocalSymbol.GetPublicSymbol(), initializer: null, ignoredArguments: ImmutableArray<IOperation>.Empty, semanticModel: _semanticModel, syntax: boundLocal.Syntax, isImplicit: false); 276return ImmutableArray<IArgumentOperation>.Empty; 443arguments: ImmutableArray<IArgumentOperation>.Empty, 455ImmutableArray<IArgumentOperation>.Empty,
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
95builder.Add(new DeclarationInfo(name, ImmutableArray<SyntaxNode>.Empty, declaredSymbol));
Symbols\AliasSymbol.cs (1)
70return new AliasSymbolFromResolvedTarget(globalNamespace, "global", globalNamespace, ImmutableArray<Location>.Empty, isExtern: false);
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
374typeParameters = ImmutableArray<TypeParameterSymbol>.Empty;
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (8)
92get { return ImmutableArray<TypeParameterSymbol>.Empty; } 97get { return ImmutableArray<TypeWithAnnotations>.Empty; } 134return ImmutableArray<NamedTypeSymbol>.Empty; 139return ImmutableArray<NamedTypeSymbol>.Empty; 144return ImmutableArray<NamedTypeSymbol>.Empty; 154return ImmutableArray<NamedTypeSymbol>.Empty; 248return ImmutableArray<string>.Empty; 263return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\AnonymousTypes\PublicSymbols\AnonymousType.DelegatePublicSymbol.cs (1)
75public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ConstructorSymbol.cs (1)
39_parameters = ImmutableArray<ParameterSymbol>.Empty;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (3)
171TypeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 238internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => ImmutableArray<NamedTypeSymbol>.Empty; 240internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (3)
37public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty; 120get { return ImmutableArray<Location>.Empty; } 127return ImmutableArray<SyntaxReference>.Empty;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.GetHashCodeMethodSymbol.cs (1)
54get { return ImmutableArray<ParameterSymbol>.Empty; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertyAccessorSymbol.cs (1)
51get { return ImmutableArray<ParameterSymbol>.Empty; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (4)
30this(container, field, fieldTypeWithAnnotations, index, ImmutableArray<Location>.Empty, includeBackingField: true) 143get { return ImmutableArray<ParameterSymbol>.Empty; } 153get { return ImmutableArray<CustomModifier>.Empty; } 163get { return ImmutableArray<PropertySymbol>.Empty; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (6)
56get { return ImmutableArray<Location>.Empty; } 110get { return ImmutableArray<TypeWithAnnotations>.Empty; } 115get { return ImmutableArray<TypeParameterSymbol>.Empty; } 125get { return ImmutableArray<MethodSymbol>.Empty; } 135get { return ImmutableArray<CustomModifier>.Empty; } 212return ImmutableArray<string>.Empty;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (2)
140return ImmutableArray<NamedTypeSymbol>.Empty; 145return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ToStringMethodSymbol.cs (1)
54get { return ImmutableArray<ParameterSymbol>.Empty; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (7)
187return ImmutableArray<NamedTypeSymbol>.Empty; 192return ImmutableArray<NamedTypeSymbol>.Empty; 197return ImmutableArray<NamedTypeSymbol>.Empty; 212get { return ImmutableArray<Location>.Empty; } 217get { return ImmutableArray<SyntaxReference>.Empty; } 239return ImmutableArray<NamedTypeSymbol>.Empty; 307return ImmutableArray<string>.Empty;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (4)
46get { return ImmutableArray<Location>.Empty; } 53return ImmutableArray<SyntaxReference>.Empty; 124return ImmutableArray<TypeWithAnnotations>.Empty; 134return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\ArrayTypeSymbol.cs (9)
153return ImmutableArray<int>.Empty; 263return ImmutableArray<Symbol>.Empty; 268return ImmutableArray<Symbol>.Empty; 273return ImmutableArray<NamedTypeSymbol>.Empty; 278return ImmutableArray<NamedTypeSymbol>.Empty; 283return ImmutableArray<NamedTypeSymbol>.Empty; 314return ImmutableArray<Location>.Empty; 322return ImmutableArray<SyntaxReference>.Empty; 597return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\AssemblySymbol.cs (1)
285return ImmutableArray<SyntaxReference>.Empty;
Symbols\Attributes\SourceAttributeData.cs (2)
67constructorArguments: ImmutableArray<TypedConstant>.Empty, 69namedArguments: ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty,
Symbols\Attributes\WellKnownAttributeData\MethodWellKnownAttributeData.cs (3)
63private ImmutableArray<string> _memberNotNullAttributeData = ImmutableArray<string>.Empty; 88private ImmutableArray<string> _memberNotNullWhenTrueAttributeData = ImmutableArray<string>.Empty; 89private ImmutableArray<string> _memberNotNullWhenFalseAttributeData = ImmutableArray<string>.Empty;
Symbols\Attributes\WellKnownAttributeData\ParameterWellKnownAttributeData.cs (1)
162private ImmutableArray<int> _interpolatedStringHandlerArguments = ImmutableArray<int>.Empty;
Symbols\Attributes\WellKnownAttributeData\PropertyWellKnownAttributeData.cs (3)
113private ImmutableArray<string> _memberNotNullAttributeData = ImmutableArray<string>.Empty; 138private ImmutableArray<string> _memberNotNullWhenTrueAttributeData = ImmutableArray<string>.Empty; 139private ImmutableArray<string> _memberNotNullWhenFalseAttributeData = ImmutableArray<string>.Empty;
Symbols\Compilation_UsedAssemblies.cs (1)
29return ImmutableArray<MetadataReference>.Empty;
Symbols\Compilation_WellKnownMembers.cs (4)
405arguments = ImmutableArray<TypedConstant>.Empty; 411namedStringArguments = ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty; 452arguments: ImmutableArray<TypedConstant>.Empty, 453namedArguments: ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
Symbols\ConstraintsHelper.cs (5)
148interfaces = ImmutableArray<NamedTypeSymbol>.Empty; 354return ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 368return ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 383return ImmutableArray<TypeParameterConstraintKind>.Empty; 409return ImmutableArray<TypeParameterConstraintKind>.Empty;
Symbols\CustomModifier.cs (1)
62return ImmutableArray<CustomModifier>.Empty;
Symbols\DiscardSymbol.cs (2)
23public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 32public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty;
Symbols\DynamicTypeSymbol.cs (7)
74return ImmutableArray<Location>.Empty; 82return ImmutableArray<SyntaxReference>.Empty; 90return ImmutableArray<NamedTypeSymbol>.Empty; 134return ImmutableArray<Symbol>.Empty; 139return ImmutableArray<Symbol>.Empty; 144return ImmutableArray<NamedTypeSymbol>.Empty; 149return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\ErrorMethodSymbol.cs (8)
93get { return ImmutableArray<Location>.Empty; } 100return ImmutableArray<SyntaxReference>.Empty; 121get { return ImmutableArray<CustomModifier>.Empty; } 131get { return ImmutableArray<MethodSymbol>.Empty; } 145get { return ImmutableArray<ParameterSymbol>.Empty; } 150get { return ImmutableArray<TypeParameterSymbol>.Empty; } 155get { return ImmutableArray<TypeWithAnnotations>.Empty; } 254return ImmutableArray<string>.Empty;
Symbols\ErrorPropertySymbol.cs (5)
62public override ImmutableArray<Location> Locations { get { return ImmutableArray<Location>.Empty; } } 64public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { return ImmutableArray<SyntaxReference>.Empty; } } 86public override ImmutableArray<ParameterSymbol> Parameters { get { return ImmutableArray<ParameterSymbol>.Empty; } } 92public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations { get { return ImmutableArray<PropertySymbol>.Empty; } } 94public override ImmutableArray<CustomModifier> RefCustomModifiers { get { return ImmutableArray<CustomModifier>.Empty; } }
Symbols\ErrorTypeSymbol.cs (13)
58return ImmutableArray<Symbol>.Empty; 146var result = MakeSynthesizedTupleMembers(ImmutableArray<Symbol>.Empty); 151return ImmutableArray<Symbol>.Empty; 186return ImmutableArray<NamedTypeSymbol>.Empty; 197return ImmutableArray<NamedTypeSymbol>.Empty; 208return ImmutableArray<NamedTypeSymbol>.Empty; 258return ImmutableArray<Location>.Empty; 266return ImmutableArray<SyntaxReference>.Empty; 330return ImmutableArray<TypeParameterSymbol>.Empty; 448return ImmutableArray<NamedTypeSymbol>.Empty; 453return ImmutableArray<NamedTypeSymbol>.Empty; 463return ImmutableArray<NamedTypeSymbol>.Empty; 525return ImmutableArray<string>.Empty;
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (4)
130return ImmutableArray<Location>.Empty; 138return ImmutableArray<SyntaxReference>.Empty; 164return ImmutableArray<TypeWithAnnotations>.Empty; 169return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\EventSymbol.cs (1)
118ImmutableArray<CSharpAttributeData>.Empty :
Symbols\ExtendedErrorTypeSymbol.cs (2)
180return ImmutableArray<Location>.Empty; 199return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (17)
87var refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 287refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 354var mergedParameterTypes = ImmutableArray<TypeWithAnnotations>.Empty; 404var transformedParameterTypes = ImmutableArray<TypeWithAnnotations>.Empty; 479_parameters = ImmutableArray<FunctionPointerParameterSymbol>.Empty; 514=> GetCustomModifierForRefKind(refKind, compilation) is { } modifier ? ImmutableArray.Create(modifier) : ImmutableArray<CustomModifier>.Empty; 540: ImmutableArray<FunctionPointerParameterSymbol>.Empty; 577return ImmutableArray<FunctionPointerParameterSymbol>.Empty; 606var newParamTypes = ImmutableArray<TypeWithAnnotations>.Empty; 645return ImmutableArray<NamedTypeSymbol>.Empty; 651return ImmutableArray<NamedTypeSymbol>.Empty; 820public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty; 824public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => ImmutableArray<MethodSymbol>.Empty; 826public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 827public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 836public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations => ImmutableArray<TypeWithAnnotations>.Empty; 844internal override ImmutableArray<string> GetAppliedConditionalSymbols() => ImmutableArray<string>.Empty;
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (3)
70public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 71public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 89internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => ImmutableArray<int>.Empty;
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (7)
80public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 81public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 92public override ImmutableArray<Symbol> GetMembers() => ImmutableArray<Symbol>.Empty; 93public override ImmutableArray<Symbol> GetMembers(string name) => ImmutableArray<Symbol>.Empty; 94public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => ImmutableArray<NamedTypeSymbol>.Empty; 95public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => ImmutableArray<NamedTypeSymbol>.Empty; 97internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\FunctionTypeSymbol.cs (1)
158internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\MemberSymbolExtensions.cs (5)
42return ImmutableArray<ParameterSymbol>.Empty; 60return ImmutableArray<TypeWithAnnotations>.Empty; 334return ImmutableArray<TypeParameterSymbol>.Empty; 352return ImmutableArray<TypeSymbol>.Empty; 603return ImmutableArray<Symbol>.Empty;
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
360var transformedParameters = ImmutableArray<TypeWithAnnotations>.Empty;
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
180var transformedParameterTypes = ImmutableArray<TypeWithAnnotations>.Empty;
Symbols\Metadata\PE\PEEventSymbol.cs (2)
356return ImmutableArray<SyntaxReference>.Empty; 386return ImmutableArray<EventSymbol>.Empty;
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
526return ImmutableArray<SyntaxReference>.Empty;
Symbols\Metadata\PE\PEMethodSymbol.cs (22)
291/// <see cref="ImmutableArray{T}.Empty"/>. In this case, again, no race has occurred, and the consuming code can simply trust the empty value.</item> 351retVal._lazyCustomAttributes = ImmutableArray<CSharpAttributeData>.Empty; 356retVal._lazyConditionalAttributeSymbols = ImmutableArray<string>.Empty; 366retVal._lazyNotNullMembers = ImmutableArray<string>.Empty; 367retVal._lazyNotNullMembersWhenTrue = ImmutableArray<string>.Empty; 368retVal._lazyNotNullMembersWhenFalse = ImmutableArray<string>.Empty; 697return ImmutableArray<string>.Empty; 702return result.IsDefault ? ImmutableArray<string>.Empty : result; 746return ImmutableArray<string>.Empty; 751return result.IsDefault ? ImmutableArray<string>.Empty : result; 768return ImmutableArray<string>.Empty; 773return result.IsDefault ? ImmutableArray<string>.Empty : result; 843ImmutableArray<TypeParameterSymbol>.Empty); 869@params = ImmutableArray<ParameterSymbol>.Empty; 941return ImmutableArray<TypeParameterSymbol>.Empty; 957return ImmutableArray<TypeParameterSymbol>.Empty; 961public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations => IsGenericMethod ? GetTypeParametersAsTypeArguments() : ImmutableArray<TypeWithAnnotations>.Empty; 989public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 1066return ImmutableArray<CSharpAttributeData>.Empty; 1072? InterlockedOperations.Initialize(ref uncommonFields._lazyCustomAttributes, ImmutableArray<CSharpAttributeData>.Empty) 1541return ImmutableArray<string>.Empty; 1547? InterlockedOperations.Initialize(ref uncommonFields._lazyConditionalAttributeSymbols, ImmutableArray<string>.Empty)
Symbols\Metadata\PE\PEModuleSymbol.cs (2)
290(moduleAssemblyAttributesBuilder != null) ? moduleAssemblyAttributesBuilder.ToImmutableAndFree() : ImmutableArray<CSharpAttributeData>.Empty, 410return ImmutableArray<CSharpAttributeData>.Empty;
Symbols\Metadata\PE\PENamedTypeSymbol.cs (10)
591return ImmutableArray<NamedTypeSymbol>.Empty; 700return ImmutableArray<CSharpAttributeData>.Empty; 1499m = ImmutableArray<Symbol>.Empty; 1512m = ImmutableArray<Symbol>.Empty; 1597return ImmutableArray<NamedTypeSymbol>.Empty; 1617return ImmutableArray<SyntaxReference>.Empty; 1641return ImmutableArray<TypeWithAnnotations>.Empty; 1649return ImmutableArray<TypeParameterSymbol>.Empty; 2376return ImmutableArray<string>.Empty; 2634_lazyTypeParameters = ImmutableArray<TypeParameterSymbol>.Empty;
Symbols\Metadata\PE\PENamespaceSymbol.cs (3)
144return ImmutableArray<Symbol>.Empty; 162: ImmutableArray<NamedTypeSymbol>.Empty; 182return ImmutableArray<SyntaxReference>.Empty;
Symbols\Metadata\PE\PEParameterSymbol.cs (7)
270_lazyCustomAttributes = ImmutableArray<CSharpAttributeData>.Empty; 271_lazyHiddenAttributes = ImmutableArray<CSharpAttributeData>.Empty; 865return ImmutableArray<int>.Empty; 874return ImmutableArray<int>.Empty; 933return ImmutableArray<CustomModifier>.Empty; 1045return ImmutableArray<SyntaxReference>.Empty; 1128ImmutableInterlocked.InterlockedInitialize(ref _lazyHiddenAttributes, ImmutableArray<CSharpAttributeData>.Empty);
Symbols\Metadata\PE\PEPropertySymbol.cs (8)
165/// <see cref="ImmutableArray{T}.Empty"/>. In this case, again, no race has occurred, and the consuming code can simply trust the empty value.</item> 367retVal._lazyCustomAttributes = ImmutableArray<CSharpAttributeData>.Empty; 692get { return ImmutableArray<CustomModifier>.Empty; } 726return ImmutableArray<SyntaxReference>.Empty; 755return ImmutableArray<CSharpAttributeData>.Empty; 762result = ImmutableArray<CSharpAttributeData>.Empty; 793return ImmutableArray<PropertySymbol>.Empty; 893return ImmutableArray<ParameterSymbol>.Empty;
Symbols\Metadata\PE\PETypeParameterSymbol.cs (4)
230declaredConstraintTypes = ImmutableArray<TypeWithAnnotations>.Empty; 443return ImmutableArray<SyntaxReference>.Empty; 619return (bounds != null) ? bounds.ConstraintTypes : ImmutableArray<TypeWithAnnotations>.Empty; 625return (bounds != null) ? bounds.Interfaces : ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
211var parameterTypes = ImmutableArray<TypeWithAnnotations>.Empty;
Symbols\MethodSymbol.cs (5)
104internal virtual ImmutableArray<string> NotNullMembers => ImmutableArray<string>.Empty; 106internal virtual ImmutableArray<string> NotNullWhenTrueMembers => ImmutableArray<string>.Empty; 108internal virtual ImmutableArray<string> NotNullWhenFalseMembers => ImmutableArray<string>.Empty; 396return ImmutableArray<CSharpAttributeData>.Empty; 925internal virtual ImmutableArray<NamedTypeSymbol> UnmanagedCallingConventionTypes => ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\MissingAssemblySymbol.cs (3)
120return ImmutableArray<Location>.Empty; 131return ImmutableArray<AssemblySymbol>.Empty; 141return ImmutableArray<AssemblySymbol>.Empty;
Symbols\MissingModuleSymbol.cs (3)
126return ImmutableArray<Location>.Empty; 155return ImmutableArray<AssemblyIdentity>.Empty; 160return ImmutableArray<AssemblySymbol>.Empty;
Symbols\MissingNamespaceSymbol.cs (7)
98return ImmutableArray<Location>.Empty; 106return ImmutableArray<SyntaxReference>.Empty; 112return ImmutableArray<NamedTypeSymbol>.Empty; 117return ImmutableArray<NamedTypeSymbol>.Empty; 122return ImmutableArray<NamedTypeSymbol>.Empty; 127return ImmutableArray<Symbol>.Empty; 132return ImmutableArray<Symbol>.Empty;
Symbols\ModuleSymbol.cs (1)
192return ImmutableArray<SyntaxReference>.Empty;
Symbols\NamedTypeSymbol.cs (4)
263: ImmutableArray<Symbol>.Empty; 266: ImmutableArray<Symbol>.Empty; 270return ImmutableArray<MethodSymbol>.Empty; 307return ImmutableArray<PropertySymbol>.Empty;
Symbols\NativeIntegerTypeSymbol.cs (10)
38public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty; 44internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics => ImmutableArray<TypeWithAnnotations>.Empty; 142public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => ImmutableArray<NamedTypeSymbol>.Empty; 144public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => ImmutableArray<NamedTypeSymbol>.Empty; 146public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) => ImmutableArray<NamedTypeSymbol>.Empty; 349public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations => ImmutableArray<TypeWithAnnotations>.Empty; 351public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty; 366public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => ImmutableArray<MethodSymbol>.Empty; 474public override ImmutableArray<ParameterSymbol> Parameters => ImmutableArray<ParameterSymbol>.Empty; 480public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations => ImmutableArray<PropertySymbol>.Empty;
Symbols\NonMissingModuleSymbol.cs (2)
120ImmutableArray<Location>.Empty); 138ImmutableArray<Location>.Empty);
Symbols\OverriddenOrHiddenMembersHelpers.cs (8)
138ImmutableArray<Symbol> hiddenMembers = hiddenBuilder == null ? ImmutableArray<Symbol>.Empty : hiddenBuilder.ToImmutableAndFree(); 283ImmutableArray<Symbol> overriddenAccessors = ImmutableArray<Symbol>.Empty; 291ImmutableArray<Symbol> hiddenMembers = hiddenBuilder == null ? ImmutableArray<Symbol>.Empty : hiddenBuilder.ToImmutableAndFree(); 373ImmutableArray<Symbol> overriddenAccessors = ImmutableArray<Symbol>.Empty; 383ImmutableArray<Symbol> hiddenMembers = hiddenBuilder == null ? ImmutableArray<Symbol>.Empty : hiddenBuilder.ToImmutableAndFree(); 492ImmutableArray<Symbol> overriddenMembers = ImmutableArray<Symbol>.Empty; 508ImmutableArray<Symbol> hiddenMembers = hiddenBuilder == null ? ImmutableArray<Symbol>.Empty : hiddenBuilder.ToImmutableAndFree(); 712overriddenMembers = ImmutableArray<Symbol>.Empty;
Symbols\OverriddenOrHiddenMembersResult.cs (2)
23ImmutableArray<Symbol>.Empty, 24ImmutableArray<Symbol>.Empty);
Symbols\ParameterSignature.cs (1)
22new ParameterSignature(ImmutableArray<TypeWithAnnotations>.Empty, default(ImmutableArray<RefKind>));
Symbols\PointerTypeSymbol.cs (8)
90return ImmutableArray<NamedTypeSymbol>.Empty; 134return ImmutableArray<Symbol>.Empty; 139return ImmutableArray<Symbol>.Empty; 144return ImmutableArray<NamedTypeSymbol>.Empty; 149return ImmutableArray<NamedTypeSymbol>.Empty; 154return ImmutableArray<NamedTypeSymbol>.Empty; 185return ImmutableArray<Location>.Empty; 193return ImmutableArray<SyntaxReference>.Empty;
Symbols\PropertySymbol.cs (3)
62internal virtual ImmutableArray<string> NotNullMembers => ImmutableArray<string>.Empty; 64internal virtual ImmutableArray<string> NotNullWhenTrueMembers => ImmutableArray<string>.Empty; 66internal virtual ImmutableArray<string> NotNullWhenFalseMembers => ImmutableArray<string>.Empty;
Symbols\PublicModel\PreprocessingSymbol.cs (3)
60ImmutableArray<Location> ISymbol.Locations => ImmutableArray<Location>.Empty; 62ImmutableArray<SyntaxReference> ISymbol.DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 64ImmutableArray<AttributeData> ISymbol.GetAttributes() => ImmutableArray<AttributeData>.Empty;
Symbols\RangeVariableSymbol.cs (2)
49=> _location is null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(_location); 59return ImmutableArray<SyntaxReference>.Empty;
Symbols\ReducedExtensionMethodSymbol.cs (2)
543get { return ImmutableArray<MethodSymbol>.Empty; } 564return ImmutableArray<ParameterSymbol>.Empty;
Symbols\ReferenceManager.cs (1)
149return ImmutableArray<AssemblySymbol>.Empty;
Symbols\Retargeting\RetargetingMethodSymbol.cs (3)
101_lazyTypeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 124return ImmutableArray<TypeWithAnnotations>.Empty; 171return ImmutableArray<ParameterSymbol>.Empty;
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
71_lazyTypeParameters = ImmutableArray<TypeParameterSymbol>.Empty;
Symbols\Retargeting\RetargetingPropertySymbol.cs (1)
108return ImmutableArray<ParameterSymbol>.Empty;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (3)
766var newParameterTypes = ImmutableArray<TypeWithAnnotations>.Empty; 1027ImmutableArray<MethodSymbol>.Empty); 1093ImmutableArray<PropertySymbol>.Empty);
Symbols\Source\CrefTypeParameterSymbol.cs (2)
199return ImmutableArray<TypeWithAnnotations>.Empty; 204return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\Source\CustomModifierUtils.cs (2)
43destinationMethod.RefKind != RefKind.None ? constructedSourceMethod.RefCustomModifiers : ImmutableArray<CustomModifier>.Empty; 146destinationParameter.RefKind != RefKind.None ? sourceParameter.RefCustomModifiers : ImmutableArray<CustomModifier>.Empty,
Symbols\Source\ImplicitNamedTypeSymbol.cs (6)
37return ImmutableArray<CSharpAttributeData>.Empty; 73return ImmutableArray<NamedTypeSymbol>.Empty; 78return ImmutableArray<NamedTypeSymbol>.Empty; 88get { return ImmutableArray<TypeParameterSymbol>.Empty; } 93get { return ImmutableArray<TypeWithAnnotations>.Empty; } 164return ImmutableArray<string>.Empty;
Symbols\Source\IndexedTypeParameterSymbol.cs (4)
196return ImmutableArray<Location>.Empty; 204return ImmutableArray<SyntaxReference>.Empty; 214return ImmutableArray<TypeWithAnnotations>.Empty; 219return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\Source\LambdaParameterSymbol.cs (1)
41get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\Source\LambdaSymbol.cs (6)
169get { return ImmutableArray<CustomModifier>.Empty; } 179get { return ImmutableArray<MethodSymbol>.Empty; } 189get { return ImmutableArray<TypeWithAnnotations>.Empty; } 194get { return ImmutableArray<TypeParameterSymbol>.Empty; } 427public override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() => ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 429public override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() => ImmutableArray<TypeParameterConstraintKind>.Empty;
Symbols\Source\LocalFunctionSymbol.cs (3)
71_typeParameters = ImmutableArray<SourceMethodTypeParameterSymbol>.Empty; 335public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => ImmutableArray<MethodSymbol>.Empty; 343public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Source\ParameterHelpers.cs (2)
95_ => ImmutableArray<CustomModifier>.Empty 994return ImmutableArray<CustomModifier>.Empty;
Symbols\Source\SourceAssemblySymbol.cs (3)
1304netModuleNames = ImmutableArray<string>.Empty; 1305return ImmutableArray<CSharpAttributeData>.Empty; 1995ImmutableArray<TypedConstant>.Empty,
Symbols\Source\SourceClonedParameterSymbol.cs (1)
43return ImmutableArray<SyntaxReference>.Empty;
Symbols\Source\SourceComplexParameterSymbol.cs (2)
346ImmutableArray<LocalSymbol>.Empty, 1715public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Source\SourceConstructorSymbolBase.cs (3)
134get { return ImmutableArray<TypeParameterSymbol>.Empty; } 138=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 141=> ImmutableArray<TypeParameterConstraintKind>.Empty;
Symbols\Source\SourceCustomEventSymbol.cs (1)
169ImmutableArray<EventSymbol>.Empty :
Symbols\Source\SourceDelegateMethodSymbol.cs (4)
148return ImmutableArray<TypeParameterSymbol>.Empty; 153=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 156=> ImmutableArray<TypeParameterConstraintKind>.Empty; 287_refCustomModifiers = ImmutableArray<CustomModifier>.Empty;
Symbols\Source\SourceDestructorSymbol.cs (4)
106get { return ImmutableArray<ParameterSymbol>.Empty; } 111get { return ImmutableArray<TypeParameterSymbol>.Empty; } 115=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 118=> ImmutableArray<TypeParameterConstraintKind>.Empty;
Symbols\Source\SourceEventAccessorSymbol.cs (6)
56explicitInterfaceImplementations = ImmutableArray<MethodSymbol>.Empty; 64explicitInterfaceImplementations = (object)implementedAccessor == null ? ImmutableArray<MethodSymbol>.Empty : ImmutableArray.Create<MethodSymbol>(implementedAccessor); 174return ImmutableArray<CustomModifier>.Empty; // Same as base, but this is clear and explicit. 188get { return ImmutableArray<TypeParameterSymbol>.Empty; } 192=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 195=> ImmutableArray<TypeParameterConstraintKind>.Empty;
Symbols\Source\SourceFieldLikeEventSymbol.cs (1)
174get { return ImmutableArray<EventSymbol>.Empty; }
Symbols\Source\SourceFieldSymbol.cs (2)
84return ImmutableArray<CustomModifier>.Empty; 96public sealed override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Source\SourceFixedFieldSymbol.cs (2)
156: base(GeneratedNames.MakeFixedFieldImplementationName(field.Name), typeParameters: ImmutableArray<TypeParameterSymbol>.Empty, typeMap: TypeMap.Empty) 228ImmutableArray<Symbol>.Empty;
Symbols\Source\SourceLabelSymbol.cs (2)
82? ImmutableArray<Location>.Empty 103return node == null ? ImmutableArray<SyntaxReference>.Empty : ImmutableArray.Create<SyntaxReference>(node.GetReference());
Symbols\Source\SourceMemberContainerSymbol.cs (41)
815ImmutableInterlocked.InterlockedInitialize(ref _managedKindUseSiteDiagnostics, managedKindUseSiteInfo.Diagnostics?.ToImmutableArray() ?? ImmutableArray<DiagnosticInfo>.Empty); 816ImmutableInterlocked.InterlockedInitialize(ref _managedKindUseSiteDependencies, managedKindUseSiteInfo.Dependencies?.ToImmutableArray() ?? ImmutableArray<AssemblySymbol>.Empty); 1292return ImmutableArray<NamedTypeSymbol>.Empty; 1487return ImmutableArray<Symbol>.Empty; 1505return ImmutableArray<Symbol>.Empty; 1563return GetEarlyAttributeDecodingMembersDictionary().TryGetValue(name.AsMemory(), out result) ? result : ImmutableArray<Symbol>.Empty; 3177return ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>>.Empty; 3314return ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol>.Empty; 3338return ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol>.Empty; 4303ImmutableArray<TypeParameterSymbol>.Empty, 4305ImmutableArray<CustomModifier>.Empty, 4314ImmutableArray<CustomModifier>.Empty, 4315ImmutableArray<MethodSymbol>.Empty); 4350ImmutableArray<TypeParameterSymbol>.Empty, 4353ImmutableArray<CustomModifier>.Empty, 4362ImmutableArray<CustomModifier>.Empty, 4363ImmutableArray<MethodSymbol>.Empty); 4399ImmutableArray<TypeParameterSymbol>.Empty, 4402ImmutableArray<CustomModifier>.Empty, 4410refCustomModifiers: ImmutableArray<CustomModifier>.Empty, 4411explicitInterfaceImplementations: ImmutableArray<MethodSymbol>.Empty); 4459ImmutableArray<TypeParameterSymbol>.Empty, 4460ImmutableArray<ParameterSymbol>.Empty, 4465refCustomModifiers: ImmutableArray<CustomModifier>.Empty, 4466explicitInterfaceImplementations: ImmutableArray<MethodSymbol>.Empty); 4539ImmutableArray<ParameterSymbol>.Empty, 4542ImmutableArray<CustomModifier>.Empty, 4544ImmutableArray<PropertySymbol>.Empty); 4633ImmutableArray<TypeParameterSymbol>.Empty, 4634ImmutableArray<ParameterSymbol>.Empty, 4639ImmutableArray<CustomModifier>.Empty, 4640ImmutableArray<MethodSymbol>.Empty); 4665ImmutableArray<ParameterSymbol>.Empty, 4668ImmutableArray<CustomModifier>.Empty, 4670ImmutableArray<PropertySymbol>.Empty); 4726ImmutableArray<TypeParameterSymbol>.Empty, 4729ImmutableArray<CustomModifier>.Empty, 4738ImmutableArray<CustomModifier>.Empty, 4739ImmutableArray<MethodSymbol>.Empty); 5440public static readonly SynthesizedExplicitImplementations Empty = new SynthesizedExplicitImplementations(ImmutableArray<SynthesizedExplicitImplementationForwardingMethod>.Empty, 5441ImmutableArray<(MethodSymbol Body, MethodSymbol Implemented)>.Empty);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
229var info = new CSDiagnosticInfo(ErrorCode.ERR_MixingWinRTEventWithRegular, args, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<Location>(this.GetFirstLocation()));
Symbols\Source\SourceMemberMethodSymbol.cs (2)
794return ImmutableArray<CustomModifier>.Empty; 832return ImmutableArray<MethodSymbol>.Empty;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (5)
105return (this.syntaxReferenceOpt == null) ? ImmutableArray<SyntaxReference>.Empty : ImmutableArray.Create(this.syntaxReferenceOpt); 507return data != null ? data.ConditionalSymbols : ImmutableArray<string>.Empty; 665GetDecodedWellKnownAttributeData()?.NotNullMembers ?? ImmutableArray<string>.Empty; 668GetDecodedWellKnownAttributeData()?.NotNullWhenTrueMembers ?? ImmutableArray<string>.Empty; 671GetDecodedWellKnownAttributeData()?.NotNullWhenFalseMembers ?? ImmutableArray<string>.Empty;
Symbols\Source\SourceNamedTypeSymbol.cs (7)
142return ImmutableArray<TypeParameterSymbol>.Empty; 268return (constraintTypes.Length > 0) ? constraintTypes[ordinal] : ImmutableArray<TypeWithAnnotations>.Empty; 316var results = ImmutableArray<TypeParameterConstraintClause>.Empty; 372results = ImmutableArray<TypeParameterConstraintClause>.Empty; 397var results = ImmutableArray<TypeParameterConstraintClause>.Empty; 455results = ImmutableArray<TypeParameterConstraintClause>.Empty; 1560return data != null ? data.ConditionalSymbols : ImmutableArray<string>.Empty;
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (3)
72return ImmutableArray<NamedTypeSymbol>.Empty; 285return new Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>>(null, ImmutableArray<NamedTypeSymbol>.Empty); 665return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (14)
122return ImmutableArray<AliasAndExternAliasDirective>.Empty; 132return ImmutableArray<AliasAndExternAliasDirective>.Empty; 153return ImmutableArray<AliasAndUsingDirective>.Empty; 163return ImmutableArray<AliasAndUsingDirective>.Empty; 227return ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty; 625var globalUsingNamespacesOrTypes = ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty; 626var globalUsingAliases = ImmutableArray<AliasAndUsingDirective>.Empty; 1086public static readonly ExternAliasesAndDiagnostics Empty = new ExternAliasesAndDiagnostics() { ExternAliases = ImmutableArray<AliasAndExternAliasDirective>.Empty, Diagnostics = ImmutableArray<Diagnostic>.Empty }; 1097UsingAliases = ImmutableArray<AliasAndUsingDirective>.Empty, 1099UsingNamespacesOrTypes = ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty, 1123UsingNamespacesOrTypes = ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty, 1124Diagnostics = ImmutableArray<Diagnostic>.Empty, 1141ImmutableArray<AliasAndExternAliasDirective>.Empty),
Symbols\Source\SourceNamespaceSymbol.cs (2)
176: ImmutableArray<Symbol>.Empty; 200: ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (3)
85_lazyRefCustomModifiers = ImmutableArray<CustomModifier>.Empty; 95_lazyExplicitInterfaceImplementations = ImmutableArray<MethodSymbol>.Empty; 144_lazyExplicitInterfaceImplementations = ImmutableArray<MethodSymbol>.Empty;
Symbols\Source\SourceOrdinaryMethodSymbol.cs (4)
939=> ImmutableArray<TypeParameterSymbol>.Empty; 942=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 945=> ImmutableArray<TypeParameterConstraintKind>.Empty; 1095return ImmutableArray<TypeParameterSymbol>.Empty;
Symbols\Source\SourceParameterSymbol.cs (2)
265=> _location is null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(_location); 279ImmutableArray<SyntaxReference>.Empty :
Symbols\Source\SourcePropertyAccessorSymbol.cs (7)
265_lazyRefCustomModifiers = ImmutableArray<CustomModifier>.Empty; 336get { return ImmutableArray<TypeParameterSymbol>.Empty; } 340=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 343=> ImmutableArray<TypeParameterConstraintKind>.Empty; 613explicitInterfaceImplementations = ImmutableArray<MethodSymbol>.Empty; 622? ImmutableArray<MethodSymbol>.Empty 768return ImmutableArray<ParameterSymbol>.Empty;
Symbols\Source\SourcePropertySymbol.cs (1)
604return ImmutableArray<ParameterSymbol>.Empty;
Symbols\Source\SourcePropertySymbolBase.cs (7)
120_lazyExplicitInterfaceImplementations = ImmutableArray<PropertySymbol>.Empty; 204_lazyRefCustomModifiers = ImmutableArray<CustomModifier>.Empty; 249_lazyRefCustomModifiers = _refKind != RefKind.None ? overriddenOrImplementedProperty.RefCustomModifiers : ImmutableArray<CustomModifier>.Empty; 278ImmutableArray<PropertySymbol>.Empty : 287GetDecodedWellKnownAttributeData()?.NotNullMembers ?? ImmutableArray<string>.Empty; 290GetDecodedWellKnownAttributeData()?.NotNullWhenTrueMembers ?? ImmutableArray<string>.Empty; 293GetDecodedWellKnownAttributeData()?.NotNullWhenFalseMembers ?? ImmutableArray<string>.Empty;
Symbols\Source\SourceSimpleParameterSymbol.cs (2)
80get { return ImmutableArray<CustomModifier>.Empty; } 123internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => ImmutableArray<int>.Empty;
Symbols\Source\SourceTypeParameterSymbol.cs (3)
95return (bounds != null) ? bounds.ConstraintTypes : ImmutableArray<TypeWithAnnotations>.Empty; 101return (bounds != null) ? bounds.Interfaces : ImmutableArray<NamedTypeSymbol>.Empty; 733var constraintTypes = constraints.IsEmpty ? ImmutableArray<TypeWithAnnotations>.Empty : constraints[Ordinal];
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (3)
779get { return ImmutableArray<TypeParameterSymbol>.Empty; } 783=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 786=> ImmutableArray<TypeParameterConstraintKind>.Empty;
Symbols\Source\ThisParameterSymbol.cs (4)
20get { return ImmutableArray<SyntaxReference>.Empty; } 90get { return ImmutableArray<CustomModifier>.Empty; } 119internal sealed override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => ImmutableArray<int>.Empty; 168get { return _containingMethod is not null ? _containingMethod.Locations : ImmutableArray<Location>.Empty; }
Symbols\Source\TypeParameterConstraintClause.cs (2)
76ImmutableArray<TypeWithAnnotations>.Empty); 80ImmutableArray<TypeWithAnnotations>.Empty);
Symbols\Source\TypeParameterInfo.cs (3)
32LazyTypeParameters = ImmutableArray<TypeParameterSymbol>.Empty, 33LazyTypeParameterConstraintTypes = ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty, 34LazyTypeParameterConstraintKinds = ImmutableArray<TypeParameterConstraintKind>.Empty,
Symbols\SubstitutedMethodSymbol.cs (2)
273return ImmutableArray<MethodSymbol>.Empty; 339return ImmutableArray<ParameterSymbol>.Empty;
Symbols\SubstitutedNamedTypeSymbol.cs (2)
152return _unbound ? ImmutableArray<NamedTypeSymbol>.Empty : Map.SubstituteNamedTypes(OriginalDefinition.GetDeclaredInterfaces(basesBeingResolved)); 177return _unbound ? ImmutableArray<NamedTypeSymbol>.Empty : Map.SubstituteNamedTypes(OriginalDefinition.InterfacesNoUseSiteDiagnostics(basesBeingResolved));
Symbols\Symbol.cs (1)
499return ImmutableArray<SyntaxReference>.Empty;
Symbols\Symbol_Attributes.cs (4)
35return ImmutableArray<CSharpAttributeData>.Empty; 393boundAttributes = ImmutableArray<CSharpAttributeData>.Empty; 658binders = ImmutableArray<Binder>.Empty; 659return ImmutableArray<AttributeSyntax>.Empty;
Symbols\SymbolExtensions.cs (4)
496refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 514refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 520refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 531refCustomModifiers = ImmutableArray<CustomModifier>.Empty;
Symbols\Synthesized\GeneratedLabelSymbol.cs (1)
51return ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (7)
122public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty; 150public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 152public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 204public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => ImmutableArray<NamedTypeSymbol>.Empty; 206public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) => ImmutableArray<NamedTypeSymbol>.Empty; 208public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => ImmutableArray<NamedTypeSymbol>.Empty; 214internal override ImmutableArray<string> GetAppliedConditionalSymbols() => ImmutableArray<string>.Empty;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
37public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (2)
59internal override ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress) => ImmutableArray<TypeWithAnnotations>.Empty; 65internal override ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeParameterSymbol> inProgress) => ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (4)
827public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 829public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 884: ImmutableArray<NamedTypeSymbol>.Empty; 896internal override ImmutableArray<string> GetAppliedConditionalSymbols() => ImmutableArray<string>.Empty;
Symbols\Synthesized\Records\SynthesizedPrimaryConstructorParameterBackingFieldSymbol.cs (1)
47public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
101Parameters: ImmutableArray<ParameterSymbol>.Empty);
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (3)
52public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 83ImmutableArray<ParameterSymbol>.Empty); 167public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
35Parameters: ImmutableArray<ParameterSymbol>.Empty);
Symbols\Synthesized\Records\SynthesizedRecordOrdinaryMethod.cs (3)
51public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty; 53public sealed override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() => ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 55public sealed override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() => ImmutableArray<TypeParameterConstraintKind>.Empty;
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
96ImmutableArray<ParameterSymbol>.Empty);
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
44Parameters: ImmutableArray<ParameterSymbol>.Empty);
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (1)
59return ImmutableArray<CustomModifier>.Empty; // since RefKind is always None.
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
64=> ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedContainer.cs (10)
33_typeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 86public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 88public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 118return (object)constructor == null ? ImmutableArray<Symbol>.Empty : ImmutableArray.Create(constructor); 124return ((object)ctor != null && name == ctor.Name) ? ImmutableArray.Create<Symbol>(ctor) : ImmutableArray<Symbol>.Empty; 144public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => ImmutableArray<NamedTypeSymbol>.Empty; 146public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => ImmutableArray<NamedTypeSymbol>.Empty; 148public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) => ImmutableArray<NamedTypeSymbol>.Empty; 158internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved) => ImmutableArray<NamedTypeSymbol>.Empty; 189internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() => ImmutableArray<string>.Empty;
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (6)
173get { return ImmutableArray<TypeWithAnnotations>.Empty; } 178get { return ImmutableArray<TypeParameterSymbol>.Empty; } 185get { return ImmutableArray<MethodSymbol>.Empty; } 190get { return ImmutableArray<CustomModifier>.Empty; } 200return ImmutableArray<string>.Empty; 220get { return ImmutableArray<Location>.Empty; }
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (13)
56public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty; 84public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 86public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 98internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics => ImmutableArray<TypeWithAnnotations>.Empty; 143public override ImmutableArray<Symbol> GetMembers(string name) => name == WellKnownMemberNames.InstanceConstructorName ? Constructors.CastArray<Symbol>() : ImmutableArray<Symbol>.Empty; 145public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => ImmutableArray<NamedTypeSymbol>.Empty; 147public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => ImmutableArray<NamedTypeSymbol>.Empty; 149public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) => ImmutableArray<NamedTypeSymbol>.Empty; 151internal override ImmutableArray<string> GetAppliedConditionalSymbols() => ImmutableArray<string>.Empty; 157internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) => ImmutableArray<NamedTypeSymbol>.Empty; 165internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => ImmutableArray<NamedTypeSymbol>.Empty; 169internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved = null) => ImmutableArray<NamedTypeSymbol>.Empty; 241_constructors = ImmutableArray.Create<MethodSymbol>(new SynthesizedEmbeddedAttributeConstructorSymbol(this, m => ImmutableArray<ParameterSymbol>.Empty));
Symbols\Synthesized\SynthesizedEmbeddedLifetimeAnnotationAttributeSymbol.cs (1)
24getParameters: m => ImmutableArray<ParameterSymbol>.Empty,
Symbols\Synthesized\SynthesizedEmbeddedNativeIntegerAttributeSymbol.cs (1)
49m => ImmutableArray<ParameterSymbol>.Empty,
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (13)
94get { return ImmutableArray<TypeParameterSymbol>.Empty; } 104get { return ImmutableArray<Location>.Empty; } 111return ImmutableArray<SyntaxReference>.Empty; 122get { return ImmutableArray<CustomModifier>.Empty; } 127get { return ImmutableArray<TypeWithAnnotations>.Empty; } 220get { return ImmutableArray<MethodSymbol>.Empty; } 277return ImmutableArray<string>.Empty; 298ImmutableArray<BoundExpression>.Empty, 402locals: ImmutableArray<LocalSymbol>.Empty, 425locals: ImmutableArray<LocalSymbol>.Empty, 456public override ImmutableArray<ParameterSymbol> Parameters => ImmutableArray<ParameterSymbol>.Empty; 496locals: ImmutableArray<LocalSymbol>.Empty, 497statements: ImmutableArray<BoundStatement>.Empty,
Symbols\Synthesized\SynthesizedEnumValueFieldSymbol.cs (1)
31public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Synthesized\SynthesizedFieldSymbol.cs (1)
38public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (2)
160get { return ImmutableArray<Location>.Empty; } 167return ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (9)
43_typeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 150return ImmutableArray<string>.Empty; 165return ImmutableArray<TypeParameterSymbol>.Empty; 179return ImmutableArray<ParameterSymbol>.Empty; 193get { return ImmutableArray<Location>.Empty; } 200return ImmutableArray<SyntaxReference>.Empty; 221get { return ImmutableArray<CustomModifier>.Empty; } 226get { return ImmutableArray<TypeWithAnnotations>.Empty; } 332get { return ImmutableArray<MethodSymbol>.Empty; }
Symbols\Synthesized\SynthesizedImplementationMethod.cs (2)
163get { return ImmutableArray<Location>.Empty; } 266return ImmutableArray<string>.Empty;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (14)
75public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 77public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 135public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => ImmutableArray<NamedTypeSymbol>.Empty; 137public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) => ImmutableArray<NamedTypeSymbol>.Empty; 139public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => ImmutableArray<NamedTypeSymbol>.Empty; 145internal override ImmutableArray<string> GetAppliedConditionalSymbols() => ImmutableArray<string>.Empty; 151internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) => ImmutableArray<NamedTypeSymbol>.Empty; 159internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => ImmutableArray<NamedTypeSymbol>.Empty; 184internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => ImmutableArray<NamedTypeSymbol>.Empty; 201namedArguments: ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty)); 239public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 241public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 251internal override ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress) => ImmutableArray<TypeWithAnnotations>.Empty; 257internal override ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeParameterSymbol> inProgress) => ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (6)
37get { return ImmutableArray<ParameterSymbol>.Empty; } 124return ImmutableArray<string>.Empty; 134get { return ImmutableArray<TypeParameterSymbol>.Empty; } 165get { return ImmutableArray<CustomModifier>.Empty; } 170get { return ImmutableArray<TypeWithAnnotations>.Empty; } 265get { return ImmutableArray<MethodSymbol>.Empty; }
Symbols\Synthesized\SynthesizedInstanceMethodSymbol.cs (1)
25return ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (6)
66get { return ImmutableArray<MethodSymbol>.Empty; } 136get { return ImmutableArray<ParameterSymbol>.Empty; } 155get { return ImmutableArray<CustomModifier>.Empty; } 160get { return ImmutableArray<TypeWithAnnotations>.Empty; } 165get { return ImmutableArray<TypeParameterSymbol>.Empty; } 215return ImmutableArray<string>.Empty;
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (8)
242return ImmutableArray<TypeWithAnnotations>.Empty; 250return ImmutableArray<TypeParameterSymbol>.Empty; 266return ImmutableArray<MethodSymbol>.Empty; 279return ImmutableArray<CustomModifier>.Empty; 293return ImmutableArray<string>.Empty; 332return ImmutableArray<Location>.Empty; 340return ImmutableArray<SyntaxReference>.Empty; 500get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\Synthesized\SynthesizedLambdaCacheFieldSymbol.cs (1)
38public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
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\SynthesizedParameterlessThrowMethod.cs (2)
21this.SetParameters(ImmutableArray<ParameterSymbol>.Empty); 33var body = F.Throw(F.New(_exceptionConstructor, ImmutableArray<BoundExpression>.Empty));
Symbols\Synthesized\SynthesizedParameterSymbol.cs (5)
137get { return ImmutableArray<Location>.Empty; } 144return ImmutableArray<SyntaxReference>.Empty; 223internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => ImmutableArray<int>.Empty; 323get { return ImmutableArray<CustomModifier>.Empty; } 376return _baseParameterForAttributes?.GetAttributes() ?? ImmutableArray<CSharpAttributeData>.Empty;
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (15)
40public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty; 64public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 66public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 74internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics => ImmutableArray<TypeWithAnnotations>.Empty; 114public override ImmutableArray<Symbol> GetMembers() => ImmutableArray<Symbol>.Empty; 116public override ImmutableArray<Symbol> GetMembers(string name) => ImmutableArray<Symbol>.Empty; 118public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => ImmutableArray<NamedTypeSymbol>.Empty; 120public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) => ImmutableArray<NamedTypeSymbol>.Empty; 122public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => ImmutableArray<NamedTypeSymbol>.Empty; 134internal override ImmutableArray<string> GetAppliedConditionalSymbols() => ImmutableArray<string>.Empty; 143internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) => ImmutableArray<NamedTypeSymbol>.Empty; 145internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => ImmutableArray<Symbol>.Empty; 147internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => ImmutableArray<Symbol>.Empty; 157internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => ImmutableArray<NamedTypeSymbol>.Empty; 182internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (5)
60return ImmutableArray<Location>.Empty; 205return ImmutableArray<TypeWithAnnotations>.Empty; 213return ImmutableArray<TypeParameterSymbol>.Empty; 234return ImmutableArray<MethodSymbol>.Empty; 358return ImmutableArray<string>.Empty;
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (4)
135return ImmutableArray<TypeParameterSymbol>.Empty; 173return ImmutableArray<CustomModifier>.Empty; 203=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 206=> ImmutableArray<TypeParameterConstraintKind>.Empty;
Symbols\Synthesized\SynthesizedStaticConstructor.cs (7)
68return ImmutableArray<TypeParameterSymbol>.Empty; 84return ImmutableArray<ParameterSymbol>.Empty; 123return ImmutableArray<SyntaxReference>.Empty; 153return ImmutableArray<CustomModifier>.Empty; 161return ImmutableArray<TypeWithAnnotations>.Empty; 287return ImmutableArray<MethodSymbol>.Empty; 372return ImmutableArray<string>.Empty;
Symbols\Synthesized\SynthesizedSubstitutedTypeParameterSymbol.cs (1)
52return ImmutableArray<CSharpAttributeData>.Empty;
Symbols\SynthesizedNamespaceSymbol.cs (7)
62=> ImmutableArray<Location>.Empty; 65=> ImmutableArray<SyntaxReference>.Empty; 68=> ImmutableArray<NamedTypeSymbol>.Empty; 71=> ImmutableArray<NamedTypeSymbol>.Empty; 74=> ImmutableArray<NamedTypeSymbol>.Empty; 77=> ImmutableArray<Symbol>.Empty; 80=> ImmutableArray<Symbol>.Empty;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
112return ImmutableArray<TypeWithAnnotations>.Empty;
Symbols\Tuples\TupleErrorFieldSymbol.cs (3)
52_locations = location == null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(location); 128ImmutableArray<SyntaxReference>.Empty : 159public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Tuples\TupleFieldSymbol.cs (1)
188ImmutableArray<SyntaxReference>.Empty :
Symbols\Tuples\TupleTypeSymbol.cs (4)
61var locations = locationOpt is null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(locationOpt); 846return ImmutableArray<Location>.Empty; 850return elementLocation == null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(elementLocation); 927Locations = ImmutableArray<Location>.Empty;
Symbols\TypeMap.cs (1)
107newTypeParameters = ImmutableArray<TypeParameterSymbol>.Empty;
Symbols\TypeParameterSymbol.cs (7)
145return ImmutableArray<Symbol>.Empty; 151return ImmutableArray<Symbol>.Empty; 157return ImmutableArray<NamedTypeSymbol>.Empty; 163return ImmutableArray<NamedTypeSymbol>.Empty; 169return ImmutableArray<NamedTypeSymbol>.Empty; 244return ImmutableArray<NamedTypeSymbol>.Empty; 249return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\TypeSymbol.cs (1)
322return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\TypeSymbolExtensions.cs (2)
430return ImmutableArray<NamedTypeSymbol>.Empty; 2047var paramTypes = ImmutableArray<TypeWithAnnotations>.Empty;
Symbols\TypeWithAnnotations.cs (2)
840internal static readonly Extensions Default = new NonLazyType(customModifiers: ImmutableArray<CustomModifier>.Empty); 1110internal override ImmutableArray<CustomModifier> CustomModifiers => ImmutableArray<CustomModifier>.Empty;
Utilities\ValueSetFactory.NumericValueSet.cs (1)
29public static NumericValueSet<T> NoValues(INumericTC<T> tc) => new NumericValueSet<T>(ImmutableArray<(T first, T last)>.Empty, tc);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
773var paramContent = ImmutableArray<XmlNodeSyntax>.Empty;
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
1070: ImmutableArray<IOperation>.Empty))
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (8)
CommandLineTests.cs (8)
566AssertEx.Equal(ImmutableArray<string>.Empty, parser.ReferencePaths); 4000Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray<InstrumentationKind>.Empty)); 4006Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray<InstrumentationKind>.Empty)); 4012Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray<InstrumentationKind>.Empty)); 4018Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray<InstrumentationKind>.Empty)); 4024Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray<InstrumentationKind>.Empty)); 4029Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray<InstrumentationKind>.Empty)); 4034Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray<InstrumentationKind>.Empty));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (72)
CodeActions\AddUsing\AddUsingNuGetTests.cs (18)
58installerServiceMock.Setup(i => i.GetInstalledVersions("NuGetPackage")).Returns(ImmutableArray<string>.Empty); 65.Returns(() => ValueTaskFactory.FromResult(ImmutableArray<ReferenceAssemblyResult>.Empty)); 95installerServiceMock.Setup(i => i.GetInstalledVersions("NuGetPackage")).Returns(ImmutableArray<string>.Empty); 102.Returns(() => ValueTaskFactory.FromResult(ImmutableArray<ReferenceAssemblyResult>.Empty)); 130installerServiceMock.Setup(i => i.GetInstalledVersions("NuGetPackage")).Returns(ImmutableArray<string>.Empty); 137.Returns(() => ValueTaskFactory.FromResult(ImmutableArray<ReferenceAssemblyResult>.Empty)); 165installerServiceMock.Setup(i => i.GetInstalledVersions("NuGetPackage")).Returns(ImmutableArray<string>.Empty); 172.Returns(() => ValueTaskFactory.FromResult(ImmutableArray<ReferenceAssemblyResult>.Empty)); 205.Returns(() => ValueTaskFactory.FromResult(ImmutableArray<ReferenceAssemblyResult>.Empty)); 225installerServiceMock.Setup(i => i.GetProjectsWithInstalledPackage(It.IsAny<Solution>(), "NuGetPackage", "1.0")).Returns(ImmutableArray<Project>.Empty); 226installerServiceMock.Setup(i => i.GetProjectsWithInstalledPackage(It.IsAny<Solution>(), "NuGetPackage", "2.0")).Returns(ImmutableArray<Project>.Empty); 233.Returns(() => ValueTaskFactory.FromResult(ImmutableArray<ReferenceAssemblyResult>.Empty)); 276installerServiceMock.Setup(i => i.GetInstalledVersions("NuGetPackage")).Returns(ImmutableArray<string>.Empty); 283.Returns(() => ValueTaskFactory.FromResult(ImmutableArray<ReferenceAssemblyResult>.Empty)); 312installerServiceMock.Setup(i => i.GetProjectsWithInstalledPackage(It.IsAny<Solution>(), "NuGetPackage", "1.0")).Returns(ImmutableArray<Project>.Empty); 321.Returns(() => ValueTaskFactory.FromResult(ImmutableArray<ReferenceAssemblyResult>.Empty)); 349installerServiceMock.Setup(i => i.GetProjectsWithInstalledPackage(It.IsAny<Solution>(), "NuGetPackage", "1.0")).Returns(ImmutableArray<Project>.Empty); 358.Returns(() => ValueTaskFactory.FromResult(ImmutableArray<ReferenceAssemblyResult>.Empty));
CodeActions\AddUsing\AddUsingTests.cs (1)
4932", ImmutableArray<string>.Empty);
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (3)
1101MemberNames = ImmutableArray<string>.Empty, 2130MemberNames = ImmutableArray<string>.Empty, 3254ReferenceAssemblies = ReferenceAssemblies.Default.WithAssemblies(ImmutableArray<string>.Empty),
CodeActions\GenerateType\GenerateTypeTests.cs (8)
561expectedContainers: ImmutableArray<string>.Empty, 5358ImmutableArray<string>.Empty, 5558expectedContainers: ImmutableArray<string>.Empty, 5589expectedContainers: ImmutableArray<string>.Empty, 6063expectedContainers: ImmutableArray<string>.Empty, 6086expectedContainers: ImmutableArray<string>.Empty, 6120expectedContainers: ImmutableArray<string>.Empty, 6144expectedContainers: ImmutableArray<string>.Empty,
CodeActions\GenerateType\GenerateTypeTests_Dialog.cs (6)
761newFileFolderContainers: ImmutableArray<string>.Empty, 1265newFileFolderContainers: ImmutableArray<string>.Empty, 1474newFileFolderContainers: ImmutableArray<string>.Empty, 1722newFileFolderContainers: ImmutableArray<string>.Empty, 1939newFileFolderContainers: ImmutableArray<string>.Empty, 3053newFileFolderContainers: ImmutableArray<string>.Empty,
CodeActions\MoveStaticMembers\CSharpMoveStaticMembersTests.cs (11)
264var selectedMembers = ImmutableArray<string>.Empty; 3224await new Test("", ImmutableArray<string>.Empty, "") 3241await new Test("", ImmutableArray<string>.Empty, "") 3258await new Test("", ImmutableArray<string>.Empty, "") 3275await new Test("", ImmutableArray<string>.Empty, "") 3292await new Test("", ImmutableArray<string>.Empty, "") 3384await new Test("", ImmutableArray<string>.Empty, "") 3404await new Test("", ImmutableArray<string>.Empty, "") 3427await new Test("", ImmutableArray<string>.Empty, "") 3475testOptionsService.ExpectedPrecheckedMembers = _testPreselection ? _selection : ImmutableArray<string>.Empty; 3549await new Test("", ImmutableArray<string>.Empty, "")
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (4)
124conflictSpans: ImmutableArray<TextSpan>.Empty, 125renameSpans: ImmutableArray<TextSpan>.Empty, 126warningSpans: ImmutableArray<TextSpan>.Empty, 127navigationSpans: ImmutableArray<TextSpan>.Empty,
Completion\CompletionServiceTests.cs (1)
96public ImmutableArray<OptionStorageLocation> StorageLocations => ImmutableArray<OptionStorageLocation>.Empty;
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (15)
540vsixAnalyzers: ImmutableArray<VsixAnalyzer>.Empty, 542nugetSuppressors: ImmutableArray<NuGetSuppressor>.Empty, 544vsixSuppressors: ImmutableArray<VsixSuppressor>.Empty, 561nugetSuppressors: ImmutableArray<NuGetSuppressor>.Empty, 563vsixSuppressors: ImmutableArray<VsixSuppressor>.Empty, 581nugetSuppressors: ImmutableArray<NuGetSuppressor>.Empty, 583vsixSuppressors: ImmutableArray<VsixSuppressor>.Empty, 617nugetAnalyzers: ImmutableArray<NuGetAnalyzer>.Empty, 621nugetSuppressors: ImmutableArray<NuGetSuppressor>.Empty, 641nugetSuppressors: ImmutableArray<NuGetSuppressor>.Empty, 666vsixSuppressors: ImmutableArray<VsixSuppressor>.Empty, 728nugetAnalyzer != null ? ImmutableArray.Create(nugetAnalyzer) : ImmutableArray<NuGetAnalyzer>.Empty, 730vsixAnalyzer != null ? ImmutableArray.Create(vsixAnalyzer) : ImmutableArray<VsixAnalyzer>.Empty, 732ImmutableArray<NuGetSuppressor>.Empty, 734ImmutableArray<VsixSuppressor>.Empty,
EditAndContinue\ActiveStatementTrackingServiceTests.cs (3)
44ImmutableArray<ActiveStatementSpan>.Empty); 51"2.cs" => ImmutableArray<ActiveStatementSpan>.Empty, 114spanProvider.GetAdjustedActiveStatementSpansImpl = (_, _) => ImmutableArray<ActiveStatementSpan>.Empty;
QuickInfo\DiagnosticAnalyzerQuickInfoSourceTests.cs (2)
130""", GetFormattedIDEAnalyzerTitle(51, nameof(AnalyzersResources.Remove_unused_private_members)), ImmutableArray<TextSpan>.Empty); 175""", description, ImmutableArray<TextSpan>.Empty);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (23)
CodeGen\CodeGenFunctionPointersTests.cs (16)
7674returnRefKind: RefKind.None, parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, 7678parameterRefCustomModifiers: default, returnRefKind: RefKind.Ref, parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, 7683parameterRefCustomModifiers: default, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, 7687parameterRefCustomModifiers: default, returnRefKind: RefKind.Ref, parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, 7759returnRefKind: RefKind.None, parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, 7763returnRefKind: RefKind.Ref, parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, 7768returnRefKind: RefKind.None, parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, 7772returnRefKind: RefKind.Ref, parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty,
CodeGen\CodeGenOperators.cs (1)
5417var diagnostics = ImmutableArray<Diagnostic>.Empty;
CodeGen\CodeGenTupleTest.cs (4)
5817var tupleWithoutNames = comp.CreateTupleTypeSymbol(vt0, ImmutableArray<string>.Empty); 6344Assert.Throws<ArgumentException>(() => comp.CreateTupleTypeSymbol(ImmutableArray<ITypeSymbol>.Empty, default(ImmutableArray<string>))); 6802var e = Assert.Throws<ArgumentException>(() => comp.CreateTupleTypeSymbol(underlyingType, elementNullableAnnotations: ImmutableArray<CodeAnalysis.NullableAnnotation>.Empty)); 6871var e = Assert.Throws<ArgumentException>(() => comp.CreateTupleTypeSymbol(elementTypes, elementNullableAnnotations: ImmutableArray<CodeAnalysis.NullableAnnotation>.Empty));
Emit\DesktopStrongNameProviderTests.cs (2)
93var provider = new DesktopStrongNameProvider(ImmutableArray<string>.Empty, new VirtualizedStrongNameFileSystem(tempDir.Path)); 111var provider = new DesktopStrongNameProvider(ImmutableArray<string>.Empty, new VirtualizedStrongNameFileSystem());
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\EditAndContinueTestBase.cs (1)
62return ImmutableArray<SyntaxNode>.Empty;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
Attributes\AttributeTests_CallerInfoAttributes.cs (1)
4271TestOptions.ReleaseExe.WithSourceReferenceResolver(new SourceFileResolver(ImmutableArray<string>.Empty, baseDirectory: @"C:\A\B")));
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
61ImmutableArray<string>.Empty,
Diagnostics\DiagnosticAnalyzerTests.cs (3)
1532var analyzerOptions = new AnalyzerOptions(additionalFiles: ImmutableArray<AdditionalText>.Empty, analyzerConfigOptionsProvider); 3607new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty)); 4029return ImmutableArray<Diagnostic>.Empty;
Diagnostics\GetDiagnosticsTests.cs (6)
553var compilationWithAnalyzers = compilation.WithAnalyzers(analyzers, new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty)); 562var analyzerOptions = new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty, analyzerConfigOptionsProvider); 608analyzerOptions = new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty, analyzerConfigOptionsProvider); 665new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty), 718new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty), 747new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty),
Microsoft.CodeAnalysis.CSharp.Features (7)
BraceCompletion\AbstractCurlyBraceOrBracketCompletionService.cs (1)
264return (document.Root, ImmutableArray<TextChange>.Empty, closingPoint);
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (2)
461return (commonReceiver ?? ThisExpression(), ImmutableArray<IdentifierNameSyntax>.Empty, rightNames.ToImmutable()); 469return (commonReceiver ?? ThisExpression(), leftNames.ToImmutable(), ImmutableArray<IdentifierNameSyntax>.Empty);
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
353var commitRules = ImmutableArray<CharacterSetModificationRule>.Empty;
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
773var paramContent = ImmutableArray<XmlNodeSyntax>.Empty;
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
1070: ImmutableArray<IOperation>.Empty))
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
95builder.Add(new DeclarationInfo(name, ImmutableArray<SyntaxNode>.Empty, declaredSymbol));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (29)
Semantics\ImportsTests.cs (2)
125ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty, 130ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty,
Semantics\InterceptorsTests.cs (11)
5285new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap)), 5321new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap)), 5355new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap))); 5427new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap))); 5464new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap)), 5499new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap))); 5541new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap)), 5982new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap)), 6023new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap))); 6083new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap))); 6096new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap)),
SourceGeneration\GeneratorDriverTests.cs (3)
40GeneratorDriver driver = CSharpGeneratorDriver.Create(ImmutableArray<ISourceGenerator>.Empty, parseOptions: parseOptions); 545GeneratorDriver driver = CSharpGeneratorDriver.Create(ImmutableArray<ISourceGenerator>.Empty, parseOptions: TestOptions.Regular); 3585driver = driver.AddAdditionalTexts(ImmutableArray<AdditionalText>.Empty);
SourceGeneration\StateTableTests.cs (13)
180builder.AddEntries(ImmutableArray<int>.Empty, EntryState.Added, TimeSpan.Zero, default, EntryState.Added); 189Assert.True(builder.TryModifyEntries(ImmutableArray<int>.Empty, EqualityComparer<int>.Default, TimeSpan.Zero, default, EntryState.Modified)); 309var emptyInputSteps = ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)>.Empty; 940var filterNode = new TransformNode<int, int>(transformNode, (i, ct) => i <= 2 ? ImmutableArray.Create(i) : ImmutableArray<int>.Empty, name: "Filter"); 978values = ImmutableArray<int>.Empty; 999ImmutableArray<int> values = ImmutableArray<int>.Empty; 1030var transformNode = new TransformNode<ImmutableArray<string>, string>(inputNode, (arr, ct) => arr[0] == "class3" ? ImmutableArray<string>.Empty : arr, name: "SelectMany"); 1071var transformNode = new TransformNode<ImmutableArray<string>, string>(inputNode, (arr, ct) => arr[0] == "class3" ? ImmutableArray<string>.Empty : arr, name: "SelectMany"); 1349ImmutableArray<ISourceGenerator>.Empty, 1350ImmutableArray<IIncrementalGenerator>.Empty, 1351ImmutableArray<AdditionalText>.Empty, 1352ImmutableArray<GeneratorState>.Empty, 1358return new DriverStateTable.Builder(c, state, SyntaxStore.Empty.ToBuilder(c, ImmutableArray<SyntaxInputNode>.Empty, trackIncrementalGeneratorSteps, cancellationToken: default));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (62)
Compilation\CompilationAPITests.cs (5)
2688var type = comp.CreateAnonymousTypeSymbol(ImmutableArray<ITypeSymbol>.Empty, ImmutableArray<string>.Empty, memberNullableAnnotations: ImmutableArray<CodeAnalysis.NullableAnnotation>.Empty); 3042Assert.Throws<ArgumentException>(() => genericType.Construct(typeArguments, ImmutableArray<CodeAnalysis.NullableAnnotation>.Empty)); 3077Assert.Throws<ArgumentException>(() => genericMethod.Construct(typeArguments, ImmutableArray<CodeAnalysis.NullableAnnotation>.Empty));
Compilation\CSharpCompilationOptionsTests.cs (4)
405SourceReferenceResolver sourceReferenceResolver = new SourceFileResolver(ImmutableArray<string>.Empty, null); 444Assert.Equal(ImmutableArray<byte>.Empty, options.CryptoPublicKey); 445Assert.Equal(ImmutableArray<byte>.Empty, options.WithCryptoPublicKey(default(ImmutableArray<byte>)).CryptoPublicKey); 448Assert.Same(options, options.WithCryptoPublicKey(ImmutableArray<byte>.Empty));
Compilation\ReferenceManagerTests.cs (1)
1259return ImmutableArray<PortableExecutableReference>.Empty;
Symbols\CompilationCreationTests.cs (1)
2666return ImmutableArray<PortableExecutableReference>.Empty;
Symbols\FunctionPointerTypeSymbolTests.cs (49)
1532Assert.Throws<ArgumentNullException>("returnType", () => comp.CreateFunctionPointerTypeSymbol(returnType: null!, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty)); 1533Assert.Throws<ArgumentNullException>("parameterTypes", () => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: default, parameterRefKinds: ImmutableArray<RefKind>.Empty)); 1535Assert.Throws<ArgumentNullException>("parameterRefKinds", () => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: default)); 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))); 1538Assert.Throws<ArgumentException>(() => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.Out, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty)); 1539Assert.Throws<ArgumentOutOfRangeException>(() => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: (SignatureCallingConvention)10)); 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)!)); 1553var ptr = comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.VarArgs); 1638var ptr = comp.CreateFunctionPointerTypeSymbol(@string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, convention); 1640ptr = comp.CreateFunctionPointerTypeSymbol(@string, returnRefKind: RefKind.RefReadOnly, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, convention); 1653var ptr = comp.CreateFunctionPointerTypeSymbol(@string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, SignatureCallingConvention.Unmanaged, ImmutableArray.Create(cdeclType, stdcallType)!); 1655ptr = comp.CreateFunctionPointerTypeSymbol(@string, returnRefKind: RefKind.RefReadOnly, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, SignatureCallingConvention.Unmanaged, ImmutableArray.Create(cdeclType, stdcallType)!); 1658ptr = comp.CreateFunctionPointerTypeSymbol(@string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, SignatureCallingConvention.Unmanaged, ImmutableArray.Create(cdeclType)!); 1968parameterTypes: ImmutableArray<ITypeSymbol>.Empty, 1969parameterRefKinds: ImmutableArray<RefKind>.Empty, 2048parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, 2050parameterRefKinds: ImmutableArray<RefKind>.Empty, 2057parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, 2059parameterRefKinds: ImmutableArray<RefKind>.Empty, 2115parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, 2117parameterRefKinds: ImmutableArray<RefKind>.Empty, 2124parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, 2126parameterRefKinds: ImmutableArray<RefKind>.Empty, 2174parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, 2176parameterRefKinds: ImmutableArray<RefKind>.Empty, 2183parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, 2185parameterRefKinds: ImmutableArray<RefKind>.Empty,
Symbols\MockNamedTypeSymbol.cs (1)
320return ImmutableArray<string>.Empty;
Symbols\Source\FileModifierTests.cs (1)
839ImmutableArray<string>.Empty,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\LocationsTests.cs (1)
25: base(ImmutableArray<string>.Empty, null)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CSharpTestBase.cs (1)
1329VerifyUsesOfNullability(createCompilationLambda().SourceModule.GlobalNamespace, expectedUsesOfNullable: ImmutableArray<string>.Empty);
Extensions.cs (1)
760return ImmutableArray<IParameterSymbol>.Empty;
Microsoft.CodeAnalysis.Debugging.Package (1)
CustomDebugInfoReader.cs (1)
495return ImmutableArray<string>.Empty;
Microsoft.CodeAnalysis.EditorFeatures (6)
EditorConfigSettings\DataProvider\CombinedProvider.cs (1)
27var snapShot = ImmutableArray<T>.Empty;
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
651items: ImmutableArray<CompletionItemWithHighlight>.Empty, selectedItemIndex,
Interactive\InteractiveSession.cs (4)
176var imports = ImmutableArray<string>.Empty; 177var references = ImmutableArray<MetadataReference>.Empty; 179var initializationScriptImports = ImmutableArray<string>.Empty; 180var initializationScriptReferences = ImmutableArray<MetadataReference>.Empty;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (22)
NavigateTo\AbstractNavigateToTests.cs (18)
50internal static readonly PatternMatch s_emptyExactPatternMatch = new PatternMatch(PatternMatchKind.Exact, true, true, ImmutableArray<Span>.Empty); 51internal static readonly PatternMatch s_emptyPrefixPatternMatch = new PatternMatch(PatternMatchKind.Prefix, true, true, ImmutableArray<Span>.Empty); 52internal static readonly PatternMatch s_emptySubstringPatternMatch = new PatternMatch(PatternMatchKind.Substring, true, true, ImmutableArray<Span>.Empty); 53internal static readonly PatternMatch s_emptyCamelCaseExactPatternMatch = new PatternMatch(PatternMatchKind.CamelCaseExact, true, true, ImmutableArray<Span>.Empty); 54internal static readonly PatternMatch s_emptyCamelCasePrefixPatternMatch = new PatternMatch(PatternMatchKind.CamelCasePrefix, true, true, ImmutableArray<Span>.Empty); 55internal static readonly PatternMatch s_emptyCamelCaseNonContiguousPrefixPatternMatch = new PatternMatch(PatternMatchKind.CamelCaseNonContiguousPrefix, true, true, ImmutableArray<Span>.Empty); 56internal static readonly PatternMatch s_emptyCamelCaseSubstringPatternMatch = new PatternMatch(PatternMatchKind.CamelCaseSubstring, true, true, ImmutableArray<Span>.Empty); 57internal static readonly PatternMatch s_emptyCamelCaseNonContiguousSubstringPatternMatch = new PatternMatch(PatternMatchKind.CamelCaseNonContiguousSubstring, true, true, ImmutableArray<Span>.Empty); 58internal static readonly PatternMatch s_emptyFuzzyPatternMatch = new PatternMatch(PatternMatchKind.Fuzzy, true, true, ImmutableArray<Span>.Empty); 60internal static readonly PatternMatch s_emptyExactPatternMatch_NotCaseSensitive = new PatternMatch(PatternMatchKind.Exact, true, false, ImmutableArray<Span>.Empty); 61internal static readonly PatternMatch s_emptyPrefixPatternMatch_NotCaseSensitive = new PatternMatch(PatternMatchKind.Prefix, true, false, ImmutableArray<Span>.Empty); 62internal static readonly PatternMatch s_emptySubstringPatternMatch_NotCaseSensitive = new PatternMatch(PatternMatchKind.Substring, true, false, ImmutableArray<Span>.Empty); 63internal static readonly PatternMatch s_emptyCamelCaseExactPatternMatch_NotCaseSensitive = new PatternMatch(PatternMatchKind.CamelCaseExact, true, false, ImmutableArray<Span>.Empty); 64internal static readonly PatternMatch s_emptyCamelCasePrefixPatternMatch_NotCaseSensitive = new PatternMatch(PatternMatchKind.CamelCasePrefix, true, false, ImmutableArray<Span>.Empty); 65internal static readonly PatternMatch s_emptyCamelCaseNonContiguousPrefixPatternMatch_NotCaseSensitive = new PatternMatch(PatternMatchKind.CamelCaseNonContiguousPrefix, true, false, ImmutableArray<Span>.Empty); 66internal static readonly PatternMatch s_emptyCamelCaseSubstringPatternMatch_NotCaseSensitive = new PatternMatch(PatternMatchKind.CamelCaseSubstring, true, false, ImmutableArray<Span>.Empty); 67internal static readonly PatternMatch s_emptyCamelCaseNonContiguousSubstringPatternMatch_NotCaseSensitive = new PatternMatch(PatternMatchKind.CamelCaseNonContiguousSubstring, true, false, ImmutableArray<Span>.Empty); 68internal static readonly PatternMatch s_emptyFuzzyPatternMatch_NotCaseSensitive = new PatternMatch(PatternMatchKind.Fuzzy, true, false, ImmutableArray<Span>.Empty);
QuickInfo\AbstractSemanticQuickInfoSourceTests.cs (1)
56var text = textBlock != null ? textBlock.TaggedParts : ImmutableArray<TaggedText>.Empty;
Squiggles\TestDiagnosticTagProducer.cs (1)
42customTags: ImmutableArray<string>.Empty,
Workspaces\EditorTestWorkspace.cs (2)
265: ImmutableArray<TextSpan>.Empty; 279mappedSpans[key] = mappedSpans.TryGetValue(key, out var textSpans) ? textSpans : ImmutableArray<TextSpan>.Empty;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (52)
CodeFixes\CodeFixServiceTests.cs (10)
164var documentDiagnosticAnalyzer = new MockAnalyzerReference.MockDocumentDiagnosticAnalyzer(reportedDiagnosticIds: ImmutableArray<string>.Empty); 196var analyzers = ImmutableArray<DiagnosticAnalyzer>.Empty; 463: this(fixers, analyzers, ImmutableArray<ISourceGenerator>.Empty) 468: this(fixer != null ? ImmutableArray.Create(fixer) : ImmutableArray<CodeFixProvider>.Empty, 511=> ImmutableArray<DiagnosticAnalyzer>.Empty; 591return Task.FromResult(ImmutableArray<Diagnostic>.Empty); 597return Task.FromResult(ImmutableArray<Diagnostic>.Empty); 697expectedDiagnosticIdsWithRegisteredCodeActionsByVsixFixer: ImmutableArray<string>.Empty, 704expectedDiagnosticIdsWithRegisteredCodeActionsByNuGetFixer: ImmutableArray<string>.Empty, 715expectedDiagnosticIdsWithRegisteredCodeActionsByVsixFixer: ImmutableArray<string>.Empty,
CodeGeneration\CodeGenerationTests.CSharp.cs (4)
493addMethod: CodeGenerationSymbolFactory.CreateAccessorSymbol(ImmutableArray<AttributeData>.Empty, Accessibility.NotApplicable, ImmutableArray<SyntaxNode>.Empty), 494removeMethod: CodeGenerationSymbolFactory.CreateAccessorSymbol(ImmutableArray<AttributeData>.Empty, Accessibility.NotApplicable, ImmutableArray<SyntaxNode>.Empty),
CodeGeneration\CodeGenerationTests.VisualBasic.cs (7)
424ImmutableArray<AttributeData>.Empty, Accessibility.NotApplicable, ImmutableArray<SyntaxNode>.Empty), 448addMethod: CodeGenerationSymbolFactory.CreateAccessorSymbol(ImmutableArray<AttributeData>.Empty, Accessibility.NotApplicable, ImmutableArray<SyntaxNode>.Empty), 477ImmutableArray<AttributeData>.Empty, Accessibility.NotApplicable, addStatements), 479ImmutableArray<AttributeData>.Empty, Accessibility.NotApplicable, removeStatements), 481ImmutableArray<AttributeData>.Empty, Accessibility.NotApplicable, raiseStatements),
CodeRefactorings\CodeRefactoringServiceTest.cs (2)
145=> ImmutableArray<DiagnosticAnalyzer>.Empty; 148=> ImmutableArray<DiagnosticAnalyzer>.Empty;
Completion\CompletionServiceTests.cs (2)
86=> ImmutableArray<DiagnosticAnalyzer>.Empty; 89=> ImmutableArray<DiagnosticAnalyzer>.Empty;
Completion\FileSystemCompletionHelperTests.cs (2)
129searchPaths: ImmutableArray<string>.Empty, 161searchPaths: ImmutableArray<string>.Empty,
Diagnostics\DiagnosticAnalyzerServiceTests.cs (5)
989public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray<DiagnosticDescriptor>.Empty; 991=> Task.FromResult(ImmutableArray<Diagnostic>.Empty); 993=> Task.FromResult(ImmutableArray<Diagnostic>.Empty); 1002public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray<DiagnosticDescriptor>.Empty; 1004=> Task.FromResult(ImmutableArray<Diagnostic>.Empty);
Diagnostics\DiagnosticDataTests.cs (5)
123customTags: ImmutableArray<string>.Empty, 156customTags: ImmutableArray<string>.Empty, 202customTags: ImmutableArray<string>.Empty, 205additionalLocations: ImmutableArray<DiagnosticDataLocation>.Empty, 250customTags: ImmutableArray<string>.Empty,
EmbeddedLanguages\StackFrame\StackFrameSyntaxFactory.cs (6)
24leadingTrivia.IsDefaultOrEmpty ? ImmutableArray<StackFrameTrivia>.Empty : leadingTrivia, 26trailingTrivia.IsDefaultOrEmpty ? ImmutableArray<StackFrameTrivia>.Empty : trailingTrivia, 27ImmutableArray<EmbeddedDiagnostic>.Empty, 31=> new(kind, CodeAnalysis.EmbeddedLanguages.VirtualChars.VirtualCharSequence.Create(0, text), ImmutableArray<EmbeddedDiagnostic>.Empty); 116current = Identifier(IdentifierToken(identifier, leadingTrivia: leadingTrivia, trailingTrivia: ImmutableArray<StackFrameTrivia>.Empty)); 120var rhs = Identifier(IdentifierToken(identifier, leadingTrivia: ImmutableArray<StackFrameTrivia>.Empty, trailingTrivia: trailingTrivia));
InheritanceMargin\InheritanceMarginTests.cs (3)
269LocationTags = ImmutableArray<string>.Empty; 317ImmutableArray<DocumentSpan>.Empty, 450targets: ImmutableArray<TargetInfo>.Empty
Preview\PreviewWorkspaceTests.cs (1)
165var analyzerOptions = new AnalyzerOptions(additionalFiles: ImmutableArray<AdditionalText>.Empty);
Snippets\RoslynLSPSnippetConvertTests.cs (2)
404ImmutableArray<SnippetPlaceholder>.Empty, new TextChange(new TextSpan(8, 0), "quux"), triggerLocation: 12, CancellationToken.None).Result; 415ImmutableArray<SnippetPlaceholder>.Empty, new TextChange(new TextSpan(4, 4), "bar quux"), triggerLocation: 12, CancellationToken.None).Result;
UnusedReferences\UnusedReferencesRemoverTests.cs (3)
114compilationAssemblies: ImmutableArray<string>.Empty, 115dependencies: ImmutableArray<ReferenceInfo>.Empty); 204dependencies: ImmutableArray<ReferenceInfo>.Empty);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (10)
BackgroundWorkIndicator\BackgroundWorkIndicatorContext.cs (1)
66private ImmutableArray<BackgroundWorkIndicatorScope> _scopes = ImmutableArray<BackgroundWorkIndicatorScope>.Empty;
LineSeparators\LineSeparatorTaggerProvider.cs (1)
41protected sealed override ImmutableArray<IOption2> Options { get; } = ImmutableArray<IOption2>.Empty;
Suggestions\PreviewChanges\PreviewChangesCodeAction.cs (3)
40return ImmutableArray<CodeActionOperation>.Empty; 46return ImmutableArray<CodeActionOperation>.Empty; 62return ImmutableArray<CodeActionOperation>.Empty;
Suggestions\SuggestedActionsSource_Async.cs (4)
238return ImmutableArray<UnifiedSuggestedActionSet>.Empty; 254return ImmutableArray<UnifiedSuggestedActionSet>.Empty; 261return ImmutableArray<UnifiedSuggestedActionSet>.Empty; 267return ImmutableArray<UnifiedSuggestedActionSet>.Empty;
Suggestions\SuggestedActionWithNestedFlavors.cs (1)
84defaultValue: ImmutableArray<SuggestedActionSet>.Empty, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (8)
CodeFixes\CodeFixServiceTests.vb (1)
332Public Shared Property Diagnostics As ImmutableArray(Of Diagnostic) = ImmutableArray(Of Diagnostic).Empty
Diagnostics\DiagnosticProviderTests.vb (1)
354customTags:=ImmutableArray(Of String).Empty,
Diagnostics\DiagnosticServiceTests.vb (1)
201Dim projectAnalyzersEmpty = ImmutableArray(Of DiagnosticAnalyzer).Empty
FindReferences\FindReferencesTests.vb (2)
254Dim result = ImmutableArray(Of ReferencedSymbol).Empty 281Dim expected = If(doc.AnnotatedSpans.TryGetValue(DefinitionKey, spans), spans, ImmutableArray(Of TextSpan).Empty).Order()
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (2)
90MockDefaultSource.Defaults = ImmutableArray(Of String).Empty 300Public Shared Defaults As ImmutableArray(Of String) = ImmutableArray(Of String).Empty
IntelliSense\CSharpCompletionCommandHandlerTests_HandleNonRoslynCompletionSources.vb (1)
92Return Task.FromResult(New CompletionContext(itemsList, suggestionItemOptions:=Nothing, InitialSelectionHint.RegularSelection, ImmutableArray(Of CompletionFilterWithState).Empty, isIncomplete:=False, Nothing))
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (27)
DkmUtilities.cs (1)
132return builder == null ? ImmutableArray<MetadataBlock>.Empty : builder.ToImmutableAndFree();
EvaluationContextBase.cs (1)
73missingAssemblyIdentities = ImmutableArray<AssemblyIdentity>.Empty;
ExpressionCompiler.cs (3)
54? ImmutableArray<Alias>.Empty 90return ImmutableArray<Alias>.Empty; 207ImmutableArray<Alias>.Empty,
InstructionDecoder.cs (2)
134return ImmutableArray<TTypeSymbol>.Empty; 147return ImmutableArray<TTypeSymbol>.Empty;
MetadataUtilities.cs (1)
138refs = ImmutableArray<(AssemblyIdentity, MetadataReference)>.Empty;
PDB\MethodDebugInfo.cs (5)
18ImmutableArray<HoistedLocalScopeRecord>.Empty, 19ImmutableArray<ImmutableArray<ImportRecord>>.Empty, 20ImmutableArray<ExternAliasRecord>.Empty, 24localVariableNames: ImmutableArray<string>.Empty, 25localConstants: ImmutableArray<TLocalSymbol>.Empty,
PDB\MethodDebugInfo.Native.cs (9)
115externAliasRecords = ImmutableArray<ExternAliasRecord>.Empty; 133var hoistedLocalScopeRecords = isVisualBasicMethod ? default : ImmutableArray<HoistedLocalScopeRecord>.Empty; 248return ImmutableArray<string>.Empty; 255return ImmutableArray<string>.Empty; 263return ImmutableArray<string>.Empty; 275return ImmutableArray<string>.Empty; 349importRecordGroups = importRecordGroupBuilder?.ToImmutableAndFree() ?? ImmutableArray<ImmutableArray<ImportRecord>>.Empty; 350externAliasRecords = externAliasRecordBuilder?.ToImmutableAndFree() ?? ImmutableArray<ExternAliasRecord>.Empty; 523importRecordGroups = ImmutableArray<ImmutableArray<ImportRecord>>.Empty;
PDB\MethodDebugInfo.Portable.cs (5)
57importGroups = ImmutableArray<ImmutableArray<ImportRecord>>.Empty; 58externAliases = ImmutableArray<ExternAliasRecord>.Empty; 59localVariableNames = ImmutableArray<string>.Empty; 60localConstants = ImmutableArray<TLocalSymbol>.Empty; 394: ImmutableArray<HoistedLocalScopeRecord>.Empty;
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (2)
FunctionResolverTestBase.cs (1)
200return ImmutableArray<string>.Empty;
ParsingTestBase.cs (1)
24return new RequestSignature(name, ImmutableArray<ParameterSignature>.Empty);
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (1)
Internal\EmbeddedLanguages\AspNetCoreEmbeddedLanguageDocumentHighlighter.cs (1)
48return ImmutableArray<DocumentHighlights>.Empty;
Microsoft.CodeAnalysis.ExternalAccess.Debugger (2)
GlassTestsHotReloadService.cs (2)
18(_, _, _) => ValueTaskFactory.FromResult(ImmutableArray<ActiveStatementSpan>.Empty); 37captureMatchingDocuments: ImmutableArray<DocumentId>.Empty,
Microsoft.CodeAnalysis.ExternalAccess.FSharp (19)
Internal\Diagnostics\FSharpDocumentDiagnosticAnalyzer.cs (2)
78return Task.FromResult(ImmutableArray<Diagnostic>.Empty); 89return Task.FromResult(ImmutableArray<Diagnostic>.Empty);
Internal\Diagnostics\FSharpSimplifyNameDiagnosticAnalyzer.cs (2)
62return Task.FromResult(ImmutableArray<Diagnostic>.Empty); 70return Task.FromResult(ImmutableArray<Diagnostic>.Empty);
Internal\Diagnostics\FSharpUnusedDeclarationsAnalyzer.cs (2)
64return Task.FromResult(ImmutableArray<Diagnostic>.Empty); 72return Task.FromResult(ImmutableArray<Diagnostic>.Empty);
Internal\Diagnostics\FSharpUnusedOpensDiagnosticAnalyzer.cs (2)
57return Task.FromResult(ImmutableArray<Diagnostic>.Empty); 65return Task.FromResult(ImmutableArray<Diagnostic>.Empty);
Internal\Editor\FSharpEditorFormattingService.cs (4)
82return changes?.ToImmutableArray() ?? ImmutableArray<TextChange>.Empty; 88return changes?.ToImmutableArray() ?? ImmutableArray<TextChange>.Empty; 94return changes?.ToImmutableArray() ?? ImmutableArray<TextChange>.Empty; 100return changes?.ToImmutableArray() ?? ImmutableArray<TextChange>.Empty;
Internal\Editor\FSharpNavigationBarItemService.cs (1)
56? ImmutableArray<NavigationBarItem>.Empty
Internal\InlineHints\FSharpInlineHintsService.cs (1)
34return ImmutableArray<InlineHint>.Empty;
Internal\NavigateTo\InternalFSharpNavigateToSearchResult.cs (1)
36public ImmutableArray<TextSpan> NameMatchSpans => ImmutableArray<TextSpan>.Empty;
Internal\Navigation\InternalFSharpNavigableItem.cs (1)
44public ImmutableArray<INavigableItem> ChildItems => ImmutableArray<INavigableItem>.Empty;
TaskList\FSharpTaskListService.cs (2)
32return ImmutableArray<TaskListItem>.Empty; 40return ImmutableArray<TaskListItem>.Empty;
VS\IFSharpWorkspaceProjectContextFactory.cs (1)
94=> ImmutableArray<string>.Empty;
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
GoToDefinition\OmniSharpFindDefinitionService.cs (1)
20return ImmutableArray<OmniSharpNavigableItem>.Empty;
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorCSharpFormattingInteractionService.cs (1)
47return ImmutableArray<TextChange>.Empty;
Microsoft.CodeAnalysis.Features (33)
ChangeSignature\AbstractChangeSignatureService.cs (1)
100: ImmutableArray<ChangeSignatureCodeAction>.Empty;
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (1)
145return Task.FromResult(ImmutableArray<CodeFix>.Empty);
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsFeatureService.cs (1)
66var packageSources = ImmutableArray<PackageSource>.Empty;
CodeRefactorings\CodeRefactoringService.cs (1)
65var allRefactorings = ImmutableArray<CodeRefactoringProvider>.Empty;
Completion\CommonCompletionItem.cs (1)
87var builder = ImmutableArray<TaggedText>.Empty.ToBuilder();
EditAndContinue\EditAndContinueService.cs (1)
277return ValueTaskFactory.FromResult(ImmutableArray<ActiveStatementSpan>.Empty);
EditAndContinue\EditSession.cs (2)
163return ImmutableArray<Diagnostic>.Empty; 999var emitDiagnostics = ImmutableArray<Diagnostic>.Empty;
EditAndContinue\SolutionUpdate.cs (1)
33ImmutableArray<(Guid, ImmutableArray<(ManagedModuleMethodId, NonRemappableRegion)>)>.Empty,
EmbeddedLanguages\RegularExpressions\RegexLexer.cs (1)
349: CreateToken(RegexKind.OptionsToken, ImmutableArray<RegexTrivia>.Empty, GetSubPatternToCurrentPos(start));
ExternalAccess\UnitTesting\API\UnitTestingHotReloadService.cs (2)
23=> ValueTaskFactory.FromResult(ImmutableArray<ManagedActiveStatementDebugInfo>.Empty); 52(_, _, _) => ValueTaskFactory.FromResult(ImmutableArray<ActiveStatementSpan>.Empty);
FindUsages\DefinitionItem.cs (2)
203tags, displayParts, sourceSpans, classifiedSpans, ImmutableArray<AssemblyLocation>.Empty, nameDisplayParts, 219ImmutableArray<AssemblyLocation>.Empty, nameDisplayParts, displayIfNoReferences: displayIfNoReferences);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
122return (document.Project, SymbolAndLineNumberArray.Empty);
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
162? ImmutableArray<(IParameterSymbol, string)>.Empty
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (6)
354return (userIdExclusions: ImmutableArray<string>.Empty, userCategoryExclusions: ImmutableArray<string>.Empty, analyzerDisabled: false); 357return (userIdExclusions: ImmutableArray<string>.Empty, userCategoryExclusions: ImmutableArray<string>.Empty, analyzerDisabled: true); 362return (userIdExclusions: ImmutableArray<string>.Empty, userCategoryExclusions: ImmutableArray<string>.Empty, analyzerDisabled: false);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
571: ImmutableArray<Location>.Empty;
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
176? ImmutableArray<SyntaxNode>.Empty
src\Compilers\Core\AnalyzerDriver\DeclarationComputer.cs (1)
23var codeBlocks = executableCodeBlocks?.Where(c => c != null).AsImmutableOrEmpty() ?? ImmutableArray<SyntaxNode>.Empty;
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
70return ImmutableArray<ISymbol>.Empty;
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (1)
495return ImmutableArray<string>.Empty;
SymbolSearch\SymbolSearchUpdateNoOpEngine.cs (3)
22=> ValueTaskFactory.FromResult(ImmutableArray<PackageWithAssemblyResult>.Empty); 25=> ValueTaskFactory.FromResult(ImmutableArray<PackageResult>.Empty); 28=> ValueTaskFactory.FromResult(ImmutableArray<ReferenceAssemblyResult>.Empty);
SymbolSearch\Windows\SymbolSearchUpdateEngine.cs (3)
123return ValueTaskFactory.FromResult(ImmutableArray<TResult>.Empty); 131return ValueTaskFactory.FromResult(ImmutableArray<TResult>.Empty); 181return ValueTaskFactory.FromResult(ImmutableArray<PackageWithAssemblyResult>.Empty);
Microsoft.CodeAnalysis.Features.Test.Utilities (3)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (3)
41(_, _, _) => new(ImmutableArray<ActiveStatementSpan>.Empty); 165captureMatchingDocuments: ImmutableArray<DocumentId>.Empty, 193_debuggerService.GetActiveStatementsImpl = () => ImmutableArray<ManagedActiveStatementDebugInfo>.Empty;
Microsoft.CodeAnalysis.Features.UnitTests (5)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (5)
136? ImmutableArray<DocumentId>.Empty 422var openDocumentIds = open ? ImmutableArray.Create(designTimeOnlyDocumentId) : ImmutableArray<DocumentId>.Empty; 1354var readers = ImmutableArray<IDisposable>.Empty; 4370captureMatchingDocuments: ImmutableArray<DocumentId>.Empty, 4416Assert.True((await debuggingSession.GetBaseActiveStatementSpansAsync(solution, ImmutableArray<DocumentId>.Empty, CancellationToken.None)).IsDefault);
Microsoft.CodeAnalysis.InteractiveHost (13)
Interactive\Core\InteractiveHost.LazyRemoteService.cs (3)
78sourcePaths: ImmutableArray<string>.Empty, 79referencePaths: ImmutableArray<string>.Empty, 84imports: ImmutableArray<string>.Empty));
Interactive\Core\InteractiveHost.Service.cs (3)
125searchPaths: ImmutableArray<string>.Empty, 135ImmutableArray<string>.Empty, 505var initialImports = ImmutableArray<string>.Empty;
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (4)
76return ImmutableArray<TResult>.Empty; 116return ImmutableArray<TResult>.Empty; 156return ImmutableArray<TResult>.Empty; 224return builder?.ToImmutableAndFree() ?? ImmutableArray<T>.Empty;
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
89result = ImmutableArray<T>.Empty; 371return ImmutableArray<U>.Empty; 400result = ImmutableArray<T>.Empty;
Microsoft.CodeAnalysis.LanguageServer (7)
HostWorkspace\HostDiagnosticAnalyzerProvider.cs (1)
20_analyzerReferences = ImmutableArray<(AnalyzerFileReference reference, string extensionId)>.Empty;
HostWorkspace\LoadedProject.cs (3)
40private ImmutableArray<CommandLineReference> _mostRecentMetadataReferences = ImmutableArray<CommandLineReference>.Empty; 41private ImmutableArray<CommandLineAnalyzerReference> _mostRecentAnalyzerReferences = ImmutableArray<CommandLineAnalyzerReference>.Empty; 214document => _projectSystemProject.AddDynamicSourceFile(document.FilePath, folders: ImmutableArray<string>.Empty),
HostWorkspace\WorkspaceProjectFactoryService.cs (1)
78return Task.FromResult((IReadOnlyCollection<string>)ImmutableArray<string>.Empty);
Testing\TestDiscoverer.cs (2)
52return ImmutableArray<TestCase>.Empty; 67return ImmutableArray<TestCase>.Empty;
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Features\CodeCleanup\AbstractCodeCleanupService.cs (1)
45var thirdPartyDiagnosticIdsAndTitles = ImmutableArray<(string diagnosticId, string? title)>.Empty;
Features\CodeFixes\CodeFixService.cs (1)
768var supportedScopes = ImmutableArray<FixAllScope>.Empty;
Features\EditAndContinue\EditAndContinueDiagnosticSource_OpenDocument.cs (1)
55: static (_, _, _) => ValueTaskFactory.FromResult(ImmutableArray<ActiveStatementSpan>.Empty);
Handler\Diagnostics\DiagnosticSources\TaskListDiagnosticSource.cs (2)
28Tuple.Create(ImmutableArray<string>.Empty, ImmutableArray<TaskListItemDescriptor>.Empty);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
CodeActions\RunCodeActionsTests.cs (1)
54var commandArgument = new CodeActionResolveData(string.Format(FeaturesResources.Move_type_to_0, "B.cs"), customTags: ImmutableArray<string>.Empty, caretLocation.Range, documentId, fixAllFlavors: null, nestedCodeActions: null, codeActionPath: titlePath);
Completion\CompletionFeaturesTests.cs (1)
882public ImmutableArray<CodeAnalysis.Completion.CompletionItem> ReturnedItems { get; set; } = ImmutableArray<CodeAnalysis.Completion.CompletionItem>.Empty;
Diagnostics\AbstractPullDiagnosticTestsBase.cs (1)
286return ImmutableArray<TestDiagnosticResult>.Empty;
Microsoft.CodeAnalysis.PooledObjects.Package (3)
ArrayBuilder.cs (3)
89result = ImmutableArray<T>.Empty; 371return ImmutableArray<U>.Empty; 400result = ImmutableArray<T>.Empty;
Microsoft.CodeAnalysis.Rebuild (2)
CompilationOptionsReader.cs (1)
237return new EmbeddedSourceTextInfo(sourceTextInfo, embeddedText, compressedHash?.ToImmutableArray() ?? ImmutableArray<byte>.Empty);
CSharpCompilationFactory.cs (1)
74? ImmutableArray<string>.Empty
Microsoft.CodeAnalysis.Rebuild.UnitTests (3)
DeterministicKeyBuilderTests.cs (2)
579(null, null) => ImmutableArray<KeyValuePair<string, string>>.Empty, 727(null, null) => ImmutableArray<KeyValuePair<string, string>>.Empty,
RoundTripUtil.cs (1)
106embeddedTexts: ImmutableArray<EmbeddedText>.Empty,
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Services\DependentTypeFinder\RemoteDependentTypeFinderService.cs (1)
42return ImmutableArray<SerializableSymbolAndProjectId>.Empty;
Services\EncapsulateField\RemoteEncapsulateFieldService.cs (1)
44return ImmutableArray<(DocumentId, ImmutableArray<TextChange>)>.Empty;
Services\ValueTracking\RemoteValueTrackingService.cs (1)
59return ImmutableArray<SerializableValueTrackedItem>.Empty;
Microsoft.CodeAnalysis.Remote.Workspaces (1)
EditAndContinue\ManagedHotReloadLanguageService.cs (1)
42(_, _, _) => ValueTaskFactory.FromResult(ImmutableArray<ActiveStatementSpan>.Empty);
Microsoft.CodeAnalysis.Scripting (13)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
103_noShadowCopyDirectories = ImmutableArray<string>.Empty;
Hosting\CommandLine\CommandLineRunner.cs (1)
199return new CommonCompiler.LoggingSourceFileResolver(arguments.SourcePaths, arguments.BaseDirectory, ImmutableArray<KeyValuePair<string, string>>.Empty, loggerOpt);
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (1)
195return ImmutableArray<PortableExecutableReference>.Empty;
Script.cs (3)
138WithReferences(ImmutableArray<MetadataReference>.Empty). 139WithImports(ImmutableArray<string>.Empty); 417return ImmutableArray<Func<object[], Task>>.Empty;
ScriptMetadataResolver.cs (1)
20RuntimeMetadataReferenceResolver.CreateCurrentPlatformResolver(ImmutableArray<string>.Empty, baseDirectory: null));
ScriptOptions.cs (2)
28namespaces: ImmutableArray<string>.Empty, 43return ImmutableArray<MetadataReference>.Empty;
ScriptSourceResolver.cs (1)
17public static new ScriptSourceResolver Default { get; } = new ScriptSourceResolver(ImmutableArray<string>.Empty, null);
src\Compilers\Shared\GlobalAssemblyCacheHelpers\DotNetCoreGlobalAssemblyCache.cs (3)
24return ImmutableArray<AssemblyIdentity>.Empty; 29return ImmutableArray<AssemblyIdentity>.Empty; 34return ImmutableArray<string>.Empty;
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
MetadataShadowCopyProviderTests.cs (1)
30? ImmutableArray<string>.Empty
Microsoft.CodeAnalysis.Scripting.UnitTests (4)
RuntimeMetadataReferenceResolverTests.cs (1)
84return ImmutableArray<string>.Empty;
ScriptOptionsTests.cs (3)
40var options = ScriptOptions.Default.WithReferences(ImmutableArray<MetadataReference>.Empty); 63var empty = ScriptOptions.Default.WithReferences(ImmutableArray<MetadataReference>.Empty); 82var options = ScriptOptions.Default.WithReferences(ImmutableArray<MetadataReference>.Empty);
Microsoft.CodeAnalysis.Test.Utilities (11)
Compilation\CompilationTestDataExtensions.cs (3)
110closures: ImmutableArray<ClosureDebugInfo>.Empty, 111lambdas: ImmutableArray<LambdaDebugInfo>.Empty, 112stateMachineStates: ImmutableArray<StateMachineStateDebugInfo>.Empty);
Diagnostics\DiagnosticDescription.cs (2)
41private readonly ImmutableArray<string> _originalFormatSpecifiers = ImmutableArray<string>.Empty; 467var specifiers = ImmutableArray<string>.Empty;
Metadata\DynamicAnalysisDataReader.cs (1)
201return ImmutableArray<DynamicAnalysisSpan>.Empty;
Mocks\TestMetadataReferenceResolver.cs (2)
42return ImmutableArray<PortableExecutableReference>.Empty; 53return map.TryGetValue(reference, out var result) ? ImmutableArray.Create(result) : ImmutableArray<PortableExecutableReference>.Empty;
PDB\DeterministicBuildCompilationTestHelpers.cs (1)
146? ImmutableArray<string>.Empty
Platform\Custom\SigningTestHelpers.cs (1)
21new DesktopStrongNameProvider(ImmutableArray<string>.Empty, new VirtualizedStrongNameFileSystem(Path.GetTempPath()));
TargetFrameworkUtil.cs (1)
302TargetFramework.Empty => ImmutableArray<MetadataReference>.Empty,
Microsoft.CodeAnalysis.UnitTests (69)
Analyzers\AnalyzerConfigTests.cs (1)
2232var set = AnalyzerConfigSet.Create(ImmutableArray<AnalyzerConfig>.Empty);
CachingLookupTests.cs (1)
347return ImmutableArray<FullyPopulateRaceHelper>.Empty;
Collections\ImmutableArrayExtensionsTests.cs (1)
388Assert.Empty(ImmutableArray<object>.Empty.SelectAsArray<object, int>(item => throw null, item => throw null));
Collections\TemporaryArrayTests.cs (1)
244result.Add(ImmutableArray<T>.Empty);
Diagnostics\CompilationWithAnalyzersTests.cs (1)
61var analyzerOptions = new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty);
Diagnostics\OperationTests.cs (13)
29ImmutableArray<IOperation> arguments = ImmutableArray<IOperation>.Empty; 46argumentNames = ImmutableArray<string>.Empty; 47argumentRefKinds = ImmutableArray<RefKind>.Empty; 132IOperation parent = new BlockOperation(ImmutableArray<IOperation>.Empty, ImmutableArray<ILocalSymbol>.Empty, 151ImmutableArray<IOperation>.Empty, ImmutableArray<ILocalSymbol>.Empty, 168ImmutableArray<IFieldSymbol>.Empty, ImmutableArray<ILocalSymbol>.Empty, 186ImmutableArray<IPropertySymbol>.Empty, ImmutableArray<ILocalSymbol>.Empty, 204parameter: null, locals: ImmutableArray<ILocalSymbol>.Empty, 222ImmutableArray<ILocalSymbol>.Empty,
Emit\CustomDebugInfoTests.cs (24)
154var e = Assert.Throws<InvalidDataException>(() => EditAndContinueMethodDebugInformation.Create(ImmutableArray.Create(new byte[] { 0x01, 0x68, 0xff }), ImmutableArray<byte>.Empty)); 157e = Assert.Throws<InvalidDataException>(() => EditAndContinueMethodDebugInformation.Create(ImmutableArray.Create(new byte[] { 0x01, 0x68, 0xff, 0xff, 0xff, 0xff }), ImmutableArray<byte>.Empty)); 160e = Assert.Throws<InvalidDataException>(() => EditAndContinueMethodDebugInformation.Create(ImmutableArray.Create(new byte[] { 0xff, 0xff, 0xff, 0xff }), ImmutableArray<byte>.Empty)); 171e = Assert.Throws<InvalidDataException>(() => EditAndContinueMethodDebugInformation.Create(ImmutableArray.Create(largeData), ImmutableArray<byte>.Empty)); 200var closures = ImmutableArray<ClosureDebugInfo>.Empty; 201var lambdas = ImmutableArray<LambdaDebugInfo>.Empty; 202var states = ImmutableArray<StateMachineStateDebugInfo>.Empty; 219var slots = ImmutableArray<LocalSlotDebugInfo>.Empty; 231var states = ImmutableArray<StateMachineStateDebugInfo>.Empty; 249var slots = ImmutableArray<LocalSlotDebugInfo>.Empty; 251var closures = ImmutableArray<ClosureDebugInfo>.Empty; 253var states = ImmutableArray<StateMachineStateDebugInfo>.Empty; 274var slots = ImmutableArray<LocalSlotDebugInfo>.Empty; 275var closures = ImmutableArray<ClosureDebugInfo>.Empty; 276var lambdas = ImmutableArray<LambdaDebugInfo>.Empty; 277var states = ImmutableArray<StateMachineStateDebugInfo>.Empty; 300localSlots: ImmutableArray<LocalSlotDebugInfo>.Empty, 301closures: ImmutableArray<ClosureDebugInfo>.Empty, 302lambdas: ImmutableArray<LambdaDebugInfo>.Empty, 318compressedSlotMap: ImmutableArray<byte>.Empty, 319compressedLambdaMap: ImmutableArray<byte>.Empty, 338compressedSlotMap: ImmutableArray<byte>.Empty, 339compressedLambdaMap: ImmutableArray<byte>.Empty, 360var states = ImmutableArray<StateMachineStateDebugInfo>.Empty;
InternalUtilities\OneOrManyTests.cs (12)
39Verify(OneOrMany.Create(ImmutableArray<int>.Empty)); 40Verify(new OneOrMany<int>(ImmutableArray<int>.Empty)); 48Verify(OneOrMany.Create(ImmutableArray<int>.Empty).Add(3), 3); 51Verify(new OneOrMany<int>(ImmutableArray<int>.Empty).Add(3), 3); 67Verify(OneOrMany.Create(ImmutableArray<int>.Empty).Add(1).Add(2).Add(3).Add(4), 1, 2, 3, 4); 70Verify(new OneOrMany<int>(ImmutableArray<int>.Empty).Add(1).Add(2).Add(3).Add(4), 1, 2, 3, 4); 83Assert.False(OneOrMany.Create(ImmutableArray<int>.Empty).Contains(0)); 109Verify(OneOrMany.Create(ImmutableArray<int>.Empty).Select(i => i + 1)); 118Verify(OneOrMany.Create(ImmutableArray<int>.Empty).Select((i, a) => i + a, 1)); 128Assert.Equal(0, OneOrMany.Create(ImmutableArray<int>.Empty).FirstOrDefault(i => i > 2)); 140Assert.Equal(0, OneOrMany.Create(ImmutableArray<int>.Empty).FirstOrDefault((i, a) => i > a, 2)); 254Assert.True(ImmutableArray<int>.Empty.SequenceEqual(OneOrMany<int>.Empty));
MetadataReferences\AssemblyIdentityTests.cs (8)
208var id3 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", ImmutableArray<byte>.Empty, hasPublicKey: false, isRetargetable: false); 213var id4 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", ImmutableArray<byte>.Empty, hasPublicKey: false, isRetargetable: false, contentType: AssemblyContentType.WindowsRuntime); 228() => new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", ImmutableArray<byte>.Empty, hasPublicKey: true, isRetargetable: false, contentType: AssemblyContentType.Default)); 270id = new AssemblyIdentity(/*noThrow:*/true, "Goo", new Version(1, 2, 3, 4), null, ImmutableArray<byte>.Empty, 280id = new AssemblyIdentity(/*noThrow:*/true, "Goo", new Version(1, 2, 3, 4), null, ImmutableArray<byte>.Empty, 293id = new AssemblyIdentity(/*noThrow:*/true, "Goo", new Version(1, 2, 3, 4), "blah,", ImmutableArray<byte>.Empty, 297id = new AssemblyIdentity(/*noThrow:*/true, "Goo", new Version(1, 2, 3, 4), "*", ImmutableArray<byte>.Empty, 301id = new AssemblyIdentity(/*noThrow:*/true, "Goo", new Version(1, 2, 3, 4), "neutral", ImmutableArray<byte>.Empty,
MetadataReferences\MetadataReferencePropertiesTests.cs (5)
35Assert.Equal(MetadataReferenceProperties.Module, new MetadataReferenceProperties(MetadataImageKind.Module, ImmutableArray<string>.Empty, false)); 36Assert.Equal(MetadataReferenceProperties.Assembly, new MetadataReferenceProperties(MetadataImageKind.Assembly, ImmutableArray<string>.Empty, false)); 58Assert.Equal(a.WithAliases(null), new MetadataReferenceProperties(MetadataImageKind.Assembly, ImmutableArray<string>.Empty, embedInteropTypes: true)); 59Assert.Equal(a.WithAliases(default(ImmutableArray<string>)), new MetadataReferenceProperties(MetadataImageKind.Assembly, ImmutableArray<string>.Empty, embedInteropTypes: true)); 60Assert.Equal(a.WithAliases(ImmutableArray<string>.Empty), new MetadataReferenceProperties(MetadataImageKind.Assembly, default(ImmutableArray<string>), embedInteropTypes: true));
StrongNameProviderTests.cs (1)
50var searchPathsEmpty = ImmutableArray<string>.Empty;
Text\TextChangeTests.cs (1)
603return ImmutableArray<char[]>.Empty;
Microsoft.CodeAnalysis.VisualBasic (930)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
239Return If(Me.symbol.Kind = SymbolKind.Method, DirectCast(Me.symbol, MethodSymbol).Parameters, ImmutableArray(Of ParameterSymbol).Empty)
Analysis\FlowAnalysis\ControlFlowAnalysis.vb (2)
43Dim result = If(Me._context.Failed, ImmutableArray(Of SyntaxNode).Empty, 57Dim result = If(Me._context.Failed, ImmutableArray(Of SyntaxNode).Empty,
Analysis\FlowAnalysis\DataFlowPass.Symbols.vb (2)
56Return ImmutableArray(Of Location).Empty 62Return ImmutableArray(Of SyntaxReference).Empty
Analysis\FlowAnalysis\VisualBasicDataFlowAnalysis.vb (8)
50Dim result = If(Me._context.Failed, ImmutableArray(Of ISymbol).Empty, 76Dim result = If(Me._context.Failed, ImmutableArray(Of ISymbol).Empty, 101Dim entry = ImmutableArray(Of ISymbol).Empty 102Dim ex = ImmutableArray(Of ISymbol).Empty 125Dim result = If(Me._context.Failed, ImmutableArray(Of ISymbol).Empty, 139Dim result = If(Me._context.Failed, ImmutableArray(Of ISymbol).Empty, 285Return ImmutableArray(Of ISymbol).Empty 291Return ImmutableArray(Of IMethodSymbol).Empty
Analysis\InitializerRewriter.vb (1)
154ImmutableArray(Of BoundExpression).Empty,
Binding\BackstopBinder.vb (4)
101Return ImmutableArray(Of Symbol).Empty 105Return ImmutableArray(Of Symbol).Empty 109Return ImmutableArray(Of Symbol).Empty 199Return ImmutableArray(Of LocalSymbol).Empty
Binding\Binder.vb (2)
53Private Shared ReadOnly s_noArguments As ImmutableArray(Of BoundExpression) = ImmutableArray(Of BoundExpression).Empty 653Return GetErrorSymbol(name, errorInfo, ImmutableArray(Of Symbol).Empty, LookupResultKind.Empty, reportErrorWhenReferenced)
Binding\Binder_AnonymousTypes.vb (3)
64ImmutableArray(Of BoundAnonymousTypePropertyAccess).Empty, 114Return BadExpression(owningSyntax, ImmutableArray(Of BoundExpression).Empty, ErrorTypeSymbol.UnknownResultType) 310ImmutableArray(Of BoundAnonymousTypePropertyAccess).Empty,
Binding\Binder_Attributes.vb (3)
535lValue = New BoundPropertyAccess(identifierName, propertySym, Nothing, PropertyAccessKind.Set, Not isReadOnly, Nothing, ImmutableArray(Of BoundExpression).Empty, defaultArguments:=BitVector.Null, hasErrors) 698Return ImmutableArray(Of TypedConstant).Empty 720Return ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty
Binding\Binder_Constraints.vb (1)
21Return ImmutableArray(Of TypeParameterConstraint).Empty
Binding\Binder_Delegates.vb (7)
156ImmutableArray(Of Symbol).Empty, 157ImmutableArray(Of BoundExpression).Empty, 185ImmutableArray(Of Symbol).Empty, 186ImmutableArray(Of BoundExpression).Empty, 437Dim boundArguments = ImmutableArray(Of BoundExpression).Empty 545Dim bestSymbols = ImmutableArray(Of Symbol).Empty 1276ImmutableArray(Of LocalSymbol).Empty,
Binding\Binder_Diagnostics.vb (1)
43If(nodes.IsEmpty, ImmutableArray(Of BoundExpression).Empty, ImmutableArray.Create(nodes)),
Binding\Binder_Expressions.vb (16)
280Return BadExpression(node, ImmutableArray(Of BoundExpression).Empty, ErrorTypeSymbol.UnknownResultType) 289Return New BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, resultType, hasErrors:=True) 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) 313Return New BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, exprs, resultType, hasErrors:=True) 326Return New BoundBadExpression(wrappedExpression.Syntax, resultKind, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(wrappedExpression), wrappedExpression.Type, hasErrors:=True) 338ImmutableArray(Of BoundExpression).Empty) 1661Dim initializers = ImmutableArray(Of BoundExpression).Empty 3134If(receiver IsNot Nothing, ImmutableArray.Create(receiver), ImmutableArray(Of BoundExpression).Empty), 3600ImmutableArray(Of Symbol).Empty, 3601ImmutableArray(Of BoundExpression).Empty, 4287init = New BoundArrayInitialization(expr, ImmutableArray(Of BoundExpression).Empty, arrayInitType, hasErrors:=True) 4755ImmutableArray(Of BoundExpression).Empty, 4804ImmutableArray(Of BoundExpression).Empty, 4853ImmutableArray(Of BoundExpression).Empty,
Binding\Binder_Initializers.vb (7)
44Me.BoundInitializers = ImmutableArray(Of BoundInitializer).Empty 46Me._loweredInitializers = ImmutableArray(Of BoundStatement).Empty 64ImmutableArray(Of LocalSymbol).Empty, 93Return ImmutableArray(Of BoundInitializer).Empty 137Dim additionalSymbols = If(initializer.FieldsOrProperties.Length > 1, initializer.FieldsOrProperties.RemoveAt(0), ImmutableArray(Of Symbol).Empty) 367arguments:=ImmutableArray(Of BoundExpression).Empty, 531ImmutableArray(Of Symbol).Empty,
Binding\Binder_Invocation.vb (10)
422ImmutableArray(Of BoundExpression).Empty, 790ImmutableArray(Of Symbol).Empty, builder.ToImmutableAndFree(), 1234Dim bestSymbols = ImmutableArray(Of Symbol).Empty 1367boundArguments = ImmutableArray(Of BoundExpression).Empty 1450Dim typeArguments = If(mg.TypeArgumentsOpt IsNot Nothing, mg.TypeArgumentsOpt.Arguments, ImmutableArray(Of TypeSymbol).Empty) 1453typeArguments = ImmutableArray(Of TypeSymbol).Empty 1625childBoundNodes = ImmutableArray(Of BoundExpression).Empty 1839arguments = ImmutableArray(Of BoundExpression).Empty 1997arguments = ImmutableArray(Of BoundExpression).Empty 2635arguments = ImmutableArray(Of BoundExpression).Empty
Binding\Binder_Lambda.vb (3)
90Return ImmutableArray(Of BoundLambdaParameterSymbol).Empty 468block = New BoundBlock(lambdaSyntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, 773Dim targetSignature As New UnboundLambda.TargetSignature(ImmutableArray(Of ParameterSymbol).Empty, Compilation.GetSpecialType(SpecialType.System_Void), returnsByRef:=False)
Binding\Binder_Lookup.vb (1)
2092Dim members As ImmutableArray(Of Symbol) = ImmutableArray(Of Symbol).Empty
Binding\Binder_ObjectInitializer.vb (6)
122CheckRequiredMembersInObjectInitializer(constructorSymbol, namedType, If(initializerOpt?.Initializers, ImmutableArray(Of BoundExpression).Empty), typeNode, diagnostics) 132arguments:=ImmutableArray(Of BoundExpression).Empty, 299ImmutableArray(Of Symbol).Empty, 388ImmutableArray(Of Symbol).Empty, 501CheckRequiredMembersInObjectInitializer(constructorSymbol, constructorSymbol.ContainingType, If(objectInitializerExpressionOpt?.Initializers, ImmutableArray(Of BoundExpression).Empty), typeNode, diagnostics) 1002ImmutableArray(Of Symbol).Empty,
Binding\Binder_Query.vb (44)
220ImmutableArray(Of RangeVariableSymbol).Empty, 237ImmutableArray(Of RangeVariableSymbol).Empty, 270ImmutableArray(Of RangeVariableSymbol).Empty, 326ImmutableArray(Of RangeVariableSymbol).Empty, 366ImmutableArray(Of RangeVariableSymbol).Empty, 423ImmutableArray(Of Binder).Empty, 438Dim selectSelectorBinder As New QueryLambdaBinder(selectSelectorLambdaSymbol, ImmutableArray(Of RangeVariableSymbol).Empty) 465ImmutableArray(Of BoundExpression).Empty).MakeCompilerGenerated() 483ImmutableArray(Of BoundExpression).Empty).MakeCompilerGenerated() 488keysRangeVariablesPart2 = ImmutableArray(Of RangeVariableSymbol).Empty 505ImmutableArray(Of BoundExpression).Empty).MakeCompilerGenerated() 509keysRangeVariablesPart2 = ImmutableArray(Of RangeVariableSymbol).Empty 512keysRangeVariablesPart1 = ImmutableArray(Of RangeVariableSymbol).Empty 514keysRangeVariablesPart2 = ImmutableArray(Of RangeVariableSymbol).Empty 610ImmutableArray(Of RangeVariableSymbol).Empty, 632ImmutableArray(Of RangeVariableSymbol).Empty, 634ImmutableArray(Of Binder).Empty, 1094joinSelectorDeclaredRangeVariables = ImmutableArray(Of RangeVariableSymbol).Empty 1407ImmutableArray(Of Binder).Empty, 1489joinSelectorDeclaredRangeVariables = ImmutableArray(Of RangeVariableSymbol).Empty 1653ImmutableArray(Of Binder).Empty, 1887itemsRangeVariables = ImmutableArray(Of RangeVariableSymbol).Empty 2125Dim intoLambdaBinder As New QueryLambdaBinder(intoLambdaSymbol, ImmutableArray(Of RangeVariableSymbol).Empty) 2137ImmutableArray(Of RangeVariableSymbol).Empty, 2422ImmutableArray(Of BoundExpression).Empty, 2431ImmutableArray(Of Binder).Empty, 2503ImmutableArray(Of Binder).Empty, 2666Return ImmutableArray(Of Symbol).Empty 2757declaredRangeVariables = ImmutableArray(Of RangeVariableSymbol).Empty 3018ImmutableArray(Of RangeVariableSymbol).Empty), 3030ImmutableArray(Of RangeVariableSymbol).Empty), 3051keysRangeVariablesPart2 = ImmutableArray(Of RangeVariableSymbol).Empty 3058keysRangeVariablesPart2 = ImmutableArray(Of RangeVariableSymbol).Empty 3061keysRangeVariablesPart1 = ImmutableArray(Of RangeVariableSymbol).Empty 3063keysRangeVariablesPart2 = ImmutableArray(Of RangeVariableSymbol).Empty 3933arguments = ImmutableArray(Of BoundExpression).Empty 3974ImmutableArray(Of RangeVariableSymbol).Empty, 4235ImmutableArray(Of Binder).Empty, 4271Dim selectorBinder As New QueryLambdaBinder(lambdaSymbol, ImmutableArray(Of RangeVariableSymbol).Empty) 4281ImmutableArray(Of RangeVariableSymbol).Empty, 4303ImmutableArray(Of RangeVariableSymbol).Empty, 4354ImmutableArray(Of BoundExpression).Empty, 4372ImmutableArray(Of BoundExpression).Empty, 4395ImmutableArray(Of BoundExpression).Empty,
Binding\Binder_SelectCase.vb (2)
120Return ImmutableArray(Of BoundCaseBlock).Empty 159caseClauses = ImmutableArray(Of BoundCaseClause).Empty
Binding\Binder_Statements.vb (18)
217Return New BoundBadStatement(node, ImmutableArray(Of BoundNode).Empty, hasErrors:=True) 228ImmutableArray(Of BoundNode).Empty, 239ImmutableArray(Of BoundNode).Empty, 264Return New BoundBadStatement(node, ImmutableArray(Of BoundNode).Empty, hasErrors:=True) 293Dim locals As ImmutableArray(Of LocalSymbol) = ImmutableArray(Of LocalSymbol).Empty 437ImmutableArray(Of Symbol).Empty, 438ImmutableArray(Of BoundExpression).Empty, 729Dim boundIndices As ImmutableArray(Of BoundExpression) = ImmutableArray(Of BoundExpression).Empty 2105Return New BoundBlock(syntax, stmtList, ImmutableArray(Of LocalSymbol).Empty, boundStatements.AsImmutableOrNull()) 3058nextVariables = ImmutableArray(Of BoundExpression).Empty 3610ImmutableArray(Of Symbol).Empty, 3801ImmutableArray(Of Symbol).Empty, 3854ImmutableArray(Of Symbol).Empty, 4225ImmutableArray(Of BoundExpression).Empty, 4553Return ImmutableArray(Of LocalSymbol).Empty 4768Return ImmutableArray(Of BoundCatchBlock).Empty 4922Return New BoundBadStatement(node, ImmutableArray(Of BoundNode).Empty, hasErrors:=True) 4942Return New BoundBadStatement(node, ImmutableArray(Of BoundNode).Empty, hasErrors:=True)
Binding\Binder_Utils.vb (4)
824Return ImmutableArray(Of ParameterSymbol).Empty 865Return ImmutableArray(Of ParameterSymbol).Empty 888ImmutableArray(Of TypeParameterSymbol).Empty) 953Return ImmutableArray(Of ParameterSymbol).Empty
Binding\Binder_WithBlock.vb (1)
413Return ImmutableArray(Of LocalSymbol).Empty
Binding\Binder_XmlLiterals.vb (7)
326xmlnsAttributes = BindObjectCreationExpression(syntax, xmlnsAttributesPlaceholder.Type, ImmutableArray(Of BoundExpression).Empty, diagnostics).MakeCompilerGenerated() 374Return ArrayTypeSymbol.CreateSZArray(elementType, ImmutableArray(Of CustomModifier).Empty, compilation:=Compilation) 1371Me.SideEffects = ImmutableArray(Of BoundExpression).Empty 1593Return ImmutableArray(Of PropertySymbol).Empty 1669Return ImmutableArray(Of ParameterSymbol).Empty 1794Return ImmutableArray(Of MethodSymbol).Empty 2020Return ImmutableArray(Of ParameterSymbol).Empty
Binding\BinderBuilder.vb (2)
327Return New DeclarationInitializerBinder(parameterSymbol, ImmutableArray(Of Symbol).Empty, containingBinder, node) 340Return New DeclarationInitializerBinder(parameterSymbol, ImmutableArray(Of Symbol).Empty, containingBinder, node)
Binding\BinderFactory.vb (2)
288Dim additionalFieldsOrProperties = ImmutableArray(Of Symbol).Empty 359Return BuildInitializerBinder(containingNamedTypeBinder, field, ImmutableArray(Of Symbol).Empty)
Binding\BlockStatementBinders.vb (1)
40Return ImmutableArray(Of LocalSymbol).Empty
Binding\CatchBlockBinder.vb (1)
63Return ImmutableArray(Of LocalSymbol).Empty
Binding\ConstantFieldsInProgressBinder.vb (1)
42Return ImmutableArray(Of Symbol).Empty
Binding\DocumentationCommentBinder.vb (1)
166Return ImmutableArray(Of Symbol).Empty
Binding\DocumentationCommentCrefBinder.vb (5)
73Return ImmutableArray(Of Symbol).Empty 84Return ImmutableArray(Of Symbol).Empty 94Return ImmutableArray(Of Symbol).Empty 204Return ImmutableArray(Of Symbol).Empty 230ImmutableArray(Of Symbol).Empty,
Binding\DocumentationCommentCrefBinder_Compat.vb (2)
35Return ImmutableArray(Of Symbol).Empty 60Return ImmutableArray(Of Symbol).Empty
Binding\DocumentationCommentParamBinder.vb (3)
49Return ImmutableArray(Of ParameterSymbol).Empty 55Return ImmutableArray(Of Symbol).Empty 60Return ImmutableArray(Of Symbol).Empty
Binding\DocumentationCommentTypeParamBinder.vb (3)
26Return ImmutableArray(Of Symbol).Empty 31Return ImmutableArray(Of Symbol).Empty 49Return ImmutableArray(Of TypeParameterSymbol).Empty
Binding\DocumentationCommentTypeParamRefBinder.vb (1)
51Return ImmutableArray(Of Symbol).Empty
Binding\EarlyWellKnownAttributeBinder.vb (1)
40Return ImmutableArray(Of Symbol).Empty
Binding\ExecutableCodeBinder.vb (1)
72Return ImmutableArray(Of SourceLabelSymbol).Empty
Binding\ForOrForEachBlockBinder.vb (1)
104Return ImmutableArray(Of LocalSymbol).Empty
Binding\ImplicitVariableBinder.vb (1)
137Return ImmutableArray(Of LocalSymbol).Empty
Binding\ImportAliasesBinder.vb (1)
89Return ImmutableArray(Of Symbol).Empty
Binding\LocationSpecificBinder.vb (1)
53Return ImmutableArray(Of Symbol).Empty
Binding\MemberSemanticModel.vb (3)
891Return ImmutableArray(Of Symbol).Empty 1847Return ImmutableArray(Of BoundNode).Empty 1900Return ImmutableArray(Of BoundNode).Empty
Binding\NamedTypeBinder.vb (1)
174Return ImmutableArray(Of Symbol).Empty
Binding\NamespaceBinder.vb (1)
60Return ImmutableArray(Of Symbol).Empty
Binding\StatementListBinder.vb (1)
91Return ImmutableArray(Of LocalSymbol).Empty
Binding\SubOrFunctionBodyBinder.vb (1)
55Return ImmutableArray(Of Symbol).Empty
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (6)
49Return New BoundBlock(syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, statements.ToImmutableAndFree()).MakeCompilerGenerated() 78Return New BoundBlock(syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, 161ImmutableArray(Of BoundExpression).Empty, 177ImmutableArray(Of LocalSymbol).Empty, 295Return New BoundSequence(syntax, ImmutableArray(Of LocalSymbol).Empty, 384ImmutableArray(Of LocalSymbol).Empty,
Binding\SyntheticBoundTrees\SynthesizedConstructorSymbol.vb (1)
19Return New BoundBlock(Me.Syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundStatement)(returnStmt))
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (6)
27Return (New BoundBlock(syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray(Of BoundStatement).Empty, hasErrors:=True)).MakeCompilerGenerated() 56ImmutableArray(Of BoundExpression).Empty, 245ImmutableArray(Of BoundExpression).Empty) 325ImmutableArray(Of BoundExpression).Empty) 353locals = If(temps Is Nothing, ImmutableArray(Of LocalSymbol).Empty, temps.ToImmutableAndFree)
Binding\UsingBlockBinder.vb (1)
72Return ImmutableArray(Of LocalSymbol).Empty
BoundTree\BoundMethodGroup.vb (2)
32Return ImmutableArray(Of MethodSymbol).Empty 61Dim methods As ImmutableArray(Of MethodSymbol) = ImmutableArray(Of MethodSymbol).Empty
BoundTree\Expression.vb (1)
54Return ImmutableArray(Of BoundNode).Empty
BoundTree\Statement.vb (1)
29Return ImmutableArray(Of BoundNode).Empty
BoundTree\UnboundLambda.vb (1)
154Me.ParameterTypes = ImmutableArray(Of TypeSymbol).Empty
CodeGen\CodeGenerator.vb (2)
125asyncYieldPoints = ImmutableArray(Of Integer).Empty 126asyncResumePoints = ImmutableArray(Of Integer).Empty
CodeGen\EmitConversion.vb (1)
237EmitNewObj(constructor, ImmutableArray(Of BoundExpression).Empty, used:=True, syntaxNode:=conversion.Syntax)
CodeGen\EmitStatement.vb (2)
1243Dim dynamicTransformFlags = ImmutableArray(Of Boolean).Empty 1246ImmutableArray(Of String).Empty)
CommandLine\VisualBasicCommandLineParser.vb (1)
149Dim pathMap As ImmutableArray(Of KeyValuePair(Of String, String)) = ImmutableArray(Of KeyValuePair(Of String, String)).Empty
CommandLine\VisualBasicCompiler.vb (1)
159Dim sourceFileResolver = New LoggingSourceFileResolver(ImmutableArray(Of String).Empty, Arguments.BaseDirectory, Arguments.PathMap, touchedFilesLogger)
Compilation\ClsComplianceChecker.vb (2)
931Return ImmutableArray(Of TypeSymbol).Empty 953Return ImmutableArray(Of RefKind).Empty
Compilation\DocumentationComments\DocumentationCommentCompiler.Event.vb (1)
71Dim parameters As ImmutableArray(Of ParameterSymbol) = ImmutableArray(Of ParameterSymbol).Empty
Compilation\MethodCompiler.vb (22)
321lambdaDebugInfo:=ImmutableArray(Of EncLambdaInfo).Empty, 322orderedLambdaRuntimeRudeEdits:=ImmutableArray(Of LambdaRuntimeRudeEditInfo).Empty, 323closureDebugInfo:=ImmutableArray(Of EncClosureInfo).Empty, 324stateMachineStateDebugInfos:=ImmutableArray(Of StateMachineStateDebugInfo).Empty, 330codeCoverageSpans:=ImmutableArray(Of SourceSpan).Empty) 675If CType(method, SourceMethodSymbol).SetDiagnostics(ImmutableArray(Of Diagnostic).Empty) Then 892lambdaDebugInfo:=ImmutableArray(Of EncLambdaInfo).Empty, 893orderedLambdaRuntimeRudeEdits:=ImmutableArray(Of LambdaRuntimeRudeEditInfo).Empty, 894closureDebugInfo:=ImmutableArray(Of EncClosureInfo).Empty, 895stateMachineStateDebugInfos:=ImmutableArray(Of StateMachineStateDebugInfo).Empty, 901codeCoverageSpans:=ImmutableArray(Of SourceSpan).Empty) 946Dim codeCoverageSpans As ImmutableArray(Of SourceSpan) = ImmutableArray(Of SourceSpan).Empty 1039lambdaDebugInfo:=ImmutableArray(Of EncLambdaInfo).Empty, 1040orderedLambdaRuntimeRudeEdits:=ImmutableArray(Of LambdaRuntimeRudeEditInfo).Empty, 1041closureDebugInfo:=ImmutableArray(Of EncClosureInfo).Empty, 1048codeCoverageSpans:=ImmutableArray(Of SourceSpan).Empty) 1244If sourceMethod IsNot Nothing AndAlso sourceMethod.SetDiagnostics(ImmutableArray(Of Diagnostic).Empty) Then 1505Dim codeCoverageSpans As ImmutableArray(Of SourceSpan) = ImmutableArray(Of SourceSpan).Empty 1531ImmutableArray(Of BoundStatement).Empty) 1553body = New BoundBlock(body.Syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, boundStatements.ToImmutableAndFree(), body.HasErrors).MakeCompilerGenerated() 2093baseInvocation = New BoundCall(syntaxNode, constructorToCall, Nothing, thisRef, ImmutableArray(Of BoundExpression).Empty, Nothing, voidType) 2113ImmutableArray(Of BoundExpression).Empty,
Compilation\SemanticModel.vb (13)
451Return ImmutableArray(Of ISymbol).Empty 468Return ImmutableArray(Of ISymbol).Empty 484Return ImmutableArray(Of ISymbol).Empty 875Return ImmutableArray(Of Symbol).Empty 1089Dim symbols = ImmutableArray(Of Symbol).Empty 1496candidateConstructors = ImmutableArray(Of MethodSymbol).Empty 1832Return ImmutableArray(Of Symbol).Empty 2006Dim constructors As ImmutableArray(Of MethodSymbol) = ImmutableArray(Of MethodSymbol).Empty 3161Return ImmutableArray(Of ISymbol).Empty 3501Dim aliases = If(importAliases?.GetImportChainData(), ImmutableArray(Of IAliasSymbol).Empty) 3502Dim [imports] = If(typesOfImportedNamespacesMembers?.GetImportChainData(), ImmutableArray(Of ImportedNamespaceOrType).Empty) 3503Dim xmlNamespaces = If(xmlNamespaceImports?.GetImportChainData(), ImmutableArray(Of ImportedXmlNamespace).Empty) 3508scopes.Add(New SimpleImportScope(aliases, ExternAliases:=ImmutableArray(Of IAliasSymbol).Empty, [imports], xmlNamespaces))
Compilation\SyntaxTreeSemanticModel.vb (6)
339Return ImmutableArray(Of Symbol).Empty 453Return ImmutableArray(Of Symbol).Empty 492result = ImmutableArray(Of Symbol).Empty 546typeParameters = ImmutableArray(Of Symbol).Empty 1896Dim node As BoundBadStatement = New BoundBadStatement(expression, ImmutableArray(Of BoundNode).Empty) 1912Dim node As BoundBadStatement = New BoundBadStatement(firstStatement, ImmutableArray(Of BoundNode).Empty)
Compilation\TypeCompilationState.vb (1)
122AddSynthesizedMethod(wrapper, body, stateMachineType:=Nothing, ImmutableArray(Of StateMachineStateDebugInfo).Empty)
Compilation\VisualBasicCompilation.vb (4)
393ImmutableArray(Of SyntaxTree).Empty, 1064Return UpdateSyntaxTrees(ImmutableArray(Of SyntaxTree).Empty, 1504Return New EntryPoint(Nothing, ImmutableArray(Of Diagnostic).Empty) 2388ImmutableArray(Of NamedTypeSymbol).Empty,
Declarations\DeclarationTreeBuilder.vb (6)
105Return ImmutableArray(Of ReferenceDirective).Empty 201referenceDirectives = ImmutableArray(Of ReferenceDirective).Empty 453Dim children = ImmutableArray(Of SingleTypeDeclaration).Empty 584Return ImmutableArray(Of SingleTypeDeclaration).Empty 758children:=ImmutableArray(Of SingleTypeDeclaration).Empty, 784children:=ImmutableArray(Of SingleTypeDeclaration).Empty,
Declarations\MergedNamespaceDeclaration.vb (1)
61Return ImmutableArray(Of Location).Empty
Emit\AttributeDataAdapter.vb (1)
90ImmutableArray(Of Cci.IMetadataExpression).Empty)
Emit\EditAndContinue\EmitHelpers.vb (4)
45updatedMethods:=ImmutableArray(Of MethodDefinitionHandle).Empty, 46changedTypes:=ImmutableArray(Of TypeDefinitionHandle).Empty) 100updatedMethods:=ImmutableArray(Of MethodDefinitionHandle).Empty, 101changedTypes:=ImmutableArray(Of TypeDefinitionHandle).Empty)
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (2)
54MyBase.New(sourceAssembly, emitOptions, outputKind, serializationProperties, manifestResources, additionalTypes:=ImmutableArray(Of NamedTypeSymbol).Empty) 172Return New AnonymousTypeKey(ImmutableArray(Of AnonymousTypeKeyField).Empty)
Emit\FieldSymbolAdapter.vb (1)
43Return ImmutableArray(Of ICustomModifier).Empty
Emit\MethodReference.vb (1)
51Return ImmutableArray(Of Cci.IParameterTypeInformation).Empty
Emit\MethodSymbolAdapter.vb (1)
144Return ImmutableArray(Of Cci.IParameterTypeInformation).Empty
Emit\NoPia\EmbeddedType.vb (3)
205Return New SynthesizedAttributeData(TypeManager.ModuleBeingBuilt.Compilation, ctor, ImmutableArray(Of TypedConstant).Empty, ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty) 222ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty)
Emit\NoPia\EmbeddedTypesManager.vb (2)
101ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty) 110ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty)
Emit\PEAssemblyBuilder.vb (1)
69Return ImmutableArray(Of NamedTypeSymbol).Empty
Emit\PEModuleBuilder.vb (1)
329Return ImmutableArray(Of AnonymousTypeKey).Empty
Emit\SpecializedFieldReference.vb (1)
66Return ImmutableArray(Of Cci.ICustomModifier).Empty
Emit\SynthesizedNamespaceSymbol.vb (8)
40Return ImmutableArray(Of Location).Empty 46Return ImmutableArray(Of SyntaxReference).Empty 64Return ImmutableArray(Of NamedTypeSymbol).Empty 75Return ImmutableArray(Of NamedTypeSymbol).Empty 79Return ImmutableArray(Of Symbol).Empty 83Return ImmutableArray(Of Symbol).Empty 87Return ImmutableArray(Of NamedTypeSymbol).Empty 91Return ImmutableArray(Of NamedTypeSymbol).Empty
Emit\SynthesizedPrivateImplementationDetailsSharedConstructor.vb (1)
86factory.Array(payloadArrayType.ElementType, ImmutableArray.Create(factory.MaximumMethodDefIndex()), ImmutableArray(Of BoundExpression).Empty)))
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.vb (1)
171ImmutableArray(Of LocalSymbol).Empty,
Lowering\AsyncRewriter\AsyncRewriter.SpillBuilder.vb (4)
40F.SpillSequence(If(Me._locals Is Nothing, ImmutableArray(Of LocalSymbol).Empty, Me._locals.ToImmutableAndFree()), 41If(Me._fields Is Nothing, ImmutableArray(Of FieldSymbol).Empty, Me._fields.ToImmutableAndFree()), 42If(Me._statements Is Nothing, ImmutableArray(Of BoundStatement).Empty, Me._statements.ToImmutableAndFree()), 96ImmutableArray(Of FieldSymbol).Empty,
Lowering\AsyncRewriter\AsyncRewriter.vb (2)
251Return RewriteBodyIfNeeded(Me.F.Block(ImmutableArray(Of LocalSymbol).Empty, bodyBuilder.ToImmutableAndFree()), Me.F.TopLevelMethod, Me.Method) 509Return GenerateMethodCall(receiver, type, methodName, ImmutableArray(Of TypeSymbol).Empty, arguments)
Lowering\AsyncRewriter\AsyncStateMachine.vb (1)
26Me._constructor.SetParameters(ImmutableArray(Of ParameterSymbol).Empty)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (2)
724ImmutableArray(Of BoundExpression).Empty, 819Return ConvertRuntimeHelperToExpressionTree(helperMethod, ImmutableArray(Of TypeSymbol).Empty, arguments)
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (3)
27Private _dynamicAnalysisSpans As ImmutableArray(Of SourceSpan) = ImmutableArray(Of SourceSpan).Empty 120_payloadType = ArrayTypeSymbol.CreateVBArray(payloadElementType, ImmutableArray(Of CustomModifier).Empty, 1, methodBodyFactory.Compilation.Assembly) 243ArrayTypeSymbol.CreateVBArray(_payloadType, ImmutableArray(Of CustomModifier).Empty, 1, _methodBodyFactory.Compilation.Assembly)
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.vb (1)
60If(shareLocal, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(lazyConditionalBranchLocal)),
Lowering\LambdaRewriter\LambdaCapturedVariable.vb (2)
112Return ImmutableArray(Of Location).Empty 118Return ImmutableArray(Of SyntaxReference).Empty
Lowering\LambdaRewriter\LambdaFrame.vb (4)
58MyBase.New(topLevelMethod, MakeName(scopeSyntaxOpt, methodId, closureId, isStatic, isDelegateRelaxationFrame), topLevelMethod.ContainingType, ImmutableArray(Of NamedTypeSymbol).Empty) 137Return ImmutableArray(Of Symbol).Empty 192Return ImmutableArray(Of NamedTypeSymbol).Empty 204Return ImmutableArray(Of NamedTypeSymbol).Empty
Lowering\LambdaRewriter\LambdaRewriter.vb (9)
256CompilationState.AddSynthesizedMethod(frame.Constructor, MakeFrameCtor(frame, Diagnostics), stateMachineType:=Nothing, ImmutableArray(Of StateMachineStateDebugInfo).Empty) 355CompilationState.AddSynthesizedMethod(frame.Constructor, MakeFrameCtor(frame, diagnostics), stateMachineType:=Nothing, ImmutableArray(Of StateMachineStateDebugInfo).Empty) 366CompilationState.AddSynthesizedMethod(frame.SharedConstructor, body, stateMachineType:=Nothing, ImmutableArray(Of StateMachineStateDebugInfo).Empty) 495ImmutableArray(Of LocalSymbol).Empty, 535ImmutableArray(Of BoundExpression).Empty, 848ImmutableArray(Of LocalSymbol).Empty, 1046SlotAllocatorOpt?.TryGetPreviousLambda(lambdaOrLambdaBodySyntax, isLambdaBody, closureOrdinal, structClosureIds:=ImmutableArray(Of DebugId).Empty, previousLambdaId, lambdaRudeEdit) = True AndAlso 1059_lambdaDebugInfoBuilder.Add(New EncLambdaInfo(New LambdaDebugInfo(syntaxOffset, lambdaId, closureOrdinal), structClosureIds:=ImmutableArray(Of DebugId).Empty)) 1427ImmutableArray(Of LocalSymbol).Empty,
Lowering\LambdaRewriter\SynthesizedLambdaMethod.vb (3)
67Me._typeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 71Me._typeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 125Return ImmutableArray(Of TypeSymbol).Empty
Lowering\LocalRewriter\LocalRewriter.vb (4)
448ImmutableArray(Of LocalSymbol).Empty, 520ImmutableArray(Of BoundExpression).Empty, 846ImmutableArray(Of BoundExpression).Empty, 872rewritten = nodeFactory.Call(Nothing, endApp, ImmutableArray(Of BoundExpression).Empty).ToStatement()
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (1)
148ImmutableArray(Of BoundExpression).Empty,
Lowering\LocalRewriter\LocalRewriter_AnonymousTypeCreationExpression.vb (1)
64ImmutableArray(Of BoundExpression).Empty,
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (3)
55Dim temps = ImmutableArray(Of SynthesizedLocal).Empty 111ImmutableArray(Of BoundExpression).Empty, 257Dim temps = ImmutableArray(Of SynthesizedLocal).Empty
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (2)
73ImmutableArray(Of BoundExpression).Empty, 1039Return New BoundSequence(node.Syntax, ImmutableArray(Of LocalSymbol).Empty,
Lowering\LocalRewriter\LocalRewriter_Call.vb (3)
111ImmutableArray(Of BoundExpression).Empty, 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 (2)
163result = New BoundSequence(node.Syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray(Of BoundExpression).Empty, Nothing, node.Type)
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (2)
119sideEffects:=ImmutableArray(Of BoundExpression).Empty, 289ImmutableArray(Of BoundExpression).Empty,
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (1)
698ImmutableArray(Of BoundExpression).Empty,
Lowering\LocalRewriter\LocalRewriter_FieldOrPropertyInitializer.vb (1)
114arguments:=ImmutableArray(Of BoundExpression).Empty)
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (10)
267ImmutableArray(Of BoundExpression).Empty, 301boundCurrent = New BoundBadExpression(syntaxNode, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, 462ImmutableArray(Of LocalSymbol).Empty), 611Dim rewrittenBodyBlock As BoundBlock = New BoundBlock(syntaxNode, Nothing, If(node.DeclaredOrInferredLocalOpt IsNot Nothing, ImmutableArray.Create(Of LocalSymbol)(node.DeclaredOrInferredLocalOpt), ImmutableArray(Of LocalSymbol).Empty), rewrittenBodyStatements) 658Nothing, ImmutableArray(Of LocalSymbol).Empty, 661ImmutableArray(Of BoundCatchBlock).Empty, 663Nothing, ImmutableArray(Of LocalSymbol).Empty, 717Return New BoundBadExpression(syntaxNode, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, 748ImmutableArray(Of BoundExpression).Empty, 764ImmutableArray(Of BoundExpression).Empty, Nothing, voidType).ToStatement
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (3)
168ImmutableArray(Of LocalSymbol).Empty, 448rewrittenInitCondition = New BoundBadExpression(rewrittenLimit.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, 503rewrittenLoopCondition = New BoundBadExpression(rewrittenLimit.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty,
Lowering\LocalRewriter\LocalRewriter_LateAddressOf.vb (1)
133ImmutableArray(Of LocalSymbol).Empty,
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (7)
395ImmutableArray(Of LocalSymbol).Empty, 396ImmutableArray(Of BoundExpression).Empty, 454ImmutableArray(Of LocalSymbol).Empty, 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))
Lowering\LocalRewriter\LocalRewriter_LateInvocation.vb (1)
86ImmutableArray(Of BoundExpression).Empty,
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (6)
218ImmutableArray(Of BoundExpression).Empty, 286ImmutableArray(Of BoundExpression).Empty, 309locals = ImmutableArray(Of LocalSymbol).Empty 316ImmutableArray(Of LocalSymbol).Empty, 327ImmutableArray(Of LocalSymbol).Empty, 330Dim tryFinally = New BoundTryStatement(syntax, tryBody, ImmutableArray(Of BoundCatchBlock).Empty, finallyBody, Nothing)
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (9)
26Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), nullableType, hasErrors:=True) 199ImmutableArray(Of BoundExpression).Empty, 206Return If(isOptional, Nothing, New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), expr.Type.GetNullableUnderlyingType(), hasErrors:=True)) 248ImmutableArray(Of BoundExpression).Empty, 255Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), expr.Type.GetNullableUnderlyingType(), hasErrors:=True) 276ImmutableArray(Of BoundExpression).Empty, 283Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), 292ImmutableArray(Of BoundExpression).Empty, 528ImmutableArray(Of LocalSymbol).Empty,
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (10)
74newGuid = New BoundBadExpression(node.Syntax, LookupResultKind.NotCreatable, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, ErrorTypeSymbol.UnknownResultType, hasErrors:=True) 83callGetTypeFromCLSID = New BoundBadExpression(node.Syntax, LookupResultKind.OverloadResolutionFailure, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, ErrorTypeSymbol.UnknownResultType, hasErrors:=True) 94rewrittenObjectCreation = New BoundBadExpression(node.Syntax, LookupResultKind.OverloadResolutionFailure, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, node.Type, hasErrors:=True) 147arguments:=ImmutableArray(Of BoundExpression).Empty, 153result = New BoundBadExpression(syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, typeParameter, hasErrors:=True) 335sequenceTemporaries = ImmutableArray(Of LocalSymbol).Empty
Lowering\LocalRewriter\LocalRewriter_Query.vb (3)
146arguments:=ImmutableArray(Of BoundExpression).Empty, 155ImmutableArray(Of BoundExpression).Empty, 201ImmutableArray(Of LocalSymbol).Empty,
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (2)
149arguments:=ImmutableArray(Of BoundExpression).Empty, 165Return New BoundBadExpression(syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(rewrittenReceiver), ErrorTypeSymbol.UnknownResultType, hasErrors:=True)
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
246tempLocals = ImmutableArray(Of LocalSymbol).Empty
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (5)
130ImmutableArray(Of LocalSymbol).Empty, 137ImmutableArray(Of LocalSymbol).Empty, 145Dim rewrittenSyncLock = RewriteTryStatement(syntaxNode, tryBody, ImmutableArray(Of BoundCatchBlock).Empty, finallyBody, Nothing) 225Return New BoundBadExpression(syntaxNode, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, parameters, ErrorTypeSymbol.UnknownResultType, hasErrors:=True).ToStatement() 249boundMonitorExitCall = New BoundBadExpression(syntaxNode, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(boundLockObject), ErrorTypeSymbol.UnknownResultType, hasErrors:=True)
Lowering\LocalRewriter\LocalRewriter_Try.vb (1)
78catchBlocks = ImmutableArray(Of BoundCatchBlock).Empty
Lowering\LocalRewriter\LocalRewriter_TupleLiteralExpression.vb (4)
56ImmutableArray(Of Symbol).Empty, 65Binder.CheckRequiredMembersInObjectInitializer(smallestConstructor, smallestType, initializers:=ImmutableArray(Of BoundExpression).Empty, syntax, _diagnostics) 78ImmutableArray(Of Symbol).Empty, 84Binder.CheckRequiredMembersInObjectInitializer(tuple8Ctor, tuple8Ctor.ContainingType, initializers:=ImmutableArray(Of BoundExpression).Empty, syntax, _diagnostics)
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (3)
301New BoundCall(node.Syntax, clearProjectError, Nothing, Nothing, ImmutableArray(Of BoundExpression).Empty, Nothing, clearProjectError.ReturnType).ToStatement(), 338statements.Add(New BoundCall(node.Syntax, clearProjectError, Nothing, Nothing, ImmutableArray(Of BoundExpression).Empty, Nothing, clearProjectError.ReturnType).ToStatement) 397statements.Add(New BoundCall(node.Syntax, clearProjectError, Nothing, Nothing, ImmutableArray(Of BoundExpression).Empty, Nothing, clearProjectError.ReturnType).ToStatement)
Lowering\LocalRewriter\LocalRewriter_Using.vb (3)
252locals:=ImmutableArray(Of LocalSymbol).Empty, 256Dim tryFinally = RewriteTryStatement(resourceSyntax, newBody, ImmutableArray(Of BoundCatchBlock).Empty, finallyBlock, exitLabelOpt:=Nothing) 260locals:=ImmutableArray(Of LocalSymbol).Empty,
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (3)
120New BoundBlock(syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, 179Me._typeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 243Return ImmutableArray(Of TypeSymbol).Empty
Lowering\Rewriter.vb (1)
69codeCoverageSpans = If(codeCoverageInstrumenter IsNot Nothing, codeCoverageInstrumenter.DynamicAnalysisSpans, ImmutableArray(Of SourceSpan).Empty)
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (1)
310hoistedLocals = ImmutableArray(Of FieldSymbol).Empty
Lowering\StateMachineRewriter\StateMachineTypeSymbol.vb (1)
82If(builder Is Nothing, ImmutableArray(Of VisualBasicAttributeData).Empty, builder.ToImmutableAndFree()),
Lowering\StateMachineRewriter\SynthesizedContainer.vb (8)
50Me._typeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 179Return ImmutableArray(Of String).Empty 225ImmutableArray.Create(Of Symbol)(Me.Constructor), ImmutableArray(Of Symbol).Empty) 251Return ImmutableArray(Of NamedTypeSymbol).Empty 255Return ImmutableArray(Of NamedTypeSymbol).Empty 259Return ImmutableArray(Of NamedTypeSymbol).Empty 270Return ImmutableArray(Of Location).Empty 276Return ImmutableArray(Of SyntaxReference).Empty
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.vb (2)
74Return ImmutableArray(Of TypeSymbol).Empty 224If(builder Is Nothing, ImmutableArray(Of VisualBasicAttributeData).Empty, builder.ToImmutableAndFree()),
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.vb (2)
78Return ImmutableArray(Of SyntaxReference).Empty 96Return ImmutableArray(Of Location).Empty
Lowering\SyntheticBoundNodeFactory.vb (8)
316Return Block(ImmutableArray(Of LocalSymbol).Empty, statements) 326Return Block(ImmutableArray(Of BoundStatement).Empty) 338Return StatementList(ImmutableArray(Of BoundStatement).Empty) 459Dim boundNode = New BoundBadExpression(_syntax, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(subExpressions), ErrorTypeSymbol.UnknownResultType, hasErrors:=True) 479ImmutableArray(Of BoundExpression).Empty, 586Return [Call](receiver, method, ImmutableArray(Of BoundExpression).Empty) 682Return Sequence(ImmutableArray(Of LocalSymbol).Empty, parts) 1130CompilationState.AddSynthesizedMethod(Me.CurrentMethod, body, stateMachineType:=Nothing, ImmutableArray(Of StateMachineStateDebugInfo).Empty)
Lowering\UseTwiceRewriter.vb (9)
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), 346New BoundSequence(receiverOpt.Syntax, ImmutableArray(Of LocalSymbol).Empty, 357receiver = New Result(New BoundSequence(receiverOpt.Syntax, ImmutableArray(Of LocalSymbol).Empty, 369firstArgs = ImmutableArray(Of BoundExpression).Empty 370secondArgs = ImmutableArray(Of BoundExpression).Empty 430firstArgs = ImmutableArray(Of BoundExpression).Empty 431secondArgs = ImmutableArray(Of BoundExpression).Empty
Lowering\WithExpressionRewriter.vb (2)
81If(Me._locals Is Nothing, ImmutableArray(Of LocalSymbol).Empty, Me._locals.ToImmutableAndFree()), 82If(Me._initializers Is Nothing, ImmutableArray(Of BoundExpression).Empty, Me._initializers.ToImmutableAndFree()),
Operations\VisualBasicOperationFactory.vb (19)
343Return ImmutableArray(Of IOperation).Empty 671Dim children As ImmutableArray(Of IOperation) = ImmutableArray(Of IOperation).Empty 970Dim typeArguments As ImmutableArray(Of ITypeSymbol) = ImmutableArray(Of ITypeSymbol).Empty 995Return New FieldInitializerOperation(initializedFields, ImmutableArray(Of ILocalSymbol).Empty, value, _semanticModel, syntax, isImplicit) 1003Return New PropertyInitializerOperation(initializedProperties, ImmutableArray(Of ILocalSymbol).Empty, value, _semanticModel, syntax, isImplicit) 1011Return New ParameterInitializerOperation(parameter, ImmutableArray(Of ILocalSymbol).Empty, value, _semanticModel, syntax, isImplicit) 1079Return New SwitchOperation(ImmutableArray(Of ILocalSymbol).Empty, value, cases, exitLabel, _semanticModel, syntax, isImplicit) 1113Return New SwitchCaseOperation(clauses, body, ImmutableArray(Of ILocalSymbol).Empty, condition, _semanticModel, syntax, isImplicit) 1145Dim locals As ImmutableArray(Of ILocalSymbol) = ImmutableArray(Of ILocalSymbol).Empty 1162ImmutableArray(Of IOperation).Empty, 1166ImmutableArray(Of ILocalSymbol).Empty) 1242ImmutableArray(Of IOperation).Empty, 1247ImmutableArray(Of ILocalSymbol).Empty) 1259New VariableDeclaratorOperation(localOpt, initializer:=Nothing, ignoredArguments:=ImmutableArray(Of IOperation).Empty, semanticModel:=_semanticModel, syntax:=controlVariable.Syntax, isImplicit:=boundForStatement.WasCompilerGenerated), 1277Return New VariableDeclaratorOperation(boundCatchBlock.LocalOpt, initializer:=Nothing, ignoredArguments:=ImmutableArray(Of IOperation).Empty, semanticModel:=_semanticModel, syntax:=boundCatchBlock.ExceptionSourceOpt.Syntax, isImplicit:=False) 1290ImmutableArray(Of ILocalSymbol).Empty) 1347Dim locals As ImmutableArray(Of ILocalSymbol) = ImmutableArray(Of ILocalSymbol).Empty 1612Dim arguments = ImmutableArray(Of IArgumentOperation).Empty 1671arguments:=ImmutableArray(Of IArgumentOperation).Empty,
Operations\VisualBasicOperationFactory_Methods.vb (11)
152Return OperationFactory.CreateInvalidOperation(_semanticModel, [operator].UnderlyingExpression.Syntax, ImmutableArray(Of IOperation).Empty, isImplicit) 177Return ImmutableArray(Of IArgumentOperation).Empty 179Return If(boundCreation.ConstructorOpt Is Nothing, ImmutableArray(Of IArgumentOperation).Empty, DeriveArguments(boundCreation.Arguments, boundCreation.ConstructorOpt.Parameters, boundCreation.DefaultArguments)) 182Return If(boundProperty.Arguments.Length = 0, ImmutableArray(Of IArgumentOperation).Empty, DeriveArguments(boundProperty.Arguments, boundProperty.PropertySymbol.Parameters, boundProperty.DefaultArguments)) 298Return OperationFactory.CreateInvalidOperation(_semanticModel, parent.Syntax, ImmutableArray(Of IOperation).Empty, isImplicit) 333ImmutableArray(Of IArgumentOperation).Empty, 432initializer = New VariableInitializerOperation(locals:=ImmutableArray(Of ILocalSymbol).Empty, value, _semanticModel, initializerSyntax, isImplicit) 441initializer = New VariableInitializerOperation(locals:=ImmutableArray(Of ILocalSymbol).Empty, value, _semanticModel, initializerSyntax, isImplicit:=False) 446ImmutableArray(Of IOperation).Empty, 460initializer = New VariableInitializerOperation(locals:=ImmutableArray(Of ILocalSymbol).Empty, initializerValue, _semanticModel, syntax, isImplicit:=True) 463Dim ignoredArguments = ImmutableArray(Of IOperation).Empty
PredefinedPreprocessorSymbols.vb (1)
52symbols = ImmutableArray(Of KeyValuePair(Of String, Object)).Empty
Semantics\Operators.vb (5)
3154Return New OverloadResolutionResult(ImmutableArray(Of CandidateAnalysisResult).Empty, 3159Return New OverloadResolutionResult(ImmutableArray(Of CandidateAnalysisResult).Empty, False, False, asyncLambdaSubToFunctionMismatch:=Nothing) 3247Dim methodGroup = New BoundMethodGroup(argument1.Syntax, Nothing, ImmutableArray(Of MethodSymbol).Empty, LookupResultKind.Good, Nothing, QualificationKind.Unqualified) 3328Return ImmutableArray(Of SyntaxReference).Empty 3430Return ImmutableArray(Of Location).Empty
Semantics\OverloadResolution.vb (7)
446Return ImmutableArray(Of TypeParameterSymbol).Empty 790ImmutableArray(Of BoundExpression).Empty, 932Dim typeArguments = If(methodGroup.TypeArgumentsOpt IsNot Nothing, methodGroup.TypeArgumentsOpt.Arguments, ImmutableArray(Of TypeSymbol).Empty) 936typeArguments = ImmutableArray(Of TypeSymbol).Empty 940arguments = ImmutableArray(Of BoundExpression).Empty 1092arguments = ImmutableArray(Of BoundExpression).Empty 1111CollectOverloadedCandidates(binder, results, candidates, ImmutableArray(Of TypeSymbol).Empty,
src\Compilers\VisualBasic\BasicAnalyzerDriver\VisualBasicDeclarationComputer.vb (1)
70builder.Add(New DeclarationInfo(name, ImmutableArray(Of SyntaxNode).Empty, declaredSymbol))
Symbols\AnonymousTypes\PublicSymbols\AnonymousDelegate_TypePublicSymbol.vb (1)
159Return ImmutableArray(Of NamedTypeSymbol).Empty
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_TypePublicSymbol.vb (3)
85_interfaces = ImmutableArray(Of NamedTypeSymbol).Empty 135method.SetParameters(ImmutableArray(Of ParameterSymbol).Empty) 143method.SetParameters(ImmutableArray(Of ParameterSymbol).Empty)
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (6)
73Return ImmutableArray(Of TypeParameterSymbol).Empty 153Return ImmutableArray(Of NamedTypeSymbol).Empty 157Return ImmutableArray(Of NamedTypeSymbol).Empty 161Return ImmutableArray(Of NamedTypeSymbol).Empty 178Return ImmutableArray(Of SyntaxReference).Empty 219Return ImmutableArray(Of String).Empty
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (1)
150Return ImmutableArray(Of NamedTypeSymbol).Empty
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertySymbol.vb (6)
61Return ImmutableArray(Of ParameterSymbol).Empty 67Return ImmutableArray(Of CustomModifier).Empty 73Return ImmutableArray(Of CustomModifier).Empty 145Return ImmutableArray(Of PropertySymbol).Empty 197Return ImmutableArray(Of Location).Empty 203Return ImmutableArray(Of SyntaxReference).Empty
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_TemplateSymbol.vb (1)
89_interfaces = ImmutableArray(Of NamedTypeSymbol).Empty
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (7)
70_typeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 195Return ImmutableArray(Of String).Empty 252Return ImmutableArray(Of NamedTypeSymbol).Empty 256Return ImmutableArray(Of NamedTypeSymbol).Empty 260Return ImmutableArray(Of NamedTypeSymbol).Empty 271Return ImmutableArray(Of Location).Empty 277Return ImmutableArray(Of SyntaxReference).Empty
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTypeParameterSymbol.vb (3)
41Return ImmutableArray(Of TypeSymbol).Empty 53Return ImmutableArray(Of Location).Empty 59Return ImmutableArray(Of SyntaxReference).Empty
Symbols\ArrayTypeSymbol.vb (10)
94Return ImmutableArray(Of NamedTypeSymbol).Empty 124Return ImmutableArray(Of Integer).Empty 201Return ImmutableArray(Of Symbol).Empty 210Return ImmutableArray(Of Symbol).Empty 219Return ImmutableArray(Of NamedTypeSymbol).Empty 229Return ImmutableArray(Of NamedTypeSymbol).Empty 239Return ImmutableArray(Of NamedTypeSymbol).Empty 285Return ImmutableArray(Of Location).Empty 297Return ImmutableArray(Of SyntaxReference).Empty 621Return ImmutableArray(Of NamedTypeSymbol).Empty
Symbols\AssemblySymbol.vb (1)
231Return ImmutableArray(Of SyntaxReference).Empty
Symbols\CustomModifier.vb (1)
52Return ImmutableArray(Of CustomModifier).Empty
Symbols\ErrorMethodSymbol.vb (9)
56Return ImmutableArray(Of SyntaxReference).Empty 62Return ImmutableArray(Of MethodSymbol).Empty 67Return ImmutableArray(Of String).Empty 186Return ImmutableArray(Of Location).Empty 204Return ImmutableArray(Of ParameterSymbol).Empty 222Return ImmutableArray(Of CustomModifier).Empty 228Return ImmutableArray(Of CustomModifier).Empty 246Return ImmutableArray(Of TypeSymbol).Empty 252Return ImmutableArray(Of TypeParameterSymbol).Empty
Symbols\ErrorTypeSymbol.vb (13)
49Return ImmutableArray(Of NamedTypeSymbol).Empty 57Return ImmutableArray(Of NamedTypeSymbol).Empty 80Return ImmutableArray(Of Symbol).Empty 84Return ImmutableArray(Of Symbol).Empty 88Return ImmutableArray(Of NamedTypeSymbol).Empty 92Return ImmutableArray(Of NamedTypeSymbol).Empty 96Return ImmutableArray(Of NamedTypeSymbol).Empty 129Return ImmutableArray(Of Location).Empty 135Return ImmutableArray(Of SyntaxReference).Empty 184Return ImmutableArray(Of TypeSymbol).Empty 200Return ImmutableArray(Of TypeParameterSymbol).Empty 285Return ImmutableArray(Of String).Empty 375Return ImmutableArray(Of Symbol).Empty
Symbols\EventSymbol.vb (2)
89Return If(field Is Nothing, ImmutableArray(Of VisualBasicAttributeData).Empty, field.GetAttributes()) 146Return ImmutableArray(Of ParameterSymbol).Empty
Symbols\ExtendedErrorTypeSymbol.vb (1)
87_candidateSymbols = ImmutableArray(Of Symbol).Empty
Symbols\FieldSymbol.vb (1)
466Return ImmutableArray(Of CustomModifier).Empty
Symbols\IndexedTypeParameterSymbol.vb (3)
139Return ImmutableArray(Of TypeSymbol).Empty 157Return ImmutableArray(Of Location).Empty 163Return ImmutableArray(Of SyntaxReference).Empty
Symbols\InstanceErrorTypeSymbol.vb (5)
26_lazyTypeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 204Return ImmutableArray(Of TypeSymbol).Empty 215Return ImmutableArray(Of TypeParameterConstraint).Empty 250Return ImmutableArray(Of Location).Empty 256Return ImmutableArray(Of SyntaxReference).Empty
Symbols\InstanceTypeSymbol.vb (1)
28Return ImmutableArray(Of TypeSymbol).Empty
Symbols\LabelSymbol.vb (2)
70Return ImmutableArray(Of Location).Empty 153Return ImmutableArray(Of SyntaxReference).Empty
Symbols\MergedNamespaceSymbol.vb (1)
593Public Shared ReadOnly GlobalNamespace As New NamespaceGroupSymbol(Nothing, ImmutableArray(Of NamespaceSymbol).Empty)
Symbols\Metadata\PE\PEEventSymbol.vb (2)
249Return ImmutableArray(Of SyntaxReference).Empty 275Return ImmutableArray(Of EventSymbol).Empty
Symbols\Metadata\PE\PEFieldSymbol.vb (1)
365Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Metadata\PE\PEMethodSymbol.vb (12)
245retVal._lazyCustomAttributes = ImmutableArray(Of VisualBasicAttributeData).Empty 249retVal._lazyConditionalAttributeSymbols = ImmutableArray(Of String).Empty 656Return ImmutableArray(Of VisualBasicAttributeData).Empty 660InterlockedOperations.Initialize(uncommonFields._lazyCustomAttributes, ImmutableArray(Of VisualBasicAttributeData).Empty), 942Return ImmutableArray(Of SyntaxReference).Empty 1045ImmutableArray(Of TypeParameterSymbol).Empty) 1065params = ImmutableArray(Of ParameterSymbol).Empty 1107Return ImmutableArray(Of TypeSymbol).Empty 1128Return ImmutableArray(Of TypeParameterSymbol).Empty 1139Return ImmutableArray(Of TypeParameterSymbol).Empty 1333Return ImmutableArray(Of String).Empty 1337InterlockedOperations.Initialize(uncommonFields._lazyConditionalAttributeSymbols, ImmutableArray(Of String).Empty),
Symbols\Metadata\PE\PEModuleSymbol.vb (2)
181ImmutableArray(Of VisualBasicAttributeData).Empty), 236Return ImmutableArray(Of VisualBasicAttributeData).Empty
Symbols\Metadata\PE\PENamedTypeSymbol.vb (5)
153_lazyTypeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 276Return ImmutableArray(Of NamedTypeSymbol).Empty 766Return ImmutableArray(Of Symbol).Empty 811Return ImmutableArray(Of NamedTypeSymbol).Empty 826Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Metadata\PE\PENamespaceSymbol.vb (4)
100Return ImmutableArray(Of Symbol).Empty 125Return ImmutableArray(Of NamedTypeSymbol).Empty 140Return ImmutableArray(Of SyntaxReference).Empty 305Return ImmutableArray(Of NamedTypeSymbol).Empty
Symbols\Metadata\PE\PEParameterSymbol.vb (7)
175_lazyCustomAttributes = ImmutableArray(Of VisualBasicAttributeData).Empty 176_lazyHiddenAttributes = ImmutableArray(Of VisualBasicAttributeData).Empty 402ImmutableInterlocked.InterlockedInitialize(_lazyHiddenAttributes, ImmutableArray(Of VisualBasicAttributeData).Empty) 412ImmutableInterlocked.InterlockedInitialize(_lazyHiddenAttributes, ImmutableArray(Of VisualBasicAttributeData).Empty) 462Return ImmutableArray(Of SyntaxReference).Empty 504Return ImmutableArray(Of CustomModifier).Empty 510Return ImmutableArray(Of CustomModifier).Empty
Symbols\Metadata\PE\PEPropertySymbol.vb (5)
297Return ImmutableArray(Of CustomModifier).Empty 303Return ImmutableArray(Of CustomModifier).Empty 339Return ImmutableArray(Of SyntaxReference).Empty 365Return ImmutableArray(Of PropertySymbol).Empty 463Return ImmutableArray(Of ParameterSymbol).Empty
Symbols\Metadata\PE\PETypeParameterSymbol.vb (1)
281Return ImmutableArray(Of SyntaxReference).Empty
Symbols\MethodSymbol.vb (4)
169Return ImmutableArray(Of VisualBasicAttributeData).Empty 351Return ImmutableArray(Of HandledEvent).Empty 806Return ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)).Empty 1106Return ImmutableArray(Of INamedTypeSymbol).Empty
Symbols\MissingAssemblySymbol.vb (3)
111Return ImmutableArray(Of Location).Empty 120Return ImmutableArray(Of AssemblySymbol).Empty 128Return ImmutableArray(Of AssemblySymbol).Empty
Symbols\MissingModuleSymbol.vb (3)
96Return ImmutableArray(Of Location).Empty 123Return ImmutableArray(Of AssemblyIdentity).Empty 127Return ImmutableArray(Of AssemblySymbol).Empty
Symbols\MissingNamespaceSymbol.vb (10)
87Return ImmutableArray(Of Location).Empty 93Return ImmutableArray(Of SyntaxReference).Empty 98Return ImmutableArray(Of NamedTypeSymbol).Empty 102Return ImmutableArray(Of NamedTypeSymbol).Empty 106Return ImmutableArray(Of NamedTypeSymbol).Empty 110Return ImmutableArray(Of NamedTypeSymbol).Empty 114Return ImmutableArray(Of NamedTypeSymbol).Empty 118Return ImmutableArray(Of Symbol).Empty 122Return ImmutableArray(Of Symbol).Empty 144Return ImmutableArray(Of NamedTypeSymbol).Empty
Symbols\ModuleSymbol.vb (1)
82Return ImmutableArray(Of SyntaxReference).Empty
Symbols\NamedTypeSymbol.vb (5)
66Return ImmutableArray(Of CustomModifier).Empty 409Dim instanceCandidates As ImmutableArray(Of Symbol) = If(includeInstance, GetMembers(WellKnownMemberNames.InstanceConstructorName), ImmutableArray(Of Symbol).Empty) 410Dim sharedCandidates As ImmutableArray(Of Symbol) = If(includeShared, GetMembers(WellKnownMemberNames.StaticConstructorName), ImmutableArray(Of Symbol).Empty) 413Return ImmutableArray(Of TMethodSymbol).Empty 827Return ImmutableArray(Of NamedTypeSymbol).Empty
Symbols\OverriddenMembersResult.vb (3)
22New OverriddenMembersResult(Of TSymbol)(ImmutableArray(Of TSymbol).Empty, 23ImmutableArray(Of TSymbol).Empty, 24ImmutableArray(Of TSymbol).Empty)
Symbols\PreprocessingSymbol.vb (1)
30Return ImmutableArray(Of Location).Empty
Symbols\PropertySymbol.vb (1)
291Return If(field Is Nothing, ImmutableArray(Of VisualBasicAttributeData).Empty, field.GetAttributes())
Symbols\ReducedExtensionMethodSymbol.vb (5)
189Dim fixedTypeParameters = ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)).Empty 219_curriedTypeParameters = ImmutableArray(Of ReducedTypeParameterSymbol).Empty 242_curriedTypeParameters = ImmutableArray(Of ReducedTypeParameterSymbol).Empty 411_lazyParameters = ImmutableArray(Of ReducedParameterSymbol).Empty 553Return ImmutableArray(Of MethodSymbol).Empty
Symbols\ReferenceManager.vb (1)
73Return ImmutableArray(Of AssemblySymbol).Empty
Symbols\Retargeting\RetargetingMethodSymbol.vb (3)
111_lazyTypeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 127Return ImmutableArray(Of TypeSymbol).Empty 207Return ImmutableArray(Of ParameterSymbol).Empty
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (1)
91_lazyTypeParameters = ImmutableArray(Of TypeParameterSymbol).Empty
Symbols\Retargeting\RetargetingPropertySymbol.vb (1)
224Return ImmutableArray(Of ParameterSymbol).Empty
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
984ImmutableArray(Of MethodSymbol).Empty)
Symbols\Source\CrefTypeParameterSymbol.vb (3)
49Return ImmutableArray(Of VisualBasicAttributeData).Empty 78Return ImmutableArray(Of TypeSymbol).Empty 89Return ImmutableArray(Of TypeParameterConstraint).Empty
Symbols\Source\CustomEventAccessorSymbol.vb (2)
49Return ImmutableArray(Of TypeParameterSymbol).Empty 108Return ImmutableArray(Of CustomModifier).Empty
Symbols\Source\CustomModifierUtils.vb (1)
121If(thisParam.IsByRef, overriddenParam.RefCustomModifiers, ImmutableArray(Of CustomModifier).Empty))
Symbols\Source\ImplementsHelper.vb (4)
33Return ImmutableArray(Of Symbol).Empty 110Return ImmutableArray(Of TSymbol).Empty 117Return ImmutableArray(Of TSymbol).Empty 667Return ImmutableArray(Of TSymbol).Empty
Symbols\Source\ImplicitNamedTypeSymbol.vb (4)
47Return ImmutableArray(Of NamedTypeSymbol).Empty 62Return ImmutableArray(Of NamedTypeSymbol).Empty 67Return ImmutableArray(Of TypeParameterSymbol).Empty 130Return ImmutableArray(Of String).Empty
Symbols\Source\LambdaParameterSymbol.vb (3)
35_location = ImmutableArray(Of Location).Empty 169Return ImmutableArray(Of CustomModifier).Empty 175Return ImmutableArray(Of CustomModifier).Empty
Symbols\Source\LambdaSymbol.vb (6)
98Return ImmutableArray(Of String).Empty 151Return ImmutableArray(Of MethodSymbol).Empty 308Return ImmutableArray(Of CustomModifier).Empty 314Return ImmutableArray(Of CustomModifier).Empty 326Return ImmutableArray(Of TypeSymbol).Empty 332Return ImmutableArray(Of TypeParameterSymbol).Empty
Symbols\Source\LocalSymbol.vb (3)
585Return ImmutableArray(Of SyntaxReference).Empty 925Return ImmutableArray(Of SyntaxReference).Empty 931Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\MeParameterSymbol.vb (4)
44Return If(_container Is Nothing, ImmutableArray(Of Location).Empty, _container.Locations) 50Return ImmutableArray(Of SyntaxReference).Empty 92Return ImmutableArray(Of CustomModifier).Empty 98Return ImmutableArray(Of CustomModifier).Empty
Symbols\Source\RangeVariableSymbol.vb (2)
217Return ImmutableArray(Of SyntaxReference).Empty 273Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SourceAssemblySymbol.vb (3)
306netModuleNames = ImmutableArray(Of String).Empty 307Return ImmutableArray(Of VisualBasicAttributeData).Empty 1572ImmutableArray(Of TypedConstant).Empty,
Symbols\Source\SourceClonedParameterSymbol.vb (1)
37Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SourceComplexParameterSymbol.vb (3)
191Return ImmutableArray(Of SyntaxReference).Empty 395Return ImmutableArray(Of CustomModifier).Empty 401Return ImmutableArray(Of CustomModifier).Empty
Symbols\Source\SourceDeclareMethodSymbol.vb (1)
110Return ImmutableArray(Of TypeParameterSymbol).Empty
Symbols\Source\SourceDelegateMethodSymbol.vb (3)
166Return ImmutableArray(Of SyntaxReference).Empty 176Return ImmutableArray(Of TypeParameterSymbol).Empty 203Return ImmutableArray(Of String).Empty
Symbols\Source\SourceEventSymbol.vb (2)
278Return ImmutableArray(Of EventSymbol).Empty 393Return ImmutableArray(Of MethodSymbol).Empty
Symbols\Source\SourceFieldSymbol.vb (1)
153Return ImmutableArray(Of CustomModifier).Empty
Symbols\Source\SourceMemberContainerTypeSymbol.vb (3)
1636Return ImmutableArray(Of NamedTypeSymbol).Empty 3178Return ImmutableArray(Of Symbol).Empty 3186Return ImmutableArray(Of Symbol).Empty
Symbols\Source\SourceMemberMethodSymbol.vb (4)
309Return ImmutableArray(Of TypeParameterSymbol).Empty 374ImmutableArray(Of MethodSymbol).Empty, 409Return ImmutableArray(Of MethodSymbol).Empty 575Return ImmutableArray(Of HandledEvent).Empty
Symbols\Source\SourceMethodSymbol.vb (13)
117handledEvents = ImmutableArray(Of HandledEvent).Empty 623Return ImmutableArray(Of MethodSymbol).Empty 841ImmutableArray(Of Location).Empty, 1199Return New BoundBlock(methodBlock, methodBlock.Statements, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(boundStatement)) 1268Return ImmutableArray(Of CustomModifier).Empty 1316Return ImmutableArray(Of CustomModifier).Empty 1581Return If(data IsNot Nothing, data.ConditionalSymbols, ImmutableArray(Of String).Empty) 2142fakeTypeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 2150ImmutableArray(Of CustomModifier).Empty, 2151ImmutableArray(Of CustomModifier).Empty, 2166returnTypeCustomModifiers:=ImmutableArray(Of CustomModifier).Empty, 2167refCustomModifiers:=ImmutableArray(Of CustomModifier).Empty, 2168explicitInterfaceImplementations:=ImmutableArray(Of MethodSymbol).Empty,
Symbols\Source\SourceModuleSymbol.vb (2)
464member, importsClausePosition, If(isPrjectImportDeclaration, Nothing, syntaxRef), ImmutableArray(Of AssemblySymbol).Empty) 478Dim pair = New AliasAndImportsClausePosition([alias], importsClausePosition, syntaxRef, ImmutableArray(Of AssemblySymbol).Empty)
Symbols\Source\SourceNamedTypeSymbol.vb (3)
909Return ImmutableArray(Of TypeParameterSymbol).Empty 1601Return If(m_baseCycleDiagnosticInfo Is Nothing, declaredBases, ImmutableArray(Of NamedTypeSymbol).Empty) 2115Return If(data IsNot Nothing, data.ConditionalSymbols, ImmutableArray(Of String).Empty)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (16)
122Dim interfaces As ImmutableArray(Of NamedTypeSymbol) = ImmutableArray(Of NamedTypeSymbol).Empty 779Return ImmutableArray(Of NamedTypeSymbol).Empty 837Return ImmutableArray(Of String).Empty 881Return ImmutableArray(Of NamedTypeSymbol).Empty 889Return ImmutableArray(Of NamedTypeSymbol).Empty 942Return ImmutableArray(Of TypeSymbol).Empty 970Return ImmutableArray(Of TypeParameterSymbol).Empty 981Return ImmutableArray(Of VisualBasicAttributeData).Empty 1056_parameters = ImmutableArray(Of ParameterSymbol).Empty 1088Return ImmutableArray(Of String).Empty 1316Return ImmutableArray(Of TypeSymbol).Empty 1322Return ImmutableArray(Of TypeParameterSymbol).Empty 1375Return ImmutableArray(Of VisualBasicAttributeData).Empty 1630Return ImmutableArray(Of VisualBasicAttributeData).Empty 1690_parameters = ImmutableArray(Of ParameterSymbol).Empty 1746Return ImmutableArray(Of PropertySymbol).Empty
Symbols\Source\SourceNamespaceSymbol.vb (3)
231Return ImmutableArray(Of Symbol).Empty 248Return ImmutableArray(Of NamedTypeSymbol).Empty 496Return ImmutableArray(Of NamedTypeSymbol).Empty
Symbols\Source\SourceParameterSymbol.vb (2)
74Return ImmutableArray(Of Location).Empty 92Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SourcePropertyAccessorSymbol.vb (4)
46Return ImmutableArray(Of ParameterSymbol).Empty 139Return If(Me.m_property.IsCustomProperty, MyBase.DeclaringSyntaxReferences, ImmutableArray(Of SyntaxReference).Empty) 301Return ImmutableArray(Of TypeParameterSymbol).Empty 353Return If(Me.MethodKind = MethodKind.PropertySet, ImmutableArray(Of CustomModifier).Empty, m_property.TypeCustomModifiers)
Symbols\Source\SourcePropertySymbol.vb (10)
267prop._lazyImplementedProperties = ImmutableArray(Of PropertySymbol).Empty 328Return ImmutableArray(Of CustomModifier).Empty 801ImmutableArray(Of CustomModifier).Empty, 802ImmutableArray(Of CustomModifier).Empty, 816typeCustomModifiers:=ImmutableArray(Of CustomModifier).Empty, 817refCustomModifiers:=ImmutableArray(Of CustomModifier).Empty, 875Return ImmutableArray(Of ParameterSymbol).Empty 943Return ImmutableArray(Of MethodSymbol).Empty 970Return ImmutableArray(Of CustomModifier).Empty 1170Return ImmutableArray(Of PropertySymbol).Empty
Symbols\Source\SourceSimpleParameterSymbol.vb (2)
152Return ImmutableArray(Of CustomModifier).Empty 158Return ImmutableArray(Of CustomModifier).Empty
Symbols\Source\SourceTypeParameterSymbol.vb (1)
41Return ImmutableArray(Of VisualBasicAttributeData).Empty
Symbols\Source\SourceWithEventsBackingFieldSymbol.vb (1)
45Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SynthesizedConstructorSymbol.vb (1)
51Return ImmutableArray(Of ParameterSymbol).Empty
Symbols\Source\SynthesizedEntryPointSymbol.vb (8)
119Return ImmutableArray(Of TypeParameterSymbol).Empty 135Return ImmutableArray(Of Location).Empty 147Return ImmutableArray(Of CustomModifier).Empty 153Return ImmutableArray(Of TypeSymbol).Empty 171Return ImmutableArray(Of MethodSymbol).Empty 213arguments:=ImmutableArray(Of BoundExpression).Empty, 243Return ImmutableArray(Of ParameterSymbol).Empty 278ImmutableArray(Of BoundExpression).Empty,
Symbols\Source\SynthesizedEventAccessorSymbol.vb (6)
127ImmutableArray(Of LocalSymbol).Empty, 128ImmutableArray(Of BoundStatement).Empty, 232locals:=ImmutableArray(Of LocalSymbol).Empty, 244locals:=ImmutableArray(Of LocalSymbol).Empty, 298ImmutableArray(Of LocalSymbol).Empty, 363ImmutableArray(Of LocalSymbol).Empty,
Symbols\Source\SynthesizedFieldSymbol.vb (2)
88Return ImmutableArray(Of CustomModifier).Empty 144Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SynthesizedLambdaSymbol.vb (1)
61Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SynthesizedMainTypeEntryPoint.vb (3)
61instance = binder.BindObjectCreationExpression(syntaxNode, container, ImmutableArray(Of BoundExpression).Empty, diagnostics) 79statement = New BoundBadStatement(syntaxNode, ImmutableArray(Of BoundNode).Empty, hasErrors:=True) 82Return New BoundBlock(syntaxNode, Nothing, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(statement, New BoundReturnStatement(syntaxNode, Nothing, Nothing, Nothing)))
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (2)
99boundStatement = New BoundBadStatement(accessorBlock, ImmutableArray(Of BoundNode).Empty) 128Return New BoundBlock(accessorBlock, Nothing, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundStatement)(boundStatement))
Symbols\Source\SynthesizedMyGroupCollectionPropertySymbol.vb (2)
103Return ImmutableArray(Of SyntaxReference).Empty 109Return ImmutableArray(Of Location).Empty
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (1)
51ImmutableArray(Of LocalSymbol).Empty,
Symbols\Source\SynthesizedWithEventsAccessorSymbol.vb (2)
48Return ImmutableArray(Of MethodSymbol).Empty 145Return ImmutableArray(Of ParameterSymbol).Empty
Symbols\SubstitutedMethodSymbol.vb (3)
34Return ImmutableArray(Of ParameterSymbol).Empty 527Return ImmutableArray(Of TypeSymbol).Empty 533Return ImmutableArray(Of TypeParameterSymbol).Empty
Symbols\SubstitutedNamedType.vb (4)
254Return ImmutableArray(Of NamedTypeSymbol).Empty 282Return ImmutableArray(Of NamedTypeSymbol).Empty 883Return ImmutableArray(Of TypeParameterSymbol).Empty 889Return ImmutableArray(Of TypeSymbol).Empty
Symbols\SubstitutedPropertySymbol.vb (1)
255Return ImmutableArray(Of ParameterSymbol).Empty
Symbols\Symbol.vb (3)
368Return ImmutableArray(Of VisualBasicSyntaxNode).Empty 394Return ImmutableArray(Of SyntaxReference).Empty 434Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Symbol_Attributes.vb (4)
30Return ImmutableArray(Of VisualBasicAttributeData).Empty 294boundAttributes = ImmutableArray(Of VisualBasicAttributeData).Empty 355binders = ImmutableArray(Of Binder).Empty 356Return ImmutableArray(Of AttributeSyntax).Empty
Symbols\SymbolExtensions.vb (1)
346Return ImmutableArray(Of ParameterSymbol).Empty
Symbols\SynthesizedSymbols\SynthesizedAttributeData.vb (2)
58arguments = ImmutableArray(Of TypedConstant).Empty 62namedArguments = ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty
Symbols\SynthesizedSymbols\SynthesizedBackingFieldBase.vb (2)
35Return ImmutableArray(Of CustomModifier).Empty 91Return ImmutableArray(Of SyntaxReference).Empty
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (9)
122Return ImmutableArray(Of MethodSymbol).Empty 306Return ImmutableArray(Of SyntaxReference).Empty 335Return ImmutableArray(Of ParameterSymbol).Empty 359Return ImmutableArray(Of VisualBasicAttributeData).Empty 367Return ImmutableArray(Of CustomModifier).Empty 373Return ImmutableArray(Of CustomModifier).Empty 384Return ImmutableArray(Of TypeSymbol).Empty 394Return ImmutableArray(Of TypeParameterSymbol).Empty 424Return ImmutableArray(Of String).Empty
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (8)
185Return ImmutableArray(Of NamedTypeSymbol).Empty 189Return ImmutableArray(Of NamedTypeSymbol).Empty 193Return ImmutableArray(Of NamedTypeSymbol).Empty 227Return ImmutableArray(Of SyntaxReference).Empty 236Return ImmutableArray(Of NamedTypeSymbol).Empty 244Return ImmutableArray(Of NamedTypeSymbol).Empty 308Return ImmutableArray(Of String).Empty 374Return ImmutableArray(Of TypeParameterSymbol).Empty
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (10)
56Return ImmutableArray(Of String).Empty 144Return ImmutableArray(Of Location).Empty 150Return ImmutableArray(Of SyntaxReference).Empty 176Return ImmutableArray(Of ParameterSymbol).Empty 242Return ImmutableArray(Of MethodSymbol).Empty 304Return ImmutableArray(Of TypeSymbol).Empty 310Return ImmutableArray(Of TypeParameterSymbol).Empty 316Return ImmutableArray(Of CustomModifier).Empty 322Return ImmutableArray(Of CustomModifier).Empty 327Return ImmutableArray(Of VisualBasicAttributeData).Empty
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionSymbol.vb (9)
55Return ImmutableArray(Of NamedTypeSymbol).Empty 59Return ImmutableArray(Of NamedTypeSymbol).Empty 63Return ImmutableArray(Of NamedTypeSymbol).Empty 132Return ImmutableArray(Of Location).Empty 138Return ImmutableArray(Of SyntaxReference).Empty 147Return ImmutableArray(Of NamedTypeSymbol).Empty 155Return ImmutableArray(Of NamedTypeSymbol).Empty 213Return ImmutableArray(Of String).Empty 279Return ImmutableArray(Of TypeParameterSymbol).Empty
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (1)
168Return ImmutableArray(Of Location).Empty
Symbols\SynthesizedSymbols\SynthesizedIntrinsicOperatorSymbol.vb (1)
154Return ImmutableArray(Of Location).Empty
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 (2)
90Return ImmutableArray(Of ParameterSymbol).Empty 176Return ImmutableArray(Of Location).Empty
Symbols\SynthesizedSymbols\SynthesizedMethodBase.vb (9)
64Return ImmutableArray(Of MethodSymbol).Empty 122Return ImmutableArray(Of CustomModifier).Empty 134Return ImmutableArray(Of TypeSymbol).Empty 140Return ImmutableArray(Of TypeParameterSymbol).Empty 146Return ImmutableArray(Of CustomModifier).Empty 151Return ImmutableArray(Of VisualBasicAttributeData).Empty 162Return ImmutableArray(Of SyntaxReference).Empty 174Return ImmutableArray(Of ParameterSymbol).Empty 192Return ImmutableArray(Of String).Empty
Symbols\SynthesizedSymbols\SynthesizedOverridingWitheventsProperty.vb (3)
108Return ImmutableArray(Of PropertySymbol).Empty 192Return ImmutableArray(Of ParameterSymbol).Empty 230Return ImmutableArray(Of SyntaxReference).Empty
Symbols\SynthesizedSymbols\SynthesizedParameterSymbol.vb (5)
53Return ImmutableArray(Of CustomModifier).Empty 59Return ImmutableArray(Of CustomModifier).Empty 210Return ImmutableArray(Of Location).Empty 216Return ImmutableArray(Of SyntaxReference).Empty 332ImmutableArray(Of CustomModifier).Empty) ' Never ByRef
Symbols\SynthesizedSymbols\SynthesizedPropertyBase.vb (4)
34Return ImmutableArray(Of ParameterSymbol).Empty 40Return ImmutableArray(Of CustomModifier).Empty 46Return ImmutableArray(Of CustomModifier).Empty 76Return ImmutableArray(Of PropertySymbol).Empty
Symbols\SynthesizedSymbols\SynthesizedRegularMethodBase.vb (1)
151Return ImmutableArray(Of ParameterSymbol).Empty
Symbols\SynthesizedSymbols\SynthesizedSimpleMethodSymbol.vb (1)
36ImmutableArray(Of MethodSymbol).Empty,
Symbols\Tuples\TupleErrorFieldSymbol.vb (2)
47Me._locations = If((location Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(location)) 101ImmutableArray(Of SyntaxReference).Empty,
Symbols\Tuples\TupleFieldSymbol.vb (2)
151Me._locations = If((location Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(location)) 169ImmutableArray(Of SyntaxReference).Empty,
Symbols\Tuples\TupleTypeSymbol.vb (10)
202Return ImmutableArray(Of TypeParameterSymbol).Empty 218Return ImmutableArray(Of TypeSymbol).Empty 336Me.New(If((locationOpt Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(locationOpt)), 392Return TupleTypeSymbol.Create(ImmutableArray(Of Location).Empty, tupleCompatibleType, Nothing, Nothing, Nothing) 396Return TupleTypeSymbol.Create(ImmutableArray(Of Location).Empty, tupleCompatibleType, Nothing, elementNames, errorPositions:=Nothing) 403Return TupleTypeSymbol.Create(If((locationOpt Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(locationOpt)), 951Return ImmutableArray(Of NamedTypeSymbol).Empty 957Return ImmutableArray(Of NamedTypeSymbol).Empty 963Return ImmutableArray(Of NamedTypeSymbol).Empty 1030Return ImmutableArray(Of String).Empty
Symbols\TypeParameterSymbol.vb (7)
83Return ImmutableArray(Of Symbol).Empty 88Return ImmutableArray(Of Symbol).Empty 113Return ImmutableArray(Of NamedTypeSymbol).Empty 118Return ImmutableArray(Of NamedTypeSymbol).Empty 123Return ImmutableArray(Of NamedTypeSymbol).Empty 160Return ImmutableArray(Of NamedTypeSymbol).Empty 207Return ImmutableArray(Of TypeSymbol).Empty
Symbols\TypeSubstitution.vb (6)
144Return New TypeWithModifiers(tp, ImmutableArray(Of CustomModifier).Empty) 151Return New TypeWithModifiers(tp, ImmutableArray(Of CustomModifier).Empty) 207Return ImmutableArray(Of CustomModifier).Empty 342Return Concat(sub1, targetGenericDefinition, ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)).Empty) 463currentParent = Concat(currentParent, targetGenericDefinition, ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)).Empty) 526Concat(parent, containingType, ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)).Empty))
Symbols\TypeWithModifiers.vb (1)
24Me.CustomModifiers = ImmutableArray(Of CustomModifier).Empty
Symbols\UnboundGenericType.vb (10)
272Return ImmutableArray(Of NamedTypeSymbol).Empty 276Return ImmutableArray(Of NamedTypeSymbol).Empty 280Return ImmutableArray(Of NamedTypeSymbol).Empty 367_lazyTypeArguments = ImmutableArray(Of TypeSymbol).Empty 434Return ImmutableArray(Of TypeParameterSymbol).Empty 640Return ImmutableArray(Of Symbol).Empty 644Return ImmutableArray(Of Symbol).Empty 648Return ImmutableArray(Of NamedTypeSymbol).Empty 652Return ImmutableArray(Of NamedTypeSymbol).Empty 656Return ImmutableArray(Of NamedTypeSymbol).Empty
Symbols\UsedAssemblies.vb (1)
22Return ImmutableArray(Of MetadataReference).Empty
Symbols\WellKnownMembers.vb (3)
166arguments = ImmutableArray(Of TypedConstant).Empty 171namedStringArguments = ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty 711Dim stringArray = ArrayTypeSymbol.CreateSZArray(stringType, ImmutableArray(Of CustomModifier).Empty, stringType.ContainingAssembly)
VisualBasicCompilationOptions.vb (2)
381Return ImmutableArray(Of String).Empty 759value = ImmutableArray(Of Byte).Empty
VisualBasicExtensions.vb (2)
576Return ImmutableArray(Of HandledEvent).Empty 616Return ImmutableArray(Of AttributeData).Empty
VisualBasicParseOptions.vb (1)
195symbols = ImmutableArray(Of KeyValuePair(Of String, Object)).Empty
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (7)
src\Analyzers\VisualBasic\Analyzers\UseInferredMemberName\VisualBasicUseInferredMemberNameDiagnosticAnalyzer.vb (2)
61additionalLocations:=ImmutableArray(Of Location).Empty, 85additionalLocations:=ImmutableArray(Of Location).Empty,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\DirectiveSyntaxExtensions.vb (1)
77ImmutableArray(Of DirectiveTriviaSyntax).Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (4)
208Return ImmutableArray(Of IMethodSymbol).Empty 212Return ImmutableArray(Of IMethodSymbol).Empty 262Return ImmutableArray(Of ISymbol).Empty 276Return ImmutableArray(Of IMethodSymbol).Empty
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (11)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateConversionService.vb (2)
151attributes:=ImmutableArray(Of AttributeData).Empty, 158typeParameters:=ImmutableArray(Of ITypeParameterSymbol).Empty,
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (3)
134ImmutableArray(Of RefKind).Empty) 140ImmutableArray(Of ITypeSymbol).Empty) 146ImmutableArray(Of Boolean).Empty)
src\Analyzers\VisualBasic\CodeFixes\GenerateVariable\VisualBasicGenerateVariableCodeFixProvider.vb (1)
46Return ImmutableArray(Of CodeAction).Empty
src\Analyzers\VisualBasic\CodeFixes\OrderModifiers\VisualBasicOrderModifiersCodeFixProvider.vb (1)
32ImmutableArray(Of String).Empty
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (3)
21Return ImmutableArray(Of ParameterName).Empty 47Return ImmutableArray(Of ParameterName).Empty 69Return ImmutableArray(Of ParameterName).Empty
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSymbolDeclarationService.vb (1)
28ImmutableArray(Of SyntaxReference).Empty,
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
2510_pathResolver = New RelativePathResolver(ImmutableArray(Of String).Empty, baseDirectory) 3596AssertEx.Equal(ImmutableArray(Of String).Empty, parser.ReferencePaths)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
NavigationBar\VisualBasicEditorNavigationBarItemService_CodeGeneration.vb (2)
140parameters:=ImmutableArray(Of IParameterSymbol).Empty, 238parameters:=ImmutableArray(Of IParameterSymbol).Empty,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (9)
Attributes\AssemblyAttributes.vb (3)
587ImmutableArray(Of Byte).Empty, False, False)}). 620ImmutableArray(Of Byte).Empty, False, False), 624ImmutableArray(Of Byte).Empty, False, False)},
Attributes\InternalsVisibleToAndStrongNameTests.vb (1)
48ImmutableArray(Of String).Empty,
CodeGen\CodeGenTests.vb (1)
13753Dim diagnostics = ImmutableArray(Of Diagnostic).Empty
CodeGen\CodeGenTuples.vb (3)
7223Assert.Throws(Of ArgumentException)(Sub() comp.CreateTupleTypeSymbol(elementTypes:=ImmutableArray(Of ITypeSymbol).Empty, elementNames:=Nothing)) 7614Dim ex = Assert.Throws(Of ArgumentException)(Function() comp.CreateTupleTypeSymbol(underlyingType, elementNullableAnnotations:=ImmutableArray(Of NullableAnnotation).Empty)) 7675Dim ex = Assert.Throws(Of ArgumentException)(Function() comp.CreateTupleTypeSymbol(elementTypes, elementNullableAnnotations:=ImmutableArray(Of NullableAnnotation).Empty))
PDB\ChecksumTests.vb (1)
31Dim resolver As New SourceFileResolver(ImmutableArray(Of String).Empty, baseDirectory)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (38)
Binders\EENamedTypeBinder.vb (1)
42Return ImmutableArray(Of Symbol).Empty
Binders\ParametersAndLocalsBinder.vb (1)
58Return ImmutableArray(Of Symbol).Empty
CompilationContext.vb (10)
114_locals = ImmutableArray(Of LocalSymbol).Empty 116_localsForBinding = ImmutableArray(Of LocalSymbol).Empty 218constructor.SetParameters(ImmutableArray(Of ParameterSymbol).Empty) 484Dim expression = New BoundObjectCreationExpression(syntax, type.InstanceConstructors(0), ImmutableArray(Of BoundExpression).Empty, Nothing, type) 799aliases([alias]) = New AliasAndImportsClausePosition(aliasSymbol, position, syntaxReference:=Nothing, ImmutableArray(Of AssemblySymbol).Empty) 806importsBuilder.Add(New NamespaceOrTypeAndImportsClausePosition(typeSymbol, position, syntaxReference:=Nothing, ImmutableArray(Of AssemblySymbol).Empty)) 836importsBuilder.Add(New NamespaceOrTypeAndImportsClausePosition(namespaceOrTypeSymbol, position, syntaxReference:=Nothing, ImmutableArray(Of AssemblySymbol).Empty)) 845aliases([alias]) = New AliasAndImportsClausePosition(aliasSymbol, position, syntaxReference:=Nothing, ImmutableArray(Of AssemblySymbol).Empty) 868aliases([alias]) = New AliasAndImportsClausePosition(aliasSymbol, position, syntaxReference:=Nothing, ImmutableArray(Of AssemblySymbol).Empty) 1124displayClassVariableNamesInOrder = ImmutableArray(Of String).Empty
EEAssemblyBuilder.vb (2)
133dynamicTransformFlags:=ImmutableArray(Of Boolean).Empty, 134tupleElementNames:=ImmutableArray(Of String).Empty)
EvaluationContext.vb (5)
317Dim fileLevelImportRecords = ImmutableArray(Of ImportRecord).Empty 322hoistedLocalScopeRecords:=ImmutableArray(Of HoistedLocalScopeRecord).Empty, 325externAliasRecords:=ImmutableArray(Of ExternAliasRecord).Empty, 328localVariableNames:=ImmutableArray(Of String).Empty, 329localConstants:=ImmutableArray(Of LocalSymbol).Empty,
Rewriters\LocalDeclarationRewriter.vb (2)
65ImmutableArray(Of CustomModifier).Empty, 75Dim customTypeInfoPayloadId = New BoundObjectCreationExpression(syntax, Nothing, ImmutableArray(Of BoundExpression).Empty, Nothing, guidType)
Symbols\DisplayClassVariable.vb (1)
136Return ImmutableArray(Of CustomModifier).Empty
Symbols\EEConstructorSymbol.vb (1)
21ImmutableArray(Of LocalSymbol).Empty,
Symbols\EEDisplayClassFieldLocalSymbol.vb (1)
62Return ImmutableArray(Of SyntaxReference).Empty
Symbols\EELocalConstantSymbol.vb (1)
59Return ImmutableArray(Of SyntaxReference).Empty
Symbols\EELocalSymbol.vb (1)
85Return ImmutableArray(Of SyntaxReference).Empty
Symbols\EEMethodSymbol.vb (3)
302Return ImmutableArray(Of MethodSymbol).Empty 308Return ImmutableArray(Of CustomModifier).Empty 314Return ImmutableArray(Of CustomModifier).Empty
Symbols\EENamedTypeSymbol.vb (3)
178Return ImmutableArray(Of NamedTypeSymbol).Empty 308Return ImmutableArray(Of NamedTypeSymbol).Empty 312Return ImmutableArray(Of NamedTypeSymbol).Empty
Symbols\EEStaticLocalSymbol.vb (1)
56Return ImmutableArray(Of SyntaxReference).Empty
Symbols\EETypeParameterSymbol.vb (1)
111Return ImmutableArray(Of TypeSymbol).Empty
Symbols\ExceptionLocalSymbol.vb (1)
39arguments:=ImmutableArray(Of BoundExpression).Empty,
Symbols\PlaceholderLocalSymbol.vb (1)
96Return ImmutableArray(Of SyntaxReference).Empty
Symbols\PlaceholderMethodSymbol.vb (1)
137Return ImmutableArray(Of Location).Empty
Symbols\SimpleTypeParameterSymbol.vb (1)
87Return ImmutableArray(Of TypeSymbol).Empty
Microsoft.CodeAnalysis.VisualBasic.Features (249)
ChangeSignature\VisualBasicChangeSignatureService.vb (5)
615Return ImmutableArray(Of SyntaxTrivia).Empty 641Return ImmutableArray(Of SyntaxNode).Empty 645Return ImmutableArray(Of SyntaxNode).Empty 653Return ImmutableArray(Of SyntaxNode).Empty 658Return ImmutableArray(Of SyntaxNode).Empty
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (2)
148attributes:=ImmutableArray(Of AttributeData).Empty, 289ImmutableArray(Of IParameterSymbol).Empty)
CodeRefactorings\NodeSelectionHelpers.vb (2)
31Return ImmutableArray(Of SyntaxNode).Empty 48Return ImmutableArray(Of SyntaxNode).Empty
Completion\CompletionProviders\HandlesClauseCompletionProvider.vb (3)
90Return ImmutableArray(Of ISymbol).Empty 114Return ImmutableArray(Of ISymbol).Empty 117Dim result = ImmutableArray(Of IEventSymbol).Empty
Completion\CompletionProviders\ImplementsClauseCompletionProvider.vb (4)
90Dim result = ImmutableArray(Of ISymbol).Empty 141Return ImmutableArray(Of ISymbol).Empty 174Return ImmutableArray(Of ISymbol).Empty 194Return ImmutableArray(Of ISymbol).Empty
Completion\KeywordRecommenders\ArrayStatements\EraseKeywordRecommender.vb (1)
21Return If(context.IsStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\ArrayStatements\PreserveKeywordRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 31Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\ArrayStatements\ReDimKeywordRecommender.vb (1)
21Return If(context.IsStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Declarations\AliasKeywordRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 30ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Declarations\AsKeywordRecommender.vb (3)
23Return ImmutableArray(Of RecommendedKeyword).Empty 119Return ImmutableArray(Of RecommendedKeyword).Empty 132Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\AsyncKeywordRecommender.vb (1)
29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\AttributeScopesKeywordRecommender.vb (2)
25Return ImmutableArray(Of RecommendedKeyword).Empty 43Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\CharsetModifierKeywordRecommender.vb (2)
25Return ImmutableArray(Of RecommendedKeyword).Empty 32ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Declarations\ClassKeywordRecommender.vb (1)
29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\ConstKeywordRecommender.vb (1)
21Return If(context.IsMultiLineStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Declarations\CovarianceModifiersKeywordRecommender.vb (4)
22Return ImmutableArray(Of RecommendedKeyword).Empty 29Return ImmutableArray(Of RecommendedKeyword).Empty 34Return ImmutableArray(Of RecommendedKeyword).Empty 45Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\CustomEventKeywordRecommender.vb (1)
31Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\DeclareKeywordRecommender.vb (1)
29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\DelegateKeywordRecommender.vb (1)
29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\DelegateSubFunctionKeywordRecommender.vb (2)
24Return ImmutableArray(Of RecommendedKeyword).Empty 29ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Declarations\DimKeywordRecommender.vb (1)
38Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\EndBlockKeywordRecommender.vb (2)
20Return ImmutableArray(Of RecommendedKeyword).Empty 63Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\EnumKeywordRecommender.vb (1)
29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\EventKeywordRecommender.vb (2)
32Return ImmutableArray(Of RecommendedKeyword).Empty 49Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\ExternalSubFunctionKeywordRecommender.vb (2)
24Return ImmutableArray(Of RecommendedKeyword).Empty 30ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Declarations\FunctionKeywordRecommender.vb (3)
25Return ImmutableArray(Of RecommendedKeyword).Empty 34Return ImmutableArray(Of RecommendedKeyword).Empty 45Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\GenericConstraintsKeywordRecommender.vb (2)
18Return ImmutableArray(Of RecommendedKeyword).Empty 53Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\GetSetKeywordRecommender.vb (1)
23Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\ImplementsKeywordRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 54Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\ImportsKeywordRecommender.vb (3)
23Return ImmutableArray(Of RecommendedKeyword).Empty 34Return ImmutableArray(Of RecommendedKeyword).Empty 49Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\InheritsKeywordRecommender.vb (1)
35Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\InKeywordRecommender.vb (2)
20Return ImmutableArray(Of RecommendedKeyword).Empty 50Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\InterfaceKeywordRecommender.vb (1)
30Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\IteratorKeywordRecommender.vb (1)
31Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\LibKeywordRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 28ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Declarations\ModifierKeywordsRecommender.vb (1)
20Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\ModuleKeywordRecommender.vb (1)
29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\NamespaceKeywordRecommender.vb (1)
29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\OfKeywordRecommender.vb (3)
18Return ImmutableArray(Of RecommendedKeyword).Empty 23Return ImmutableArray(Of RecommendedKeyword).Empty 103Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\OperatorKeywordRecommender.vb (1)
30Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\OverloadableOperatorRecommender.vb (2)
19Return ImmutableArray(Of RecommendedKeyword).Empty 26Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\ParameterModifiersKeywordRecommender.vb (4)
20Return ImmutableArray(Of RecommendedKeyword).Empty 27Return ImmutableArray(Of RecommendedKeyword).Empty 67Return ImmutableArray(Of RecommendedKeyword).Empty 85Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\PropertyKeywordRecommender.vb (2)
30Return ImmutableArray(Of RecommendedKeyword).Empty 41Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\StaticKeywordRecommender.vb (1)
21Return If(context.IsMultiLineStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Declarations\StructureKeywordRecommender.vb (1)
29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\SubKeywordRecommender.vb (2)
30Return ImmutableArray(Of RecommendedKeyword).Empty 40Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\ToKeywordRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 49Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\EventHandling\AddHandlerKeywordRecommender.vb (1)
25ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\EventHandling\HandlesKeywordRecommender.vb (4)
23Return ImmutableArray(Of RecommendedKeyword).Empty 31Return ImmutableArray(Of RecommendedKeyword).Empty 36Return ImmutableArray(Of RecommendedKeyword).Empty 42Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\EventHandling\RaiseEventKeywordRecommender.vb (1)
23Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\EventHandling\RemoveHandlerKeywordRecommender.vb (1)
27ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Expressions\AddressOfKeywordRecommender.vb (2)
22Return ImmutableArray(Of RecommendedKeyword).Empty 33Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\BinaryOperatorKeywordRecommender.vb (1)
34Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\CastOperatorsKeywordRecommender.vb (1)
69Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\FromKeywordRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 39Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\GetTypeKeywordRecommender.vb (1)
24Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\GetXmlNamespaceKeywordRecommender.vb (1)
29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\GlobalKeywordRecommender.vb (1)
22Return If(context.IsNamespaceContext AndAlso Not context.IsInImportsDirective OrElse context.IsEnumBaseListContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Expressions\IfKeywordRecommender.vb (1)
26Return If(context.IsAnyExpressionContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Expressions\KeyKeywordRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 45Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\LambdaKeywordRecommender.vb (1)
37Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\MeKeywordRecommender.vb (1)
55Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\MyBaseKeywordRecommender.vb (1)
32Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\MyClassKeywordRecommender.vb (2)
30Return ImmutableArray(Of RecommendedKeyword).Empty 40Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\NameOfKeywordRecommender.vb (1)
26Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\NewKeywordRecommender.vb (2)
27Return ImmutableArray(Of RecommendedKeyword).Empty 43Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\NothingKeywordRecommender.vb (1)
21Return If(context.IsAnyExpressionContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Expressions\NotKeywordRecommender.vb (1)
21Return If(context.IsAnyExpressionContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Expressions\TrueFalseKeywordRecommender.vb (1)
28Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\TypeOfKeywordRecommender.vb (1)
21Return If(context.IsAnyExpressionContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Expressions\WithKeywordRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 35Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\OnErrorStatements\ErrorKeywordRecommender.vb (1)
31Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\OnErrorStatements\GoToDestinationsRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 30ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OnErrorStatements\GoToKeywordRecommender.vb (2)
22Return ImmutableArray(Of RecommendedKeyword).Empty 29ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OnErrorStatements\NextKeywordRecommender.vb (2)
22Return ImmutableArray(Of RecommendedKeyword).Empty 28ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OnErrorStatements\OnErrorKeywordRecommender.vb (1)
22Return If(context.IsMultiLineStatementContext AndAlso Not context.IsInLambda, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OnErrorStatements\ResumeKeywordRecommender.vb (2)
20Return ImmutableArray(Of RecommendedKeyword).Empty 38Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\OptionStatements\CompareBinaryTextRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 26Return If(context.TargetToken.IsKind(SyntaxKind.CompareKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OptionStatements\ExplicitOptionsRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 26Return If(context.TargetToken.IsKind(SyntaxKind.ExplicitKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OptionStatements\InferOptionsRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 26Return If(context.TargetToken.IsKind(SyntaxKind.InferKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OptionStatements\OptionKeywordRecommender.vb (2)
22Return ImmutableArray(Of RecommendedKeyword).Empty 37Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\OptionStatements\OptionNamesRecommender.vb (2)
25Return ImmutableArray(Of RecommendedKeyword).Empty 28Return If(context.TargetToken.IsKind(SyntaxKind.OptionKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OptionStatements\StrictOptionsRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 26Return If(context.TargetToken.IsKind(SyntaxKind.StrictKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\PreprocessorDirectives\ConstDirectiveKeywordRecommender.vb (1)
23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\PreprocessorDirectives\ElseDirectiveKeywordRecommender.vb (1)
29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\PreprocessorDirectives\ElseIfDirectiveKeywordRecommender.vb (1)
29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\PreprocessorDirectives\EndIfDirectiveKeywordRecommender.vb (1)
31Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\PreprocessorDirectives\EndRegionDirectiveKeywordRecommender.vb (1)
32Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\PreprocessorDirectives\IfDirectiveKeywordRecommender.vb (1)
23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\PreprocessorDirectives\ReferenceDirectiveKeywordRecommender.vb (1)
23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\PreprocessorDirectives\RegionDirectiveKeywordRecommender.vb (1)
23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\PreprocessorDirectives\WarningDirectiveKeywordRecommender.vb (1)
30Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Queries\AggregateKeywordRecommender.vb (1)
23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\AscendingDescendingKeywordRecommender.vb (1)
25ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\DistinctKeywordRecommender.vb (1)
21Return If(context.IsQueryOperatorContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\EqualsKeywordRecommender.vb (1)
24ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\FromKeywordRecommender.vb (1)
23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\GroupByKeywordRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 32Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Queries\GroupJoinKeywordRecommender.vb (1)
21Return If(context.IsAdditionalJoinOperatorContext(cancellationToken), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\GroupKeywordRecommender.vb (1)
52Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Queries\IntoKeywordRecommender.vb (1)
44Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Queries\JoinKeywordRecommender.vb (1)
33ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\LetKeywordRecommender.vb (1)
21Return If(context.IsQueryOperatorContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\OnKeywordRecommender.vb (1)
35Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Queries\OrderByKeywordRecommender.vb (1)
21Return If(context.IsQueryOperatorContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\SelectKeywordRecommender.vb (1)
21Return If(context.IsQueryOperatorContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\SkipKeywordRecommender.vb (1)
21Return If(context.IsQueryOperatorContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\TakeKeywordRecommender.vb (1)
21Return If(context.IsQueryOperatorContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\WhereKeywordRecommender.vb (1)
21Return If(context.IsQueryOperatorContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\WhileKeywordRecommender.vb (1)
30Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\CallKeywordRecommender.vb (1)
21Return If(context.IsStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\CaseKeywordRecommender.vb (1)
33Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\CatchKeywordRecommender.vb (2)
22Return ImmutableArray(Of RecommendedKeyword).Empty 29ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\ContinueKeywordRecommender.vb (1)
36Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\DoKeywordRecommender.vb (2)
27Return ImmutableArray(Of RecommendedKeyword).Empty 44Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\EachKeywordRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 35Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\ElseIfKeywordRecommender.vb (1)
28Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\ElseKeywordRecommender.vb (1)
48Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\EndKeywordRecommender.vb (1)
21Return If(context.IsStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\ExitKeywordRecommender.vb (3)
35Return ImmutableArray(Of RecommendedKeyword).Empty 39Return ImmutableArray(Of RecommendedKeyword).Empty 44Return If(context.IsStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\FinallyKeywordRecommender.vb (3)
24Return ImmutableArray(Of RecommendedKeyword).Empty 31Return ImmutableArray(Of RecommendedKeyword).Empty 48Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\ForKeywordRecommender.vb (2)
26Return ImmutableArray(Of RecommendedKeyword).Empty 41Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\GoToKeywordRecommender.vb (1)
23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\IfKeywordRecommender.vb (2)
26Return ImmutableArray(Of RecommendedKeyword).Empty 35Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\IsKeywordRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 44Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\LoopKeywordRecommender.vb (2)
25Return ImmutableArray(Of RecommendedKeyword).Empty 38Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\MidKeywordRecommender.vb (1)
26Return If(context.IsStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\NextKeywordRecommender.vb (1)
23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\ReturnKeywordRecommender.vb (1)
23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\SelectKeywordRecommender.vb (1)
30Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\StepKeywordRecommender.vb (1)
31Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\StopKeywordRecommender.vb (1)
21Return If(context.IsStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\SyncLockKeywordRecommender.vb (1)
21Return If(context.IsMultiLineStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\ThenKeywordRecommender.vb (1)
41Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\ThrowKeywordRecommender.vb (1)
21Return If(context.IsStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\ToKeywordRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 38Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\TryKeywordRecommender.vb (2)
24Return ImmutableArray(Of RecommendedKeyword).Empty 35Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\UntilAndWhileKeywordRecommender.vb (2)
20Return ImmutableArray(Of RecommendedKeyword).Empty 37Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\UsingKeywordRecommender.vb (1)
21Return If(context.IsMultiLineStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\WhenKeywordRecommender.vb (2)
23Return ImmutableArray(Of RecommendedKeyword).Empty 38Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\WhileLoopKeywordRecommender.vb (2)
25Return ImmutableArray(Of RecommendedKeyword).Empty 39Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\WithKeywordRecommender.vb (1)
21Return If(context.IsMultiLineStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\YieldKeywordRecommender.vb (1)
21Return If(context.IsMultiLineStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (6)
21Return ImmutableArray(Of RecommendedKeyword).Empty 41Return ImmutableArray(Of RecommendedKeyword).Empty 46Return ImmutableArray(Of RecommendedKeyword).Empty 51Return ImmutableArray(Of RecommendedKeyword).Empty 57Return ImmutableArray(Of RecommendedKeyword).Empty 64Return ImmutableArray(Of RecommendedKeyword).Empty
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.vb (1)
58Return If(_diagnostics?.ToImmutable(), ImmutableArray(Of Diagnostic).Empty)
Diagnostics\Analyzers\VisualBasicSimplifyTypeNamesDiagnosticAnalyzer.vb (2)
46Return ImmutableArray(Of Diagnostic).Empty 57Return ImmutableArray(Of Diagnostic).Empty
EditAndContinue\DeclarationBody\MethodBody.vb (1)
24Return ImmutableArray(Of ISymbol).Empty
EditAndContinue\SyntaxComparer.vb (1)
1400Return If(enumerable Is Nothing, ImmutableArray(Of T).Empty, enumerable.Take(LongestCommonSubsequence.MaxSequenceLengthForDistanceCalculation).ToImmutableArray())
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.ExpressionCodeGenerator.vb (1)
87Return ImmutableArray(Of StatementSyntax).Empty
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.vb (2)
75attributes:=ImmutableArray(Of AttributeData).Empty, 186Dim emptyStatements = ImmutableArray(Of StatementSyntax).Empty
GenerateType\VisualBasicGenerateTypeService.vb (2)
380Return ImmutableArray(Of ITypeParameterSymbol).Empty 686attributes:=ImmutableArray(Of AttributeData).Empty,
LanguageServices\VisualBasicSymbolDisplayService.SymbolDescriptionBuilder.vb (1)
128Return ImmutableArray(Of SymbolDisplayPart).Empty
LineSeparators\VisualBasicLineSeparatorService.vb (1)
67Return ImmutableArray(Of TextSpan).Empty
SignatureHelp\InvocationExpressionSignatureHelpProvider.vb (1)
119Dim accessibleMembers = ImmutableArray(Of ISymbol).Empty
src\Analyzers\VisualBasic\Analyzers\UseInferredMemberName\VisualBasicUseInferredMemberNameDiagnosticAnalyzer.vb (2)
61additionalLocations:=ImmutableArray(Of Location).Empty, 85additionalLocations:=ImmutableArray(Of Location).Empty,
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateConversionService.vb (2)
151attributes:=ImmutableArray(Of AttributeData).Empty, 158typeParameters:=ImmutableArray(Of ITypeParameterSymbol).Empty,
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (3)
134ImmutableArray(Of RefKind).Empty) 140ImmutableArray(Of ITypeSymbol).Empty) 146ImmutableArray(Of Boolean).Empty)
src\Analyzers\VisualBasic\CodeFixes\GenerateVariable\VisualBasicGenerateVariableCodeFixProvider.vb (1)
46Return ImmutableArray(Of CodeAction).Empty
src\Analyzers\VisualBasic\CodeFixes\OrderModifiers\VisualBasicOrderModifiersCodeFixProvider.vb (1)
32ImmutableArray(Of String).Empty
src\Compilers\VisualBasic\BasicAnalyzerDriver\VisualBasicDeclarationComputer.vb (1)
70builder.Add(New DeclarationInfo(name, ImmutableArray(Of SyntaxNode).Empty, declaredSymbol))
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (1)
EditAndContinue\VisualBasicEditAndContinueAnalyzerTests.vb (1)
126Return Await analyzer.AnalyzeDocumentAsync(oldProject, baseActiveStatements, newDocument, ImmutableArray(Of ActiveStatementLineSpan).Empty, capabilities, CancellationToken.None)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (12)
Compilation\CompilationAPITests.vb (5)
1706Dim type = comp.CreateAnonymousTypeSymbol(ImmutableArray(Of ITypeSymbol).Empty, ImmutableArray(Of String).Empty, memberNullableAnnotations:=ImmutableArray(Of CodeAnalysis.NullableAnnotation).Empty) 1951Assert.Throws(Of ArgumentException)(Function() genericType.Construct(typeArguments, ImmutableArray(Of CodeAnalysis.NullableAnnotation).Empty)) 1983Assert.Throws(Of ArgumentException)(Function() genericMethod.Construct(typeArguments, ImmutableArray(Of CodeAnalysis.NullableAnnotation).Empty))
Compilation\VisualBasicCompilationOptionsTests.vb (5)
47TestHiddenProperty(Function(old, value) old.WithSourceReferenceResolver(value), Function(opt) opt.SourceReferenceResolver, New SourceFileResolver(ImmutableArray(Of String).Empty, Nothing)) 124TestProperty(Function(old, value) old.WithSourceReferenceResolver(value), Function(opt) opt.SourceReferenceResolver, New SourceFileResolver(ImmutableArray(Of String).Empty, Nothing)) 547Assert.Equal(ImmutableArray(Of Byte).Empty, options.CryptoPublicKey) 548Assert.Equal(ImmutableArray(Of Byte).Empty, options.WithCryptoPublicKey(Nothing).CryptoPublicKey) 551Assert.Same(options, options.WithCryptoPublicKey(ImmutableArray(Of Byte).Empty))
Semantics\GetSemanticInfoTests.vb (1)
3105Assert.Equal(ImmutableArray(Of VisualBasicAttributeData).Empty, handledEvent3.EventSymbol.GetFieldAttributes)
Semantics\OptionalArgumentTests.vb (1)
2111searchPaths:=ImmutableArray(Of String).Empty,
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
LocationTests.vb (1)
20MyBase.New(ImmutableArray(Of String).Empty, Nothing)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
MockSymbols.vb (2)
618Return ImmutableArray(Of CustomModifier).Empty 624Return ImmutableArray(Of CustomModifier).Empty
Microsoft.CodeAnalysis.VisualBasic.Workspaces (32)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
1545Return ImmutableArray(Of SyntaxNode).Empty
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (8)
195ImmutableArray(Of String).Empty, 232ImmutableArray(Of String).Empty, 250ImmutableArray(Of String).Empty)) 264ImmutableArray(Of String).Empty)) 278ImmutableArray(Of String).Empty)) 294ImmutableArray(Of String).Empty, 312ImmutableArray(Of String).Empty)) 330ImmutableArray(Of String).Empty))
FindSymbols\VisualBasicReferenceFinder.vb (1)
44ImmutableArray(Of ISymbol).Empty,
Recommendations\VisualBasicRecommendationServiceRunner.vb (9)
33Return ImmutableArray(Of ISymbol).Empty 66Return ImmutableArray(Of ISymbol).Empty 172Return ImmutableArray(Of ISymbol).Empty 200Return ImmutableArray(Of ISymbol).Empty 243Return ImmutableArray(Of ISymbol).Empty 283Return ImmutableArray(Of ISymbol).Empty 291Return ImmutableArray(Of ISymbol).Empty 306Return ImmutableArray(Of ISymbol).Empty 419Return ImmutableArray(Of ISymbol).Empty
Rename\VisualBasicRenameRewriterLanguageService.vb (4)
834Return ImmutableArray(Of Location).Empty 923Return ImmutableArray(Of Location).Empty 929Return ImmutableArray(Of Location).Empty 976Return ImmutableArray(Of Location).Empty
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\DirectiveSyntaxExtensions.vb (1)
77ImmutableArray(Of DirectiveTriviaSyntax).Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (4)
208Return ImmutableArray(Of IMethodSymbol).Empty 212Return ImmutableArray(Of IMethodSymbol).Empty 262Return ImmutableArray(Of ISymbol).Empty 276Return ImmutableArray(Of IMethodSymbol).Empty
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (3)
21Return ImmutableArray(Of ParameterName).Empty 47Return ImmutableArray(Of ParameterName).Empty 69Return ImmutableArray(Of ParameterName).Empty
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSymbolDeclarationService.vb (1)
28ImmutableArray(Of SyntaxReference).Empty,
Microsoft.CodeAnalysis.Workspaces (68)
CodeCleanup\AbstractCodeCleanerService.cs (2)
466var spans = ImmutableArray<TextSpan>.Empty; 548var spans = ImmutableArray<TextSpan>.Empty;
CodeFixes\FixAllOccurrences\FixAllContextHelper.cs (1)
26var allDiagnostics = ImmutableArray<Diagnostic>.Empty;
Diagnostics\SerializableDiagnosticAnalysisResultMap.cs (2)
17ImmutableArray<(string, SerializableDiagnosticMap)>.Empty, 18ImmutableArray<(string, AnalyzerTelemetryInfo)>.Empty);
FindSymbols\FindReferences\Finders\FieldSymbolReferenceFinder.cs (1)
26: new(ImmutableArray<ISymbol>.Empty);
FindSymbols\FindReferences\Finders\PropertyAccessorSymbolReferenceFinder.cs (1)
28? new(ImmutableArray<ISymbol>.Empty)
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (1)
49return ImmutableArray<TextSpan>.Empty;
Recommendations\AbstractRecommendationServiceRunner.cs (1)
96var parameterTypeSymbols = ImmutableArray<ITypeSymbol>.Empty;
Rename\ConflictResolution.cs (1)
101: ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)>.Empty;
Serialization\AbstractOptionsSerializationService.cs (1)
162var strongNameProvider = new DesktopStrongNameProvider(ImmutableArray<string>.Empty, Path.GetTempPath());
Shared\Extensions\SemanticModelExtensions.cs (1)
91var allSymbols = ImmutableArray<ISymbol?>.Empty;
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (4)
76return ImmutableArray<TResult>.Empty; 116return ImmutableArray<TResult>.Empty; 156return ImmutableArray<TResult>.Empty; 224return builder?.ToImmutableAndFree() ?? ImmutableArray<T>.Empty;
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (22)
55return ImmutableArray<T>.Empty; 117return ImmutableArray<T>.Empty; 176return ImmutableArray<TResult>.Empty; 214return ImmutableArray<TResult>.Empty; 244return ImmutableArray<TResult>.Empty; 270return ImmutableArray<TResult>.Empty; 290return ImmutableArray<TResult>.Empty; 310return ImmutableArray<TResult>.Empty; 333return ImmutableArray<TResult>.Empty; 357return ImmutableArray<TResult>.Empty; 381return ImmutableArray<TResult>.Empty; 406return ImmutableArray<TResult>.Empty; 424return ImmutableArray<TResult>.Empty; 442return ImmutableArray<TResult>.Empty; 458return new ValueTask<ImmutableArray<TResult>>(ImmutableArray<TResult>.Empty); 491return ImmutableArray<TResult>.Empty; 521return ImmutableArray<TResult>.Empty; 613return ImmutableArray<T>.Empty; 797return array.IsDefault ? ImmutableArray<T>.Empty : array; 806null or { IsDefault: true } => ImmutableArray<T>.Empty, 863return ImmutableArray<TValue>.Empty; 1251return ImmutableArray<TNamedTypeSymbol>.Empty;
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
153return ImmutableArray<V>.Empty;
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
3090 => ImmutableArray<T>.Empty,
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (9)
358return ImmutableArray<TResult>.Empty; 370return ImmutableArray<TResult>.Empty; 387return ImmutableArray<TResult>.Empty; 403return ImmutableArray<TResult>.Empty; 419return ImmutableArray<TResult>.Empty; 431return ImmutableArray<TResult>.Empty; 443return ImmutableArray<TResult>.Empty; 456return ImmutableArray<TResult>.Empty; 469return ImmutableArray<TResult>.Empty;
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
27public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty);
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.List.cs (1)
18public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
89result = ImmutableArray<T>.Empty; 371return ImmutableArray<U>.Empty; 400result = ImmutableArray<T>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (1)
46return ImmutableArray<T>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
457return ImmutableArray<T>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (1)
294return (ImmutableArray<ModifierKind>.Empty, defaultValue());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (1)
34=> IsOnHeader(root, position, ownerOfHeader, lastTokenOrNodeOfHeader, ImmutableArray<SyntaxNode>.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SymbolAnnotation.cs (1)
25? ImmutableArray<ISymbol>.Empty
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
45visitor.WriteSymbolKeyArray(ImmutableArray<ITypeSymbol>.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FunctionPointerTypeSymbolKey.cs (1)
39var callingConventionModifiers = ImmutableArray<INamedTypeSymbol>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
35visitor.WriteSymbolKeyArray(ImmutableArray<ITypeSymbol>.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
188public static readonly Task<ImmutableArray<T>> EmptyImmutableArray = Task.FromResult(ImmutableArray<T>.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
88attributes: ImmutableArray<AttributeData>.Empty));
SymbolSearch\ISymbolSearchService.cs (3)
159=> ValueTaskFactory.FromResult(ImmutableArray<PackageResult>.Empty); 162=> ValueTaskFactory.FromResult(ImmutableArray<PackageWithAssemblyResult>.Empty); 165=> ValueTaskFactory.FromResult(ImmutableArray<ReferenceAssemblyResult>.Empty);
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (1)
249? ImmutableArray<string>.Empty
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (44)
Build\ProjectBuildManager.cs (2)
140_msbuildLogger != null ? [_msbuildLogger] : ImmutableArray<MSB.Framework.ILogger>.Empty, 188: ImmutableArray<MSB.Framework.ILogger>.Empty;
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (4)
76return ImmutableArray<TResult>.Empty; 116return ImmutableArray<TResult>.Empty; 156return ImmutableArray<TResult>.Empty; 224return builder?.ToImmutableAndFree() ?? ImmutableArray<T>.Empty;
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (22)
55return ImmutableArray<T>.Empty; 117return ImmutableArray<T>.Empty; 176return ImmutableArray<TResult>.Empty; 214return ImmutableArray<TResult>.Empty; 244return ImmutableArray<TResult>.Empty; 270return ImmutableArray<TResult>.Empty; 290return ImmutableArray<TResult>.Empty; 310return ImmutableArray<TResult>.Empty; 333return ImmutableArray<TResult>.Empty; 357return ImmutableArray<TResult>.Empty; 381return ImmutableArray<TResult>.Empty; 406return ImmutableArray<TResult>.Empty; 424return ImmutableArray<TResult>.Empty; 442return ImmutableArray<TResult>.Empty; 458return new ValueTask<ImmutableArray<TResult>>(ImmutableArray<TResult>.Empty); 491return ImmutableArray<TResult>.Empty; 521return ImmutableArray<TResult>.Empty; 613return ImmutableArray<T>.Empty; 797return array.IsDefault ? ImmutableArray<T>.Empty : array; 806null or { IsDefault: true } => ImmutableArray<T>.Empty, 863return ImmutableArray<TValue>.Empty; 1251return ImmutableArray<TNamedTypeSymbol>.Empty;
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
3090 => ImmutableArray<T>.Empty,
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (9)
358return ImmutableArray<TResult>.Empty; 370return ImmutableArray<TResult>.Empty; 387return ImmutableArray<TResult>.Empty; 403return ImmutableArray<TResult>.Empty; 419return ImmutableArray<TResult>.Empty; 431return ImmutableArray<TResult>.Empty; 443return ImmutableArray<TResult>.Empty; 456return ImmutableArray<TResult>.Empty; 469return ImmutableArray<TResult>.Empty;
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
27public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty);
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.List.cs (1)
18public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
89result = ImmutableArray<T>.Empty; 371return ImmutableArray<U>.Empty; 400result = ImmutableArray<T>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (1)
46return ImmutableArray<T>.Empty;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
TestAnalyzerReferenceByLanguage.cs (1)
44return ImmutableArray<DiagnosticAnalyzer>.Empty;
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
ChecksumTests.cs (2)
175Assert.NotEqual(Checksum.Null, Checksum.Create(ImmutableArray<Checksum>.Empty)); 176Assert.NotEqual(Checksum.Null, Checksum.Create(ImmutableArray<byte>.Empty));
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
164case 0: return ImmutableArray<T>.Empty;
Microsoft.Extensions.Options.SourceGeneration (4)
Parser.cs (3)
501ImmutableArray<IParameterSymbol> parameters = attribute.AttributeConstructor?.Parameters ?? ImmutableArray<IParameterSymbol>.Empty; 621ImmutableArray<IParameterSymbol> constructorParameters = attribute.AttributeConstructor?.Parameters ?? ImmutableArray<IParameterSymbol>.Empty; 632ImmutableArray<IParameterSymbol> constructorParameters = attribute.AttributeConstructor?.Parameters ?? ImmutableArray<IParameterSymbol>.Empty;
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
164case 0: return ImmutableArray<T>.Empty;
Microsoft.Gen.Logging (1)
src\Generators\Shared\RoslynExtensions.cs (1)
112return ImmutableArray<T>.Empty;
Microsoft.Gen.Logging.Unit.Tests (6)
LogParserUtilitiesTests.cs (5)
51.Returns(ImmutableArray<ISymbol>.Empty); 87: ImmutableArray<ISymbol>.Empty); 169: ImmutableArray<ISymbol>.Empty); 179.Returns(ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 184.Returns(ImmutableArray<TypedConstant>.Empty);
ParserUtilitiesTests.cs (1)
97.Returns(ImmutableArray<Location>.Empty);
Microsoft.Gen.Metrics (1)
src\Generators\Shared\RoslynExtensions.cs (1)
112return ImmutableArray<T>.Empty;
Microsoft.Interop.ComInterfaceGenerator (8)
ComInterfaceGenerator.cs (1)
419return ImmutableArray<ComInterfaceAndMethodsContext>.Empty;
ComInterfaceInfo.cs (2)
145return ImmutableArray<InterfaceInfo>.Empty; 148return ImmutableArray<InterfaceInfo>.Empty;
SkippedStubContext.cs (1)
9internal sealed record SkippedStubContext(ManagedTypeInfo OriginalDefiningType) : GeneratedMethodContextBase(OriginalDefiningType, new(ImmutableArray<DiagnosticInfo>.Empty));
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
164case 0: return ImmutableArray<T>.Empty;
src\libraries\System.Runtime.InteropServices\gen\Common\FixAllContextExtensions.cs (2)
44return ImmutableArray<Diagnostic>.Empty; 69return ImmutableArray<Project>.Empty;
VtableIndexStubGenerator.cs (1)
288ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> callConv = VirtualMethodPointerStubGenerator.GenerateCallConvSyntaxFromAttributes(suppressGCTransitionAttribute, unmanagedCallConvAttribute, defaultCallingConventions: ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax>.Empty);
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSExportGenerator.cs (1)
69return ImmutableArray<DiagnosticInfo>.Empty;
JSImportGenerator.cs (1)
67return ImmutableArray<DiagnosticInfo>.Empty;
Microsoft.Interop.LibraryImportGenerator (4)
LibraryImportGenerator.cs (1)
80return ImmutableArray<DiagnosticInfo>.Empty;
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
164case 0: return ImmutableArray<T>.Empty;
src\libraries\System.Runtime.InteropServices\gen\Common\FixAllContextExtensions.cs (2)
44return ImmutableArray<Diagnostic>.Empty; 69return ImmutableArray<Project>.Empty;
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
164case 0: return ImmutableArray<T>.Empty;
Microsoft.Interop.SourceGeneration (5)
DiagnosticInfo.cs (1)
56AdditionalLocations = (additionalLocations ?? ImmutableArray<Location>.Empty).ToSequenceEqualImmutableArray(),
GeneratedStatements.cs (1)
156return ImmutableArray<CatchClauseSyntax>.Empty;
Marshalling\ResolvedGenerator.cs (2)
22return new(generator, ImmutableArray<GeneratorDiagnostic>.Empty); 35public static ResolvedGenerator UnresolvedGenerator { get; } = new(null, ImmutableArray<GeneratorDiagnostic>.Empty);
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
164case 0: return ImmutableArray<T>.Empty;
Microsoft.VisualStudio.LanguageServices (44)
CallHierarchy\CallHierarchyCommandHandler.cs (1)
100var node = await _provider.CreateItemAsync(mapping.Symbol, mapping.Project, ImmutableArray<Location>.Empty, cancellationToken).ConfigureAwait(false);
CallHierarchy\Finders\ImplementerFinder.cs (1)
48var item = await Provider.CreateItemAsync(implementation, bestLocation.Project, ImmutableArray<Location>.Empty, cancellationToken).ConfigureAwait(false);
CallHierarchy\Finders\OverridingMemberFinder.cs (1)
44var item = await Provider.CreateItemAsync(@override, bestLocation.Project, ImmutableArray<Location>.Empty, cancellationToken).ConfigureAwait(false);
CodeLens\RemoteCodeLensReferencesService.cs (1)
258return ImmutableArray<ReferenceLocationDescriptor>.Empty;
CommonControls\NewTypeDestinationSelectionViewModel.cs (1)
22ImmutableArray<string>.Empty,
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.cs (1)
107return ImmutableArray<(AnalyzerFileReference, string)>.Empty;
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (1)
323otherProjectsForMultiTfmProject = ImmutableArray<Project>.Empty;
DocumentOutline\DocumentOutlineViewModel.cs (3)
62private ImmutableArray<DocumentSymbolDataViewModel> _documentSymbolViewModelItems_doNotAccessDirectly = ImmutableArray<DocumentSymbolDataViewModel>.Empty; 122ImmutableArray<DocumentSymbolDataViewModel>.Empty, 441return (ImmutableArray<DocumentSymbolData>.Empty, _textBuffer.CurrentSnapshot);
Interactive\VsResetInteractive.cs (4)
70references = ImmutableArray<string>.Empty; 71referenceSearchPaths = ImmutableArray<string>.Empty; 72sourceSearchPaths = ImmutableArray<string>.Empty; 73projectNamespaces = ImmutableArray<string>.Empty;
Library\ObjectBrowser\AbstractListItemFactory.cs (5)
210return ImmutableArray<ObjectListItem>.Empty; 237return ImmutableArray<ObjectListItem>.Empty; 397return ImmutableArray<ObjectListItem>.Empty; 589return ImmutableArray<ObjectListItem>.Empty; 646return ImmutableArray<ObjectListItem>.Empty;
Packaging\PackageInstallerServiceFactory.cs (2)
158return ImmutableArray<PackageSource>.Empty; 181return ImmutableArray<PackageSource>.Empty;
Progression\GraphQueryManager.cs (1)
29private ImmutableArray<(WeakReference<IGraphContext> context, ImmutableArray<IGraphQuery> queries)> _trackedQueries = ImmutableArray<(WeakReference<IGraphContext>, ImmutableArray<IGraphQuery>)>.Empty;
ProjectSystem\CPS\IWorkspaceProjectContextFactory.cs (1)
92=> ImmutableArray<string>.Empty;
ProjectSystem\FileChangeWatcher.cs (3)
169_filters = ImmutableArray<string>.Empty; 181_filters = ImmutableArray<string>.Empty; 196_filters = ImmutableArray<string>.Empty;
ProjectSystem\Legacy\AbstractLegacyProject.cs (2)
208var folders = ImmutableArray<string>.Empty; 335return ImmutableArray<string>.Empty;
ProjectSystem\OpenTextBufferProvider.cs (1)
43private ImmutableArray<IOpenTextBufferEventListener> _listeners = ImmutableArray<IOpenTextBufferEventListener>.Empty;
Snippets\SnippetExpansionClient.cs (2)
555var snippet = CreateMethodCallSnippet(methodName, includeMethod: true, ImmutableArray<IParameterSymbol>.Empty, ImmutableDictionary<string, string>.Empty); 771return ImmutableArray<ISymbol>.Empty;
StackTraceExplorer\StackFrameViewModel.cs (2)
237return ImmutableArray<StackFrameTrivia>.Empty; 253return ImmutableArray<StackFrameTrivia>.Empty;
UnusedReferences\Dialog\UnusedReferencesTableProvider.DataSource.cs (2)
26private ImmutableArray<UnusedReferencesEntry> _currentEntries = ImmutableArray<UnusedReferencesEntry>.Empty; 56_currentEntries = ImmutableArray<UnusedReferencesEntry>.Empty;
UnusedReferences\RemoveUnusedReferencesCommandHandler.cs (2)
173return (null, null, ImmutableArray<ReferenceUpdate>.Empty); 179return (null, null, ImmutableArray<ReferenceUpdate>.Empty);
UnusedReferences\UnusedReferenceAnalysisService.cs (1)
39return ImmutableArray<ReferenceInfo>.Empty;
UnusedReferences\UnusedReferenceExtensions.cs (2)
20ImmutableArray<string>.Empty, 21ImmutableArray<ReferenceInfo>.Empty);
ValueTracking\TreeItemViewModel.cs (1)
106return ImmutableArray<Inline>.Empty;
ValueTracking\ValueTrackedTreeItemViewModel.cs (1)
197self._solution, item, children: ImmutableArray<TreeItemViewModel>.Empty,
ValueTracking\ValueTrackingCommandHandler.cs (2)
137solution, child, children: ImmutableArray<TreeItemViewModel>.Empty, toolWindow.ViewModel, _glyphService, valueTrackingService, _globalOptions, _threadingContext, _listener, _threadOperationExecutor, cancellationToken).ConfigureAwait(false); 147solution, child, children: ImmutableArray<TreeItemViewModel>.Empty, toolWindow.ViewModel, _glyphService, valueTrackingService, _globalOptions, _threadingContext, _listener, _threadOperationExecutor, cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
LanguageService\CSharpHelpContextService.cs (1)
176var overloads = bindableParent != null ? semanticModel.GetMemberGroup(bindableParent) : ImmutableArray<ISymbol>.Empty;
ProjectSystemShim\TempPECompilerService.cs (1)
54new RelativePathResolver(ImmutableArray<string>.Empty, baseDirectory: null));
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
DocumentOutline\DocumentOutlineTests.cs (1)
99var symbolData = data with { Children = ImmutableArray<DocumentSymbolData>.Empty };
EditorConfigSettings\DataProvider\DataProviderTests.MockAnalyzerReference.cs (1)
53=> Fixer != null ? ImmutableArray.Create(Fixer) : ImmutableArray<CodeFixProvider>.Empty;
Microsoft.VisualStudio.LanguageServices.LiveShare (3)
Client\Projects\RoslynRemoteProjectInfoProvider.cs (3)
43return ImmutableArray<ProjectInfo>.Empty; 49return ImmutableArray<ProjectInfo>.Empty; 65return ImmutableArray<ProjectInfo>.Empty;
Microsoft.VisualStudio.LanguageServices.UnitTests (12)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (3)
178customTags:=ImmutableArray(Of String).Empty, 252customTags:=ImmutableArray(Of String).Empty, 293customTags:=ImmutableArray(Of String).Empty,
MoveToNamespace\MoveToNamespaceDialogViewModelTests.vb (1)
86Return New MoveToNamespaceDialogViewModel(defaultNamespace, availableNamespaces, CSharpSyntaxFacts.Instance, ImmutableArray(Of String).Empty)
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\DynamicFileTests.vb (6)
23project.AddDynamicSourceFile(DynamicFileName, ImmutableArray(Of String).Empty) 37project.AddDynamicSourceFile(DynamicFileName, ImmutableArray(Of String).Empty) 57project.AddDynamicSourceFile("DynamicFile.cshtml", ImmutableArray(Of String).Empty) 71project.AddDynamicSourceFile(DynamicFileName, ImmutableArray(Of String).Empty) 75project.AddDynamicSourceFile(DynamicFileName, ImmutableArray(Of String).Empty) 87project.AddDynamicSourceFile(DynamicFileName, ImmutableArray(Of String).Empty)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ProjectSystemShim\VisualBasicProject.vb (1)
30Private _runtimeLibraries As ImmutableArray(Of String) = ImmutableArray(Of String).Empty
Microsoft.VisualStudio.LanguageServices.Xaml (5)
Diagnostics\Analyzers\XamlDocumentDiagnosticAnalyzer.cs (3)
23return XamlProjectService.AnalyzerService?.SupportedDiagnostics ?? ImmutableArray<DiagnosticDescriptor>.Empty; 31return ImmutableArray<Diagnostic>.Empty; 41return ImmutableArray<Diagnostic>.Empty;
Features\Completion\XamlCommitCharacters.cs (1)
31=> new(characters, nonInsertCharacters?.ToImmutableArray() ?? ImmutableArray<char>.Empty);
Implementation\LanguageServer\Handler\Diagnostics\DocumentPullDiagnosticHandler.cs (1)
42return context.Document == null ? ImmutableArray<Document>.Empty : [context.Document];
Roslyn.VisualStudio.Next.UnitTests (3)
Services\ServiceHubServicesTests.cs (3)
602ImmutableArray<(string, SourceText)>.Empty); 609ImmutableArray<(string, SourceText)>.Empty, 656ImmutableArray<(string, SourceText)>.Empty);
RunTests (3)
AssemblyScheduler.cs (1)
111var currentWorkItem = ImmutableSortedDictionary<AssemblyInfo, ImmutableArray<TestMethodInfo>>.Empty.Add(assembly, ImmutableArray<TestMethodInfo>.Empty);
ITestExecutor.cs (1)
91ProcessResults = processResults.IsDefault ? ImmutableArray<ProcessResult>.Empty : processResults;
TestRunner.cs (1)
146return new RunAllResult(result.ExitCode == 0, ImmutableArray<TestResult>.Empty, ImmutableArray.Create(result));
System.Collections.Immutable (11)
System\Collections\Immutable\ImmutableArray.cs (3)
28return ImmutableArray<T>.Empty; 95return ImmutableArray<T>.Empty; 193return ImmutableArray<T>.Empty;
System\Collections\Immutable\ImmutableArray_1.Builder.cs (4)
77_elements = ImmutableArray<T>.Empty.array!; 211_elements = ImmutableArray<T>.Empty.array!; 234_elements = ImmutableArray<T>.Empty.array!; 687return Empty.array!;
System\Collections\Immutable\ImmutableArray_1.cs (1)
780return Empty;
System\Collections\Immutable\ImmutableArray_1.Enumerator.cs (1)
77new EnumeratorObject(ImmutableArray<T>.Empty.array!);
System\Collections\Immutable\ImmutableExtensions.Minimal.cs (1)
153return ImmutableArray<T>.Empty.array!;
System\Linq\ImmutableArrayExtensions.cs (1)
623return ImmutableArray<T>.Empty.array!;
System.Reflection.Metadata (19)
System\Reflection\Metadata\AssemblyNameInfo.cs (1)
62? ImmutableArray<byte>.Empty
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (3)
106return ImmutableArray<CustomAttributeTypedArgument<TType>>.Empty; 125return ImmutableArray<CustomAttributeNamedArgument<TType>>.Empty; 390return ImmutableArray<CustomAttributeTypedArgument<TType>>.Empty;
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
119_blobs.GetOrAdd(ReadOnlySpan<byte>.Empty, ImmutableArray<byte>.Empty, default, out _);
System\Reflection\Metadata\Ecma335\SignatureDecoder.cs (3)
183parameterTypes = ImmutableArray<TType>.Empty; 254var sizes = ImmutableArray<int>.Empty; 255var lowerBounds = ImmutableArray<int>.Empty;
System\Reflection\Metadata\IL\MethodBodyBlock.cs (2)
114ImmutableArray<ExceptionRegion>.Empty, 180exceptionHandlers = ImmutableArray<ExceptionRegion>.Empty;
System\Reflection\Metadata\MetadataReader.cs (1)
1475return ImmutableArray<TypeDefinitionHandle>.Empty;
System\Reflection\Metadata\TypeName.cs (3)
67? ImmutableArray<TypeName>.Empty 467genericTypeArguments: ImmutableArray<TypeName>.Empty, 537genericTypeArguments: ImmutableArray<TypeName>.Empty,
System\Reflection\Metadata\TypeSystem\EventDefinition.cs (1)
94var otherAccessors = other?.ToImmutable() ?? ImmutableArray<MethodDefinitionHandle>.Empty;
System\Reflection\Metadata\TypeSystem\PropertyDefinition.cs (1)
101var otherAccessors = other?.ToImmutable() ?? ImmutableArray<MethodDefinitionHandle>.Empty;
System\Reflection\PortableExecutable\PEMemoryBlock.cs (2)
59return _block?.GetContentUnchecked(_offset, Length) ?? ImmutableArray<byte>.Empty; 69return _block?.GetContentUnchecked(_offset + start, length) ?? ImmutableArray<byte>.Empty;
System\Reflection\PortableExecutable\PEReader.cs (1)
544return ImmutableArray<DebugDirectoryEntry>.Empty;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Ecma\EcmaWrappedTypeProvider.cs (1)
44ImmutableArray<RoType> filteredTypeArguments = ImmutableArray<RoType>.Empty;
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
164case 0: return ImmutableArray<T>.Empty;
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
164case 0: return ImmutableArray<T>.Empty;
VBCSCompiler.UnitTests (2)
ServerUtil.cs (2)
29ImmutableArray<BuildRequest.Argument>.Empty); 34ImmutableArray<BuildRequest.Argument>.Empty);
VisualBasicSyntaxGenerator (1)
Grammar\GrammarGenerator.vb (1)
361Me.ReferencedRules = If(referencedRules Is Nothing, ImmutableArray(Of String).Empty, referencedRules.ToImmutableArray())